@doreamonjs/plugin-analysis 1.2.5 → 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 +11 -0
- package/lib/service.js +4 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
|
|
6
17
|
## [1.2.5](https://github.com/doreamonjs/doreamon/compare/v1.2.4...v1.2.5) (2022-10-17)
|
|
7
18
|
|
|
8
19
|
**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
|
|
83
|
-
window.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.2.
|
|
3
|
+
"version": "1.2.11",
|
|
4
4
|
"description": "analysis plugin for doreamonjs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"doreamonjs",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"mixpanel-browser": "^2.45.0",
|
|
79
79
|
"thinkingdata-browser": "^1.6.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "5ecf611074e5404e41903073e5ce7f4bea43fbf8"
|
|
82
82
|
}
|