@doreamonjs/plugin-analysis 1.1.36 → 1.2.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.11](https://github.com/doreamonjs/doreamon/compare/v1.2.10...v1.2.11) (2022-10-19)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * doreamonjs analysis register ([4e3a510](https://github.com/doreamonjs/doreamon/commit/4e3a5100d053365e8f10cd2ac448fb9014852885))
12
+
13
+
14
+
15
+
16
+
17
+ ## [1.2.5](https://github.com/doreamonjs/doreamon/compare/v1.2.4...v1.2.5) (2022-10-17)
18
+
19
+ **Note:** Version bump only for package @doreamonjs/plugin-analysis
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.1.36](https://github.com/doreamonjs/doreamon/compare/v1.1.35...v1.1.36) (2022-10-10)
7
26
 
8
27
  **Note:** Version bump only for package @doreamonjs/plugin-analysis
package/lib/service.js CHANGED
@@ -79,12 +79,12 @@ class Service {
79
79
  this.logger.error('mixpanel config id missing');
80
80
  return;
81
81
  }
82
- const { default: Mixpanel } = await Promise.resolve().then(() => require('mixpanel-browser'));
83
- window.Mixpanel = Mixpanel;
82
+ const mixpanelBrowser = await Promise.resolve().then(() => require('mixpanel-browser'));
83
+ window.Mixpanel = mixpanelBrowser.default || mixpanelBrowser;
84
84
  window.Mixpanel.init(config.id, {
85
85
  debug: config.debug,
86
86
  });
87
- return Mixpanel;
87
+ return window.Mixpanel;
88
88
  },
89
89
  track: (instance, event, attributes) => {
90
90
  var _a;
@@ -126,6 +126,7 @@ class Service {
126
126
  // this.logger.info(`initialize provider: ${client.provider}`);
127
127
  wrapper.instance = await wrapper.setup(client.config);
128
128
  wrapper.isInitialized = true;
129
+ this.logger.info(`[analysis][load] ${client.provider} ...`);
129
130
  }
130
131
  });
131
132
  if (promises) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doreamonjs/plugin-analysis",
3
- "version": "1.1.36",
3
+ "version": "1.2.11",
4
4
  "description": "analysis plugin for doreamonjs",
5
5
  "keywords": [
6
6
  "doreamonjs",
@@ -66,8 +66,8 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@doreamonjs/plugin-shared": "^1.1.28",
69
- "@doreamonjs/plugin-user": "^1.1.36",
70
- "@doreamonjs/request": "^1.1.36",
69
+ "@doreamonjs/plugin-user": "^1.2.5",
70
+ "@doreamonjs/request": "^1.2.5",
71
71
  "@sentry/browser": "^7.11.1",
72
72
  "@sentry/tracing": "^7.11.1",
73
73
  "@zcorky/delay": "^1.0.1",
@@ -78,5 +78,5 @@
78
78
  "mixpanel-browser": "^2.45.0",
79
79
  "thinkingdata-browser": "^1.6.0"
80
80
  },
81
- "gitHead": "08e3d929b2b88868f4dda8bf8648528f81653dbf"
81
+ "gitHead": "5ecf611074e5404e41903073e5ce7f4bea43fbf8"
82
82
  }