@lvce-editor/about-view 4.2.0 → 4.3.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/aboutWorkerMain.js +10 -10
- package/package.json +1 -1
package/dist/aboutWorkerMain.js
CHANGED
|
@@ -267,14 +267,14 @@ const readyMessage = 'ready';
|
|
|
267
267
|
const getData$2 = event => {
|
|
268
268
|
return event.data;
|
|
269
269
|
};
|
|
270
|
-
const listen$
|
|
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$
|
|
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$
|
|
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$
|
|
329
|
-
const parentIpcRaw = listen$
|
|
330
|
-
signal$
|
|
331
|
-
const parentIpc = wrap$
|
|
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$
|
|
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$
|
|
382
|
-
wrap: wrap$
|
|
381
|
+
listen: listen$6,
|
|
382
|
+
wrap: wrap$d
|
|
383
383
|
};
|
|
384
384
|
|
|
385
385
|
const Two = '2.0';
|