@mcp-fe/event-tracker 0.0.9 → 0.0.12

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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -21,7 +21,7 @@ class g {
21
21
  }
22
22
  if (typeof SharedWorker < "u")
23
23
  try {
24
- if (this.sharedWorker = new SharedWorker("/shared-worker.js", { type: "module" }), this.sharedWorkerPort = this.sharedWorker.port, this.sharedWorkerPort.start(), this.pendingAuthToken && this.sharedWorkerPort)
24
+ if (this.sharedWorker = new SharedWorker("/mcp-shared-worker.js", { type: "module" }), this.sharedWorkerPort = this.sharedWorker.port, this.sharedWorkerPort.start(), this.pendingAuthToken && this.sharedWorkerPort)
25
25
  try {
26
26
  this.sharedWorkerPort.postMessage({ type: "SET_AUTH_TOKEN", token: this.pendingAuthToken });
27
27
  } catch (t) {
@@ -89,7 +89,7 @@ class g {
89
89
  this.serviceWorkerRegistration = e, this.workerType = "service", console.log("[WorkerClient] Using existing ServiceWorker registration");
90
90
  return;
91
91
  }
92
- const r = await navigator.serviceWorker.register("/sw.js");
92
+ const r = await navigator.serviceWorker.register("/mcp-service-worker.js");
93
93
  this.serviceWorkerRegistration = r, this.workerType = "service", console.log("[WorkerClient] Using ServiceWorker (fallback)"), this.serviceWorkerMessageHandler && (navigator.serviceWorker.removeEventListener("message", this.serviceWorkerMessageHandler), this.serviceWorkerMessageHandler = null), this.serviceWorkerMessageHandler = (t) => {
94
94
  try {
95
95
  const n = t.data;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@mcp-fe/event-tracker",
3
- "version": "0.0.9",
3
+ "version": "0.0.12",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./index.js",
7
7
  "types": "./index.d.ts",
8
8
  "dependencies": {
9
- "@mcp-fe/mcp-worker": "0.0.9"
9
+ "@mcp-fe/mcp-worker": "0.0.12"
10
10
  },
11
11
  "publishConfig": {
12
12
  "access": "public"