@spooky-sync/core 0.0.1-canary.29 → 0.0.1-canary.30

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/index.js CHANGED
@@ -2194,7 +2194,7 @@ var DevToolsService = class {
2194
2194
  }
2195
2195
  exposeToWindow() {
2196
2196
  if (typeof window !== "undefined") {
2197
- window.__SP00KY__ = {
2197
+ window.__00__ = {
2198
2198
  version: this.version,
2199
2199
  getState: () => this.getState(),
2200
2200
  clearHistory: () => {
@@ -2295,6 +2295,7 @@ var DevToolsService = class {
2295
2295
  detected: true
2296
2296
  }
2297
2297
  }, "*");
2298
+ window.dispatchEvent(new CustomEvent("sp00ky:init"));
2298
2299
  }
2299
2300
  }
2300
2301
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spooky-sync/core",
3
- "version": "0.0.1-canary.29",
3
+ "version": "0.0.1-canary.30",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -229,7 +229,7 @@ export class DevToolsService implements StreamUpdateReceiver {
229
229
 
230
230
  private exposeToWindow() {
231
231
  if (typeof window !== 'undefined') {
232
- (window as any).__SP00KY__ = {
232
+ (window as any).__00__ = {
233
233
  version: this.version,
234
234
  getState: () => this.getState(),
235
235
  clearHistory: () => {
@@ -359,6 +359,9 @@ export class DevToolsService implements StreamUpdateReceiver {
359
359
  },
360
360
  '*'
361
361
  );
362
+
363
+ // Dispatch custom event so the devtools page-script can detect late initialization
364
+ window.dispatchEvent(new CustomEvent('sp00ky:init'));
362
365
  }
363
366
  }
364
367
  }