@lvce-editor/ipc 9.1.0 → 9.2.0

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/browser.js CHANGED
@@ -311,6 +311,9 @@ const listen$1 = async () => {
311
311
  return globalThis;
312
312
  };
313
313
  class IpcChildWithModuleWorkerAndMessagePort extends Ipc {
314
+ constructor(port) {
315
+ super(port);
316
+ }
314
317
  getData(event) {
315
318
  return getData$1(event);
316
319
  }
@@ -330,6 +333,7 @@ class IpcChildWithModuleWorkerAndMessagePort extends Ipc {
330
333
  }
331
334
  onMessage(callback) {
332
335
  this._rawIpc.addEventListener('message', callback);
336
+ this._rawIpc.start();
333
337
  }
334
338
  }
335
339
  const wrap$3 = port => {
package/dist/index.js CHANGED
@@ -379,6 +379,9 @@ const listen$5 = async () => {
379
379
  return globalThis;
380
380
  };
381
381
  class IpcChildWithModuleWorkerAndMessagePort extends Ipc {
382
+ constructor(port) {
383
+ super(port);
384
+ }
382
385
  getData(event) {
383
386
  return getData$1(event);
384
387
  }
@@ -398,6 +401,7 @@ class IpcChildWithModuleWorkerAndMessagePort extends Ipc {
398
401
  }
399
402
  onMessage(callback) {
400
403
  this._rawIpc.addEventListener('message', callback);
404
+ this._rawIpc.start();
401
405
  }
402
406
  }
403
407
  const wrap$8 = port => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/ipc",
3
- "version": "9.1.0",
3
+ "version": "9.2.0",
4
4
  "description": "Inter Process Communication for Lvce Editor",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "dependencies": {
17
17
  "@lvce-editor/assert": "^1.2.0",
18
- "@lvce-editor/verror": "^1.2.0",
18
+ "@lvce-editor/verror": "^1.3.0",
19
19
  "@lvce-editor/web-socket-server": "^1.2.0"
20
20
  },
21
21
  "engines": {