@lvce-editor/renderer-process 30.65.2 → 30.66.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.
|
@@ -1472,11 +1472,12 @@ const getGeneration = () => state$m.generation;
|
|
|
1472
1472
|
const createRuntimeName = name => {
|
|
1473
1473
|
state$m.nextId++;
|
|
1474
1474
|
const id = `worker-${state$m.nextId}`;
|
|
1475
|
+
const runtimeId = `worker-${String(state$m.nextId).padStart(2, '0')}`;
|
|
1475
1476
|
return {
|
|
1476
1477
|
id,
|
|
1477
1478
|
name,
|
|
1478
1479
|
// Platform detection in workers relies on a trailing (Electron) or (Web).
|
|
1479
|
-
runtimeName: `[${
|
|
1480
|
+
runtimeName: `[${runtimeId}] ${name}`
|
|
1480
1481
|
};
|
|
1481
1482
|
};
|
|
1482
1483
|
const track = (worker, startedIn = state$m.generation, trackedWorker) => {
|
|
@@ -1540,13 +1541,14 @@ const launchWorker = async ({
|
|
|
1540
1541
|
url
|
|
1541
1542
|
}) => {
|
|
1542
1543
|
const generation = getGeneration();
|
|
1544
|
+
const trackedWorker = createRuntimeName(name);
|
|
1543
1545
|
try {
|
|
1544
1546
|
const rpc = await create$D({
|
|
1545
1547
|
commandMap: commandMapRef,
|
|
1546
|
-
name,
|
|
1548
|
+
name: trackedWorker.runtimeName,
|
|
1547
1549
|
url
|
|
1548
1550
|
});
|
|
1549
|
-
trackRpc(rpc, generation);
|
|
1551
|
+
trackRpc(rpc, generation, trackedWorker);
|
|
1550
1552
|
return success(rpc);
|
|
1551
1553
|
} catch (error) {
|
|
1552
1554
|
return error$1(error);
|