Skip to content

Commit

Permalink
Renamed items to osd-analytics
Browse files Browse the repository at this point in the history
Signed-off-by: Kawika Avilla <[email protected]>
  • Loading branch information
kavilla committed Mar 4, 2021
1 parent d90c79e commit 7d6fa6d
Show file tree
Hide file tree
Showing 14 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
* under the License.
*/

// We can't use common Kibana presets here because of babel versions incompatibility
// We can't use common OpenSearch Dashboards presets here because of babel versions incompatibility
module.exports = {
plugins: ['@babel/plugin-proposal-class-properties'],
env: {
web: {
presets: ['@kbn/babel-preset/webpack_preset'],
presets: ['@osd/babel-preset/webpack_preset'],
},
node: {
presets: ['@kbn/babel-preset/node_preset'],
presets: ['@osd/babel-preset/node_preset'],
},
},
ignore: ['**/*.test.ts', '**/*.test.tsx'],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@kbn/analytics",
"name": "@osd/analytics",
"private": true,
"version": "1.0.0",
"description": "Kibana Analytics tool",
"description": "OpenSearch Dashboards Analytics tool",
"main": "target/node/index.js",
"browser": "target/web/index.js",
"types": "target/types/index.d.ts",
Expand All @@ -15,8 +15,8 @@
},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@kbn/dev-utils": "1.0.0",
"@kbn/babel-preset": "1.0.0",
"@osd/dev-utils": "1.0.0",
"@osd/babel-preset": "1.0.0",
"typescript": "4.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const { resolve } = require('path');

const del = require('del');
const supportsColor = require('supports-color');
const { run, withProcRunner } = require('@kbn/dev-utils');
const { run, withProcRunner } = require('@osd/dev-utils');

const ROOT_DIR = resolve(__dirname, '..');
const BUILD_DIR = resolve(ROOT_DIR, 'target');
Expand Down Expand Up @@ -82,7 +82,7 @@ run(
});
},
{
description: 'Simple build tool for @kbn/analytics package',
description: 'Simple build tool for @osd/analytics package',
flags: {
boolean: ['watch', 'source-maps'],
help: `
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class Reporter {
window.addEventListener('beforeunload', () => this.reportApplicationUsage());

// Monitoring dashboards might be open in background and we are fine with that
// but we don't want to report hours if the user goes to another tab and Kibana is not shown
// but we don't want to report hours if the user goes to another tab and OpenSearch Dashboards is not shown
document.addEventListener('visibilitychange', () => {
if (document.visibilityState === 'visible' && this.lastAppId) {
this.reportApplicationUsage(this.lastAppId);
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 7d6fa6d

Please sign in to comment.