anys-web 4.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/dist/index.js +2 -1
- package/dist/index.js.LICENSE.txt +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +18 -16
- package/src/index.js +4 -5
- package/src/{recorder-plugin.js → tracer-plugin.js} +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "anys-web",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -11,23 +11,25 @@
|
|
|
11
11
|
"author": "tangshuang",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"anys": "^
|
|
15
|
-
"anys-shared": "^
|
|
16
|
-
"anys-web-plugin-identify": "^
|
|
17
|
-
"anys-web-plugin-monitor-ajax": "^
|
|
18
|
-
"anys-web-plugin-monitor-dom-mutation": "^
|
|
19
|
-
"anys-web-plugin-monitor-
|
|
20
|
-
"anys-web-plugin-monitor-
|
|
21
|
-
"anys-web-plugin-monitor-
|
|
22
|
-
"anys-web-plugin-monitor-
|
|
23
|
-
"anys-web-plugin-monitor-
|
|
24
|
-
"anys-web-plugin-monitor-
|
|
25
|
-
"anys-web-plugin-monitor-
|
|
26
|
-
"anys-web-plugin-
|
|
27
|
-
"anys-web-plugin-
|
|
14
|
+
"anys": "^5.0.0",
|
|
15
|
+
"anys-shared": "^5.0.0",
|
|
16
|
+
"anys-web-plugin-identify": "^5.0.0",
|
|
17
|
+
"anys-web-plugin-monitor-ajax": "^5.0.0",
|
|
18
|
+
"anys-web-plugin-monitor-dom-mutation": "^5.0.0",
|
|
19
|
+
"anys-web-plugin-monitor-error": "^5.0.0",
|
|
20
|
+
"anys-web-plugin-monitor-input-event": "^5.0.0",
|
|
21
|
+
"anys-web-plugin-monitor-mouse-event": "^5.0.0",
|
|
22
|
+
"anys-web-plugin-monitor-performance": "^5.0.0",
|
|
23
|
+
"anys-web-plugin-monitor-scroll-event": "^5.0.0",
|
|
24
|
+
"anys-web-plugin-monitor-touch-event": "^5.0.0",
|
|
25
|
+
"anys-web-plugin-monitor-url": "^5.0.0",
|
|
26
|
+
"anys-web-plugin-monitor-window-activity": "^5.0.0",
|
|
27
|
+
"anys-web-plugin-monitor-window-size": "^5.0.0",
|
|
28
|
+
"anys-web-plugin-send-by-ajax": "^5.0.0",
|
|
29
|
+
"anys-web-plugin-store-offline": "^5.0.1"
|
|
28
30
|
},
|
|
29
31
|
"publishConfig": {
|
|
30
32
|
"registry": "https://registry.npmjs.org/"
|
|
31
33
|
},
|
|
32
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "dbe06cfa84f3e2f797235f5e7db4da4bc4c96cbb"
|
|
33
35
|
}
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Anys } from 'anys';
|
|
2
|
-
import {
|
|
2
|
+
import { AnysTracePlugin } from './tracer-plugin.js';
|
|
3
3
|
|
|
4
|
-
class
|
|
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
|
|
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
|
-
|
|
19
|
+
tracer: AnysTracePlugin,
|
|
21
20
|
},
|
|
22
21
|
});
|
|
@@ -11,7 +11,7 @@ import { AnysMonitorDOMMutationPlugin } from 'anys-web-plugin-monitor-dom-mutati
|
|
|
11
11
|
import { AnysMonitorWindowSizePlugin } from 'anys-web-plugin-monitor-window-size';
|
|
12
12
|
import { AnysMonitorScrollEventPlugin } from 'anys-web-plugin-monitor-scroll-event';
|
|
13
13
|
|
|
14
|
-
export class
|
|
14
|
+
export class AnysTracePlugin extends AnysPlugin {
|
|
15
15
|
static dependencies = [
|
|
16
16
|
AnysStoreOfflinePlugin,
|
|
17
17
|
AnysMonitorUrlPlugin,
|