@lvce-editor/about-view 4.2.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -267,14 +267,14 @@ const readyMessage = 'ready';
267
267
  const getData$2 = event => {
268
268
  return event.data;
269
269
  };
270
- const listen$6 = () => {
270
+ const listen$7 = () => {
271
271
  // @ts-ignore
272
272
  if (typeof WorkerGlobalScope === 'undefined') {
273
273
  throw new TypeError('module is not in web worker scope');
274
274
  }
275
275
  return globalThis;
276
276
  };
277
- const signal$6 = global => {
277
+ const signal$7 = global => {
278
278
  global.postMessage(readyMessage);
279
279
  };
280
280
  class IpcChildWithModuleWorker extends Ipc {
@@ -300,7 +300,7 @@ class IpcChildWithModuleWorker extends Ipc {
300
300
  this._rawIpc.addEventListener('message', callback);
301
301
  }
302
302
  }
303
- const wrap$d = global => {
303
+ const wrap$e = global => {
304
304
  return new IpcChildWithModuleWorker(global);
305
305
  };
306
306
  const withResolvers = () => {
@@ -325,10 +325,10 @@ const waitForFirstMessage = async port => {
325
325
  // @ts-ignore
326
326
  return event.data;
327
327
  };
328
- const listen$5 = async () => {
329
- const parentIpcRaw = listen$6();
330
- signal$6(parentIpcRaw);
331
- const parentIpc = wrap$d(parentIpcRaw);
328
+ const listen$6 = async () => {
329
+ const parentIpcRaw = listen$7();
330
+ signal$7(parentIpcRaw);
331
+ const parentIpc = wrap$e(parentIpcRaw);
332
332
  const firstMessage = await waitForFirstMessage(parentIpc);
333
333
  if (firstMessage.method !== 'initialize') {
334
334
  throw new IpcError('unexpected first message');
@@ -373,13 +373,13 @@ class IpcChildWithModuleWorkerAndMessagePort extends Ipc {
373
373
  this._rawIpc.start();
374
374
  }
375
375
  }
376
- const wrap$c = port => {
376
+ const wrap$d = port => {
377
377
  return new IpcChildWithModuleWorkerAndMessagePort(port);
378
378
  };
379
379
  const IpcChildWithModuleWorkerAndMessagePort$1 = {
380
380
  __proto__: null,
381
- listen: listen$5,
382
- wrap: wrap$c
381
+ listen: listen$6,
382
+ wrap: wrap$d
383
383
  };
384
384
 
385
385
  const Two = '2.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/about-view",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "description": "About View Worker",
5
5
  "main": "dist/aboutWorkerMain.js",
6
6
  "type": "module",