@openreplay/tracker 3.4.6 → 3.4.10
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/cjs/app/index.d.ts +7 -7
- package/cjs/app/index.js +22 -21
- package/cjs/app/logger.d.ts +0 -0
- package/cjs/app/logger.js +1 -0
- package/cjs/app/observer/iframe_observer.d.ts +1 -1
- package/cjs/app/observer/iframe_observer.js +8 -7
- package/cjs/app/observer/observer.d.ts +5 -2
- package/cjs/app/observer/observer.js +70 -49
- package/cjs/app/observer/shadow_root_observer.d.ts +1 -1
- package/cjs/app/observer/shadow_root_observer.js +4 -4
- package/cjs/app/observer/top_observer.d.ts +3 -3
- package/cjs/app/observer/top_observer.js +28 -24
- package/cjs/app/observer.d.ts +1 -1
- package/cjs/app/observer.js +26 -22
- package/cjs/app/sanitizer.d.ts +0 -0
- package/cjs/app/sanitizer.js +1 -0
- package/cjs/app/ticker.d.ts +1 -1
- package/cjs/index.d.ts +11 -10
- package/cjs/index.js +59 -56
- package/cjs/messages/index.d.ts +2 -2
- package/cjs/messages/message.d.ts +1 -1
- package/cjs/modules/connection.d.ts +1 -1
- package/cjs/modules/connection.js +2 -2
- package/cjs/modules/console.d.ts +1 -1
- package/cjs/modules/console.js +6 -6
- package/cjs/modules/cssrules.d.ts +1 -1
- package/cjs/modules/cssrules.js +4 -4
- package/cjs/modules/exception.d.ts +2 -2
- package/cjs/modules/exception.js +4 -4
- package/cjs/modules/img.d.ts +1 -1
- package/cjs/modules/img.js +6 -6
- package/cjs/modules/input.d.ts +1 -1
- package/cjs/modules/input.js +11 -11
- package/cjs/modules/longtasks.d.ts +1 -1
- package/cjs/modules/longtasks.js +2 -2
- package/cjs/modules/mouse.d.ts +1 -1
- package/cjs/modules/mouse.js +10 -10
- package/cjs/modules/performance.d.ts +1 -1
- package/cjs/modules/performance.js +5 -5
- package/cjs/modules/scroll.d.ts +1 -1
- package/cjs/modules/scroll.js +3 -3
- package/cjs/modules/timing.d.ts +1 -1
- package/cjs/modules/timing.js +6 -6
- package/cjs/modules/viewport.d.ts +1 -1
- package/cjs/modules/viewport.js +4 -4
- package/cjs/utils.js +1 -1
- package/lib/app/index.d.ts +7 -7
- package/lib/app/index.js +10 -9
- package/lib/app/logger.d.ts +0 -0
- package/lib/app/logger.js +1 -0
- package/lib/app/observer/iframe_observer.d.ts +1 -1
- package/lib/app/observer/iframe_observer.js +7 -6
- package/lib/app/observer/observer.d.ts +5 -2
- package/lib/app/observer/observer.js +58 -37
- package/lib/app/observer/shadow_root_observer.d.ts +1 -1
- package/lib/app/observer/shadow_root_observer.js +2 -2
- package/lib/app/observer/top_observer.d.ts +3 -3
- package/lib/app/observer/top_observer.js +22 -18
- package/lib/app/observer.d.ts +1 -1
- package/lib/app/observer.js +9 -5
- package/lib/app/sanitizer.d.ts +0 -0
- package/lib/app/sanitizer.js +1 -0
- package/lib/app/ticker.d.ts +1 -1
- package/lib/index.d.ts +11 -10
- package/lib/index.js +25 -22
- package/lib/messages/index.d.ts +2 -2
- package/lib/messages/message.d.ts +1 -1
- package/lib/messages/tsconfig.tsbuildinfo +1 -1
- package/lib/modules/connection.d.ts +1 -1
- package/lib/modules/connection.js +1 -1
- package/lib/modules/console.d.ts +1 -1
- package/lib/modules/console.js +4 -4
- package/lib/modules/cssrules.d.ts +1 -1
- package/lib/modules/cssrules.js +1 -1
- package/lib/modules/exception.d.ts +2 -2
- package/lib/modules/exception.js +1 -1
- package/lib/modules/img.d.ts +1 -1
- package/lib/modules/img.js +2 -2
- package/lib/modules/input.d.ts +1 -1
- package/lib/modules/input.js +2 -2
- package/lib/modules/longtasks.d.ts +1 -1
- package/lib/modules/longtasks.js +1 -1
- package/lib/modules/mouse.d.ts +1 -1
- package/lib/modules/mouse.js +3 -3
- package/lib/modules/performance.d.ts +1 -1
- package/lib/modules/performance.js +2 -2
- package/lib/modules/scroll.d.ts +1 -1
- package/lib/modules/scroll.js +1 -1
- package/lib/modules/timing.d.ts +1 -1
- package/lib/modules/timing.js +3 -3
- package/lib/modules/viewport.d.ts +1 -1
- package/lib/modules/viewport.js +1 -1
- package/package.json +2 -2
- package/tsconfig-base.json +1 -1
package/lib/modules/input.d.ts
CHANGED
package/lib/modules/input.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { normSpaces, IN_BROWSER, getLabelAttribute, hasOpenreplayAttribute } from
|
|
2
|
-
import { SetInputTarget, SetInputValue, SetInputChecked } from
|
|
1
|
+
import { normSpaces, IN_BROWSER, getLabelAttribute, hasOpenreplayAttribute } from "../utils.js";
|
|
2
|
+
import { SetInputTarget, SetInputValue, SetInputChecked } from "../messages/index.js";
|
|
3
3
|
function isInput(node) {
|
|
4
4
|
if (!(node instanceof HTMLInputElement)) {
|
|
5
5
|
return false;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import App from
|
|
1
|
+
import App from "../app/index.js";
|
|
2
2
|
export default function (app: App): void;
|
package/lib/modules/longtasks.js
CHANGED
package/lib/modules/mouse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import App from
|
|
1
|
+
import App from "../app/index.js";
|
|
2
2
|
export default function (app: App): void;
|
package/lib/modules/mouse.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { normSpaces, hasOpenreplayAttribute, getLabelAttribute } from
|
|
2
|
-
import { MouseMove, MouseClick } from
|
|
3
|
-
import { getInputLabel } from
|
|
1
|
+
import { normSpaces, hasOpenreplayAttribute, getLabelAttribute } from "../utils.js";
|
|
2
|
+
import { MouseMove, MouseClick } from "../messages/index.js";
|
|
3
|
+
import { getInputLabel } from "./input.js";
|
|
4
4
|
function _getSelector(target) {
|
|
5
5
|
let el = target;
|
|
6
6
|
let selector = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { IN_BROWSER } from
|
|
2
|
-
import { PerformanceTrack } from
|
|
1
|
+
import { IN_BROWSER } from "../utils.js";
|
|
2
|
+
import { PerformanceTrack } from "../messages/index.js";
|
|
3
3
|
const perf = IN_BROWSER && 'performance' in window && 'memory' in performance // works in Chrome only
|
|
4
4
|
? performance
|
|
5
5
|
: { memory: {} };
|
package/lib/modules/scroll.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import App from
|
|
1
|
+
import App from "../app/index.js";
|
|
2
2
|
export default function (app: App): void;
|
package/lib/modules/scroll.js
CHANGED
package/lib/modules/timing.d.ts
CHANGED
package/lib/modules/timing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isURL } from
|
|
2
|
-
import { ResourceTiming, PageLoadTiming, PageRenderTiming } from
|
|
1
|
+
import { isURL } from "../utils.js";
|
|
2
|
+
import { ResourceTiming, PageLoadTiming, PageRenderTiming } from "../messages/index.js";
|
|
3
3
|
function getPaintBlocks(resources) {
|
|
4
4
|
const paintBlocks = [];
|
|
5
5
|
const elements = document.getElementsByTagName('*');
|
|
@@ -82,7 +82,7 @@ export default function (app, opts) {
|
|
|
82
82
|
});
|
|
83
83
|
let resources = {};
|
|
84
84
|
function resourceTiming(entry) {
|
|
85
|
-
if (entry.duration
|
|
85
|
+
if (entry.duration < 0 || !isURL(entry.name) || app.isServiceURL(entry.name))
|
|
86
86
|
return;
|
|
87
87
|
if (resources !== null) {
|
|
88
88
|
resources[entry.name] = entry.startTime + entry.duration;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import App from
|
|
1
|
+
import App from "../app/index.js";
|
|
2
2
|
export default function (app: App): void;
|
package/lib/modules/viewport.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetPageLocation, SetViewportSize, SetPageVisibility, } from
|
|
1
|
+
import { SetPageLocation, SetViewportSize, SetPageVisibility, } from "../messages/index.js";
|
|
2
2
|
export default function (app) {
|
|
3
3
|
let url, width, height;
|
|
4
4
|
let navigationStart = performance.timing.navigationStart;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openreplay/tracker",
|
|
3
3
|
"description": "The OpenReplay tracker main package",
|
|
4
|
-
"version": "3.4.
|
|
4
|
+
"version": "3.4.10",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"logging",
|
|
7
7
|
"replay"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"rollup": "^2.17.0",
|
|
36
36
|
"rollup-plugin-terser": "^6.1.0",
|
|
37
37
|
"semver": "^6.3.0",
|
|
38
|
-
"typescript": "^4.
|
|
38
|
+
"typescript": "^4.6.0-dev.20211126"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"error-stack-parser": "^2.0.6"
|