@monoscopetech/browser 0.2.2 → 0.3.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/replay.js
CHANGED
|
@@ -29,7 +29,11 @@ export class MonoscopeReplay {
|
|
|
29
29
|
}
|
|
30
30
|
const events = this.events;
|
|
31
31
|
this.events = [];
|
|
32
|
-
const body = JSON.stringify({
|
|
32
|
+
const body = JSON.stringify({
|
|
33
|
+
events,
|
|
34
|
+
sessionId: this.sessionId,
|
|
35
|
+
timestamp: new Date().toISOString(),
|
|
36
|
+
});
|
|
33
37
|
fetch(replayEventsBaseUrl, {
|
|
34
38
|
mode: "no-cors",
|
|
35
39
|
method: "POST",
|
package/package.json
CHANGED
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monoscopetech/browser",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"unpkg": "dis/monoscopetech-browser.umd.js",
|
|
8
|
-
|
|
9
|
-
"scripts": {
|
|
10
|
-
"build": "rollup -c",
|
|
11
|
-
"lint": "eslint src --ext .ts"
|
|
12
|
-
},
|
|
13
8
|
"dependencies": {
|
|
14
9
|
"@opentelemetry/context-zone": "^2.0.1",
|
|
15
10
|
"@opentelemetry/core": "^2.0.1",
|
|
@@ -47,5 +42,10 @@
|
|
|
47
42
|
"rollup": "^4.0.0",
|
|
48
43
|
"tslib": "^2.8.1",
|
|
49
44
|
"typescript": "^5.0.0"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "rollup -c",
|
|
48
|
+
"lint": "eslint src --ext .ts",
|
|
49
|
+
"prePublishOnly": "npx tsc --build"
|
|
50
50
|
}
|
|
51
|
-
}
|
|
51
|
+
}
|