@mcp-fe/react-event-tracker 0.0.9 → 0.0.11
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/index.mjs +2 -2
- package/package.json +3 -2
package/index.mjs
CHANGED
|
@@ -377,7 +377,7 @@ class Te {
|
|
|
377
377
|
}
|
|
378
378
|
if (typeof SharedWorker < "u")
|
|
379
379
|
try {
|
|
380
|
-
if (this.sharedWorker = new SharedWorker("/shared-worker.js", { type: "module" }), this.sharedWorkerPort = this.sharedWorker.port, this.sharedWorkerPort.start(), this.pendingAuthToken && this.sharedWorkerPort)
|
|
380
|
+
if (this.sharedWorker = new SharedWorker("/mcp-shared-worker.js", { type: "module" }), this.sharedWorkerPort = this.sharedWorker.port, this.sharedWorkerPort.start(), this.pendingAuthToken && this.sharedWorkerPort)
|
|
381
381
|
try {
|
|
382
382
|
this.sharedWorkerPort.postMessage({ type: "SET_AUTH_TOKEN", token: this.pendingAuthToken });
|
|
383
383
|
} catch (r) {
|
|
@@ -445,7 +445,7 @@ class Te {
|
|
|
445
445
|
this.serviceWorkerRegistration = e, this.workerType = "service", console.log("[WorkerClient] Using existing ServiceWorker registration");
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
|
-
const n = await navigator.serviceWorker.register("/
|
|
448
|
+
const n = await navigator.serviceWorker.register("/mcp-service-worker.js");
|
|
449
449
|
this.serviceWorkerRegistration = n, this.workerType = "service", console.log("[WorkerClient] Using ServiceWorker (fallback)"), this.serviceWorkerMessageHandler && (navigator.serviceWorker.removeEventListener("message", this.serviceWorkerMessageHandler), this.serviceWorkerMessageHandler = null), this.serviceWorkerMessageHandler = (r) => {
|
|
450
450
|
try {
|
|
451
451
|
const o = r.data;
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mcp-fe/react-event-tracker",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
8
|
+
"types": "./index.d.ts",
|
|
8
9
|
"import": "./index.mjs",
|
|
9
10
|
"require": "./index.js"
|
|
10
11
|
}
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
|
-
"@mcp-fe/event-tracker": "0.0.
|
|
14
|
+
"@mcp-fe/event-tracker": "0.0.11"
|
|
14
15
|
},
|
|
15
16
|
"publishConfig": {
|
|
16
17
|
"access": "public"
|