@doreamonjs/plugin-analysis 0.3.13 → 0.3.16

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,47 +3,57 @@
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
- ## [0.3.13](https://github.com/zcorky/zodash/compare/v0.3.12...v0.3.13) (2022-08-31)
6
+ ## [0.3.16](https://github.com/doreamonjs/doreamon/compare/v0.3.15...v0.3.16) (2022-08-31)
7
7
 
8
+ **Note:** Version bump only for package @doreamonjs/plugin-analysis
8
9
 
9
- ### Bug Fixes
10
10
 
11
- * plugin-authorization model + types ([7c4058c](https://github.com/zcorky/zodash/commit/7c4058c47429eda26de6af08ce6b2d2a423f83c9))
12
11
 
13
12
 
14
13
 
14
+ ## [0.3.15](https://github.com/doreamonjs/doreamon/compare/v0.3.14...v0.3.15) (2022-08-31)
15
15
 
16
16
 
17
- ## [0.3.12](https://github.com/zcorky/zodash/compare/v0.3.11...v0.3.12) (2022-08-31)
17
+ ### Bug Fixes
18
+
19
+ * merge confict and clean changelog ([b5b0428](https://github.com/doreamonjs/doreamon/commit/b5b042803ef660e6c8faf214bd24fc27934deb91))
18
20
 
19
- **Note:** Version bump only for package @doreamonjs/plugin-analysis
20
21
 
21
22
 
22
23
 
23
24
 
25
+ ## [0.3.13](https://github.com/zcorky/zodash/compare/v0.3.12...v0.3.13) (2022-08-31)
26
+
27
+ ### Bug Fixes
28
+
29
+ - plugin-authorization model + types ([7c4058c](https://github.com/doreamonjs/doreamon/commit/7c4058c47429eda26de6af08ce6b2d2a423f83c9))
30
+
31
+ ## [0.3.12](https://github.com/doreamonjs/doreamon/compare/v0.3.11...v0.3.12) (2022-08-31)
32
+
33
+ **Note:** Version bump only for package @doreamonjs/plugin-analysis
24
34
 
25
- ## [0.3.3](https://github.com/zcorky/zodash/compare/v0.3.2...v0.3.3) (2022-08-30)
35
+ ## [0.3.3](https://github.com/doreamonjs/doreamon/compare/v0.3.2...v0.3.3) (2022-08-30)
26
36
 
27
37
  **Note:** Version bump only for package @doreamonjs/plugin-analysis
28
38
 
29
- ## [0.3.2](https://github.com/zcorky/zodash/compare/v0.3.1...v0.3.2) (2022-08-30)
39
+ ## [0.3.2](https://github.com/doreamonjs/doreamon/compare/v0.3.1...v0.3.2) (2022-08-30)
30
40
 
31
41
  ### Bug Fixes
32
42
 
33
- - dependencies ([60d97c5](https://github.com/zcorky/zodash/commit/60d97c5f857228f91bdbda6e833438559b3ea7d6))
34
- - package.json main and typings ([5a23e68](https://github.com/zcorky/zodash/commit/5a23e689ce467ddba1deeec674a8639fef3ba5a8))
43
+ - dependencies ([60d97c5](https://github.com/doreamonjs/doreamon/commit/60d97c5f857228f91bdbda6e833438559b3ea7d6))
44
+ - package.json main and typings ([5a23e68](https://github.com/doreamonjs/doreamon/commit/5a23e689ce467ddba1deeec674a8639fef3ba5a8))
35
45
 
36
46
  # 0.3.0 (2022-08-30)
37
47
 
38
48
  ### Bug Fixes
39
49
 
40
- - test ([ab09558](https://github.com/zcorky/zodash/commit/ab0955886a268210cef6cbfe2a6b2362f6d826d6))
50
+ - test ([ab09558](https://github.com/doreamonjs/doreamon/commit/ab0955886a268210cef6cbfe2a6b2362f6d826d6))
41
51
 
42
52
  ### Features
43
53
 
44
- - add plugin-request/forms/analysiss ([7901413](https://github.com/zcorky/zodash/commit/79014135cbae3337e5bf4c8372627f784ffe476e))
54
+ - add plugin-request/forms/analysiss ([7901413](https://github.com/doreamonjs/doreamon/commit/79014135cbae3337e5bf4c8372627f784ffe476e))
45
55
 
46
- ## [1.1.8](https://github.com/zcorky/zodash/compare/@zodash/get@1.1.7...@zodash/get@1.1.8) (2021-04-05)
56
+ ## [1.1.8](https://github.com/doreamonjs/doreamon/compare/@zodash/get@1.1.7...@zodash/get@1.1.8) (2021-04-05)
47
57
 
48
58
  **Note:** Version bump only for package @zodash/get
49
59
 
package/README.md CHANGED
@@ -1,11 +1,3 @@
1
- # `@zodash/get`
1
+ # `@doreamonjs/plugin-analysis`
2
2
 
3
3
  > TODO: description
4
-
5
- ## Usage
6
-
7
- ```
8
- const get = require('@zodash/get');
9
-
10
- // TODO: DEMONSTRATE API
11
- ```
package/lib/service.js CHANGED
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Service = void 0;
4
4
  const doreamon_1 = require("@zodash/doreamon");
5
5
  const shared = require("@doreamonjs/plugin-shared");
6
+ const user = require("@doreamonjs/plugin-user");
6
7
  const constants_1 = require("./constants");
7
8
  class Service {
8
9
  constructor() {
@@ -96,7 +97,7 @@ class Service {
96
97
  return constants_1.NAMESPACE;
97
98
  }
98
99
  get user() {
99
- return window.doreamon_sdk.user.getCurrent();
100
+ return user.service.getCurrent();
100
101
  }
101
102
  async setup(config) {
102
103
  var _a;
@@ -136,14 +137,14 @@ class Service {
136
137
  }
137
138
  }
138
139
  async track(event, attributes) {
139
- var _a;
140
+ var _a, _b, _c;
140
141
  const userX = this.user;
141
142
  const user = {
142
143
  id: userX === null || userX === void 0 ? void 0 : userX.id,
143
144
  nickname: userX === null || userX === void 0 ? void 0 : userX.nickname,
144
145
  email: userX === null || userX === void 0 ? void 0 : userX.email,
145
- open_id: userX === null || userX === void 0 ? void 0 : userX.open_id,
146
- union_id: userX === null || userX === void 0 ? void 0 : userX.union_id,
146
+ open_id: (_a = userX) === null || _a === void 0 ? void 0 : _a.open_id,
147
+ union_id: (_b = userX) === null || _b === void 0 ? void 0 : _b.union_id,
147
148
  };
148
149
  try {
149
150
  const config = this.config;
@@ -156,7 +157,7 @@ class Service {
156
157
  await this.setup(this.config);
157
158
  }
158
159
  // this.sdks['thinkingdata']?.track(event, attributes)
159
- const promises = (_a = config === null || config === void 0 ? void 0 : config.clients) === null || _a === void 0 ? void 0 : _a.map(async (client) => {
160
+ const promises = (_c = config === null || config === void 0 ? void 0 : config.clients) === null || _c === void 0 ? void 0 : _c.map(async (client) => {
160
161
  if (!(client === null || client === void 0 ? void 0 : client.provider))
161
162
  return;
162
163
  if (!this.sdks[client.provider]) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@doreamonjs/plugin-analysis",
3
- "version": "0.3.13",
3
+ "version": "0.3.16",
4
4
  "description": "analysis plugin for doreamonjs",
5
5
  "keywords": [
6
6
  "doreamonjs",
7
7
  "plugin"
8
8
  ],
9
- "author": "zero <tobewhatwewant@gmail.com>",
10
- "homepage": "https://github.com/zcorky/zodash#readme",
9
+ "author": "whatwewant <tobewhatwewant@gmail.com>",
10
+ "homepage": "https://github.com/doreamonjs/doreamon#readme",
11
11
  "license": "MIT",
12
12
  "main": "lib/index.js",
13
13
  "typings": "lib/index.d.ts",
@@ -54,7 +54,7 @@
54
54
  },
55
55
  "repository": {
56
56
  "type": "git",
57
- "url": "git+https://github.com/zcorky/zodash.git"
57
+ "url": "git+https://github.com/doreamonjs/doreamon.git"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "tsc",
@@ -62,11 +62,12 @@
62
62
  "coverage": "codecov"
63
63
  },
64
64
  "bugs": {
65
- "url": "https://github.com/zcorky/zodash/issues"
65
+ "url": "https://github.com/doreamonjs/doreamon/issues"
66
66
  },
67
67
  "dependencies": {
68
- "@doreamonjs/plugin-request": "^0.3.2",
69
- "@doreamonjs/plugin-shared": "^0.3.13",
68
+ "@doreamonjs/plugin-request": "^0.3.16",
69
+ "@doreamonjs/plugin-shared": "^0.3.16",
70
+ "@doreamonjs/plugin-user": "^0.3.16",
70
71
  "@sentry/browser": "^7.11.1",
71
72
  "@sentry/tracing": "^7.11.1",
72
73
  "@zcorky/delay": "^1.0.1",
@@ -77,5 +78,5 @@
77
78
  "mixpanel-browser": "^2.45.0",
78
79
  "thinkingdata-browser": "^1.6.0"
79
80
  },
80
- "gitHead": "1b28761e66cad9a1e9e3f35b39258a0e3c3caf6c"
81
+ "gitHead": "5d208aadd26ef00dc14b5e927e00d072b2050a6c"
81
82
  }