@doreamonjs/plugin-analysis 0.3.15 → 0.4.1

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,22 +3,44 @@
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.15](https://github.com/doreamonjs/doreamon/compare/v0.3.14...v0.3.15) (2022-08-31)
6
+ ## [0.4.1](https://github.com/doreamonjs/doreamon/compare/v0.4.0...v0.4.1) (2022-08-31)
7
7
 
8
+ **Note:** Version bump only for package @doreamonjs/plugin-analysis
9
+
10
+
11
+
12
+
13
+
14
+ # [0.4.0](https://github.com/doreamonjs/doreamon/compare/v0.3.17...v0.4.0) (2022-08-31)
15
+
16
+ **Note:** Version bump only for package @doreamonjs/plugin-analysis
8
17
 
9
- ### Bug Fixes
10
18
 
11
- * merge confict and clean changelog ([b5b0428](https://github.com/doreamonjs/doreamon/commit/b5b042803ef660e6c8faf214bd24fc27934deb91))
12
19
 
13
20
 
14
21
 
22
+ # Change Log
23
+
24
+ All notable changes to this project will be documented in this file. See
25
+ [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
26
+
27
+ ## [0.3.16](https://github.com/doreamonjs/doreamon/compare/v0.3.15...v0.3.16) (2022-08-31)
28
+
29
+ **Note:** Version bump only for package @doreamonjs/plugin-analysis
30
+
31
+ ## [0.3.15](https://github.com/doreamonjs/doreamon/compare/v0.3.14...v0.3.15) (2022-08-31)
32
+
33
+ ### Bug Fixes
15
34
 
35
+ - merge confict and clean changelog
36
+ ([b5b0428](https://github.com/doreamonjs/doreamon/commit/b5b042803ef660e6c8faf214bd24fc27934deb91))
16
37
 
17
38
  ## [0.3.13](https://github.com/zcorky/zodash/compare/v0.3.12...v0.3.13) (2022-08-31)
18
39
 
19
40
  ### Bug Fixes
20
41
 
21
- - plugin-authorization model + types ([7c4058c](https://github.com/doreamonjs/doreamon/commit/7c4058c47429eda26de6af08ce6b2d2a423f83c9))
42
+ - plugin-authorization model + types
43
+ ([7c4058c](https://github.com/doreamonjs/doreamon/commit/7c4058c47429eda26de6af08ce6b2d2a423f83c9))
22
44
 
23
45
  ## [0.3.12](https://github.com/doreamonjs/doreamon/compare/v0.3.11...v0.3.12) (2022-08-31)
24
46
 
@@ -32,18 +54,22 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
32
54
 
33
55
  ### Bug Fixes
34
56
 
35
- - dependencies ([60d97c5](https://github.com/doreamonjs/doreamon/commit/60d97c5f857228f91bdbda6e833438559b3ea7d6))
36
- - package.json main and typings ([5a23e68](https://github.com/doreamonjs/doreamon/commit/5a23e689ce467ddba1deeec674a8639fef3ba5a8))
57
+ - dependencies
58
+ ([60d97c5](https://github.com/doreamonjs/doreamon/commit/60d97c5f857228f91bdbda6e833438559b3ea7d6))
59
+ - package.json main and typings
60
+ ([5a23e68](https://github.com/doreamonjs/doreamon/commit/5a23e689ce467ddba1deeec674a8639fef3ba5a8))
37
61
 
38
62
  # 0.3.0 (2022-08-30)
39
63
 
40
64
  ### Bug Fixes
41
65
 
42
- - test ([ab09558](https://github.com/doreamonjs/doreamon/commit/ab0955886a268210cef6cbfe2a6b2362f6d826d6))
66
+ - test
67
+ ([ab09558](https://github.com/doreamonjs/doreamon/commit/ab0955886a268210cef6cbfe2a6b2362f6d826d6))
43
68
 
44
69
  ### Features
45
70
 
46
- - add plugin-request/forms/analysiss ([7901413](https://github.com/doreamonjs/doreamon/commit/79014135cbae3337e5bf4c8372627f784ffe476e))
71
+ - add request/forms/analysiss
72
+ ([7901413](https://github.com/doreamonjs/doreamon/commit/79014135cbae3337e5bf4c8372627f784ffe476e))
47
73
 
48
74
  ## [1.1.8](https://github.com/doreamonjs/doreamon/compare/@zodash/get@1.1.7...@zodash/get@1.1.8) (2021-04-05)
49
75
 
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.15",
3
+ "version": "0.4.1",
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.15",
69
- "@doreamonjs/plugin-shared": "^0.3.15",
70
- "@doreamonjs/plugin-user": "^0.3.15",
68
+ "@doreamonjs/plugin-shared": "^0.4.1",
69
+ "@doreamonjs/plugin-user": "^0.4.1",
70
+ "@doreamonjs/request": "^0.4.1",
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": "1c8a50e361f15a083ca5edd02dafa22dffca196a"
81
+ "gitHead": "e440f855ed366651bf9ee047904611220d345656"
82
82
  }