@doreamonjs/plugin-analysis 0.3.16 → 0.4.2

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,7 +3,18 @@
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.16](https://github.com/doreamonjs/doreamon/compare/v0.3.15...v0.3.16) (2022-08-31)
6
+ ## [0.4.2](https://github.com/doreamonjs/doreamon/compare/v0.4.1...v0.4.2) (2022-08-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * dependencies @doreamonjs/plugin-service ([e63c89a](https://github.com/doreamonjs/doreamon/commit/e63c89ac075d1548d5da196027b3238dda7c65d8))
12
+
13
+
14
+
15
+
16
+
17
+ ## [0.4.1](https://github.com/doreamonjs/doreamon/compare/v0.4.0...v0.4.1) (2022-08-31)
7
18
 
8
19
  **Note:** Version bump only for package @doreamonjs/plugin-analysis
9
20
 
@@ -11,22 +22,36 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
22
 
12
23
 
13
24
 
14
- ## [0.3.15](https://github.com/doreamonjs/doreamon/compare/v0.3.14...v0.3.15) (2022-08-31)
25
+ # [0.4.0](https://github.com/doreamonjs/doreamon/compare/v0.3.17...v0.4.0) (2022-08-31)
26
+
27
+ **Note:** Version bump only for package @doreamonjs/plugin-analysis
28
+
15
29
 
16
30
 
17
- ### Bug Fixes
18
31
 
19
- * merge confict and clean changelog ([b5b0428](https://github.com/doreamonjs/doreamon/commit/b5b042803ef660e6c8faf214bd24fc27934deb91))
20
32
 
33
+ # Change Log
34
+
35
+ All notable changes to this project will be documented in this file. See
36
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
21
37
 
38
+ ## [0.3.16](https://github.com/doreamonjs/doreamon/compare/v0.3.15...v0.3.16) (2022-08-31)
22
39
 
40
+ **Note:** Version bump only for package @doreamonjs/plugin-analysis
41
+
42
+ ## [0.3.15](https://github.com/doreamonjs/doreamon/compare/v0.3.14...v0.3.15) (2022-08-31)
43
+
44
+ ### Bug Fixes
23
45
 
46
+ - merge confict and clean changelog
47
+ ([b5b0428](https://github.com/doreamonjs/doreamon/commit/b5b042803ef660e6c8faf214bd24fc27934deb91))
24
48
 
25
49
  ## [0.3.13](https://github.com/zcorky/zodash/compare/v0.3.12...v0.3.13) (2022-08-31)
26
50
 
27
51
  ### Bug Fixes
28
52
 
29
- - plugin-authorization model + types ([7c4058c](https://github.com/doreamonjs/doreamon/commit/7c4058c47429eda26de6af08ce6b2d2a423f83c9))
53
+ - plugin-authorization model + types
54
+ ([7c4058c](https://github.com/doreamonjs/doreamon/commit/7c4058c47429eda26de6af08ce6b2d2a423f83c9))
30
55
 
31
56
  ## [0.3.12](https://github.com/doreamonjs/doreamon/compare/v0.3.11...v0.3.12) (2022-08-31)
32
57
 
@@ -40,18 +65,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
40
65
 
41
66
  ### Bug Fixes
42
67
 
43
- - dependencies ([60d97c5](https://github.com/doreamonjs/doreamon/commit/60d97c5f857228f91bdbda6e833438559b3ea7d6))
44
- - package.json main and typings ([5a23e68](https://github.com/doreamonjs/doreamon/commit/5a23e689ce467ddba1deeec674a8639fef3ba5a8))
68
+ - dependencies
69
+ ([60d97c5](https://github.com/doreamonjs/doreamon/commit/60d97c5f857228f91bdbda6e833438559b3ea7d6))
70
+ - package.json main and typings
71
+ ([5a23e68](https://github.com/doreamonjs/doreamon/commit/5a23e689ce467ddba1deeec674a8639fef3ba5a8))
45
72
 
46
73
  # 0.3.0 (2022-08-30)
47
74
 
48
75
  ### Bug Fixes
49
76
 
50
- - test ([ab09558](https://github.com/doreamonjs/doreamon/commit/ab0955886a268210cef6cbfe2a6b2362f6d826d6))
77
+ - test
78
+ ([ab09558](https://github.com/doreamonjs/doreamon/commit/ab0955886a268210cef6cbfe2a6b2362f6d826d6))
51
79
 
52
80
  ### Features
53
81
 
54
- - add plugin-request/forms/analysiss ([7901413](https://github.com/doreamonjs/doreamon/commit/79014135cbae3337e5bf4c8372627f784ffe476e))
82
+ - add request/forms/analysiss
83
+ ([7901413](https://github.com/doreamonjs/doreamon/commit/79014135cbae3337e5bf4c8372627f784ffe476e))
55
84
 
56
85
  ## [1.1.8](https://github.com/doreamonjs/doreamon/compare/@zodash/get@1.1.7...@zodash/get@1.1.8) (2021-04-05)
57
86
 
package/lib/model.d.ts CHANGED
@@ -4,6 +4,7 @@ export interface ModelOptions {
4
4
  export declare class Model {
5
5
  readonly options?: ModelOptions;
6
6
  private _service;
7
+ private logger;
7
8
  constructor(options?: ModelOptions);
8
9
  private get service();
9
10
  get namespace(): string;
package/lib/model.js CHANGED
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Model = void 0;
4
- const doreamon_1 = require("@zodash/doreamon");
4
+ const shared = require("@doreamonjs/plugin-shared");
5
5
  const constants_1 = require("./constants");
6
6
  const service_1 = require("./service");
7
7
  class Model {
8
8
  constructor(options) {
9
9
  this.options = options;
10
+ this.logger = shared.logger;
10
11
  }
11
12
  get service() {
12
13
  if (!this._service) {
@@ -19,6 +20,7 @@ class Model {
19
20
  }
20
21
  build() {
21
22
  const service = this.service;
23
+ const logger = this.logger;
22
24
  return {
23
25
  namespace: constants_1.NAMESPACE,
24
26
  state: {},
@@ -38,7 +40,7 @@ class Model {
38
40
  (_a = service.setup) === null || _a === void 0 ? void 0 : _a.call(service, config);
39
41
  }
40
42
  catch (error) {
41
- doreamon_1.default.logger.error('[model] analysis setup error', error);
43
+ logger.error('[model] analysis setup error', error);
42
44
  }
43
45
  },
44
46
  *track({ payload: { event, attributes } }, { select }) {
@@ -49,7 +51,7 @@ class Model {
49
51
  (_a = service.track) === null || _a === void 0 ? void 0 : _a.call(service, event, attributes);
50
52
  }
51
53
  catch (error) {
52
- doreamon_1.default.logger.error('[model] analysis track error', error);
54
+ logger.error('[model] analysis track error', error);
53
55
  }
54
56
  },
55
57
  },
package/lib/service.js CHANGED
@@ -7,7 +7,7 @@ const user = require("@doreamonjs/plugin-user");
7
7
  const constants_1 = require("./constants");
8
8
  class Service {
9
9
  constructor() {
10
- this.logger = shared.logger.getLogger(constants_1.NAMESPACE);
10
+ this.logger = shared.logger;
11
11
  this.config = null;
12
12
  this.isInitialized = false;
13
13
  this.sdks = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doreamonjs/plugin-analysis",
3
- "version": "0.3.16",
3
+ "version": "0.4.2",
4
4
  "description": "analysis plugin for doreamonjs",
5
5
  "keywords": [
6
6
  "doreamonjs",
@@ -65,9 +65,9 @@
65
65
  "url": "https://github.com/doreamonjs/doreamon/issues"
66
66
  },
67
67
  "dependencies": {
68
- "@doreamonjs/plugin-request": "^0.3.16",
69
- "@doreamonjs/plugin-shared": "^0.3.16",
70
- "@doreamonjs/plugin-user": "^0.3.16",
68
+ "@doreamonjs/plugin-shared": "^0.4.2",
69
+ "@doreamonjs/plugin-user": "^0.4.2",
70
+ "@doreamonjs/request": "^0.4.2",
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": "5d208aadd26ef00dc14b5e927e00d072b2050a6c"
81
+ "gitHead": "5cae10bdbc9a0e5bec1b69afe54a07e19850b127"
82
82
  }