@b9g/platform 0.1.6 → 0.1.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@b9g/platform",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "ServiceWorker-first universal deployment platform. Write ServiceWorker apps once, deploy anywhere (Node/Bun/Cloudflare). Registry-based multi-app orchestration.",
5
5
  "keywords": [
6
6
  "serviceworker",
@@ -322,6 +322,13 @@ var ServiceWorkerPool = class {
322
322
  if (message.type === "ready" && message.version === version) {
323
323
  cleanup();
324
324
  resolve();
325
+ } else if (message.type === "error") {
326
+ cleanup();
327
+ reject(
328
+ new Error(
329
+ `Worker failed to load ServiceWorker: ${message.error}`
330
+ )
331
+ );
325
332
  }
326
333
  };
327
334
  const handleError = (error) => {