anys-web 1.1.0 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anys-web",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "cjs/index.js",
6
6
  "module": "src/index.js",
@@ -24,7 +24,7 @@
24
24
  "anys-web-plugin-monitor-ajax": "^1.1.0",
25
25
  "anys-web-plugin-monitor-dom-mutation": "^1.1.0",
26
26
  "anys-web-plugin-monitor-input-event": "^1.1.0",
27
- "anys-web-plugin-monitor-mouse-event": "^1.1.0",
27
+ "anys-web-plugin-monitor-mouse-event": "^1.1.2",
28
28
  "anys-web-plugin-monitor-scroll-event": "^1.1.0",
29
29
  "anys-web-plugin-monitor-touch-event": "^1.1.0",
30
30
  "anys-web-plugin-monitor-url": "^1.1.0",
@@ -36,5 +36,5 @@
36
36
  "publishConfig": {
37
37
  "registry": "https://registry.npmjs.org/"
38
38
  },
39
- "gitHead": "4900ece7d934e1b30346a03ee9e2916e9f2853f5"
39
+ "gitHead": "415c087e271c81d437789e6122ca045610ea715b"
40
40
  }
package/src/index.js CHANGED
@@ -1,8 +1,6 @@
1
1
  import { Anys } from 'anys';
2
2
  import { AnysRecorderPlugin } from './recorder-plugin.js';
3
3
 
4
- const { currentScript } = document;
5
-
6
4
  export const create = (options = {}) => new Anys({
7
5
  plugins: {
8
6
  recorder: AnysRecorderPlugin,
@@ -11,6 +9,3 @@ export const create = (options = {}) => new Anys({
11
9
  autoReport: false,
12
10
  ...options,
13
11
  });
14
-
15
- // remove current script, so that we will not collect it in snapshot
16
- currentScript.parentNode.removeChild(currentScript);