anys-web 5.0.0 → 5.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anys-web",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -26,10 +26,10 @@
26
26
  "anys-web-plugin-monitor-window-activity": "^5.0.0",
27
27
  "anys-web-plugin-monitor-window-size": "^5.0.0",
28
28
  "anys-web-plugin-send-by-ajax": "^5.0.0",
29
- "anys-web-plugin-store-offline": "^5.0.0"
29
+ "anys-web-plugin-store-offline": "^5.0.1"
30
30
  },
31
31
  "publishConfig": {
32
32
  "registry": "https://registry.npmjs.org/"
33
33
  },
34
- "gitHead": "afad4091bf4b9410721a2d876b64d6325505584e"
34
+ "gitHead": "dbe06cfa84f3e2f797235f5e7db4da4bc4c96cbb"
35
35
  }
package/src/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Anys } from 'anys';
2
- import { AnysRecorderPlugin } from './recorder-plugin.js';
2
+ import { AnysTracePlugin } from './tracer-plugin.js';
3
3
 
4
- class RecorderAnys extends Anys {
4
+ class TracerAnys extends Anys {
5
5
  /**
6
6
  * patch auth info into reportParams
7
7
  * @param {object} info
@@ -11,12 +11,11 @@ class RecorderAnys extends Anys {
11
11
  }
12
12
  }
13
13
 
14
- export const create = (options = {}) => new RecorderAnys({
14
+ export const createTracer = (options = {}) => new TracerAnys({
15
15
  namespace: 'AnysTracer',
16
- autoReport: false,
17
16
  ...options,
18
17
  plugins: {
19
18
  ...(options.plugins || {}),
20
- recorder: AnysRecorderPlugin,
19
+ tracer: AnysTracePlugin,
21
20
  },
22
21
  });
@@ -10,10 +10,8 @@ import { AnysStoreOfflinePlugin } from 'anys-web-plugin-store-offline';
10
10
  import { AnysMonitorDOMMutationPlugin } from 'anys-web-plugin-monitor-dom-mutation';
11
11
  import { AnysMonitorWindowSizePlugin } from 'anys-web-plugin-monitor-window-size';
12
12
  import { AnysMonitorScrollEventPlugin } from 'anys-web-plugin-monitor-scroll-event';
13
- import { AnysMonitorErrorPlugin } from 'anys-web-plugin-monitor-error';
14
- import { AnysMonitorPerformancePlugin } from 'anys-web-plugin-monitor-performance';
15
13
 
16
- export class AnysRecorderPlugin extends AnysPlugin {
14
+ export class AnysTracePlugin extends AnysPlugin {
17
15
  static dependencies = [
18
16
  AnysStoreOfflinePlugin,
19
17
  AnysMonitorUrlPlugin,
@@ -26,8 +24,6 @@ export class AnysRecorderPlugin extends AnysPlugin {
26
24
  AnysMonitorWindowActivityPlugin,
27
25
  AnysMonitorTouchEventPlugin,
28
26
  AnysMonitorScrollEventPlugin,
29
- AnysMonitorErrorPlugin,
30
- AnysMonitorPerformancePlugin,
31
27
  ];
32
28
 
33
29
  constructor(anys, [offlineStore, urlMonitor, windowSizeMonitor, DOMMutationMonitor]) {