@lvce-editor/running-extensions-view 1.29.0 → 1.30.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/runningExtensionsViewMain.js +118 -111
- package/package.json +1 -1
|
@@ -54,49 +54,6 @@ class VError extends Error {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class AssertionError extends Error {
|
|
58
|
-
constructor(message) {
|
|
59
|
-
super(message);
|
|
60
|
-
this.name = 'AssertionError';
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
const Object$1 = 1;
|
|
64
|
-
const Number$1 = 2;
|
|
65
|
-
const Array$1 = 3;
|
|
66
|
-
const String$1 = 4;
|
|
67
|
-
const Boolean$1 = 5;
|
|
68
|
-
const Function = 6;
|
|
69
|
-
const Null = 7;
|
|
70
|
-
const Unknown = 8;
|
|
71
|
-
const getType = value => {
|
|
72
|
-
switch (typeof value) {
|
|
73
|
-
case 'number':
|
|
74
|
-
return Number$1;
|
|
75
|
-
case 'function':
|
|
76
|
-
return Function;
|
|
77
|
-
case 'string':
|
|
78
|
-
return String$1;
|
|
79
|
-
case 'object':
|
|
80
|
-
if (value === null) {
|
|
81
|
-
return Null;
|
|
82
|
-
}
|
|
83
|
-
if (Array.isArray(value)) {
|
|
84
|
-
return Array$1;
|
|
85
|
-
}
|
|
86
|
-
return Object$1;
|
|
87
|
-
case 'boolean':
|
|
88
|
-
return Boolean$1;
|
|
89
|
-
default:
|
|
90
|
-
return Unknown;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
const number = value => {
|
|
94
|
-
const type = getType(value);
|
|
95
|
-
if (type !== Number$1) {
|
|
96
|
-
throw new AssertionError('expected value to be of type number');
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
|
|
100
57
|
const isMessagePort = value => {
|
|
101
58
|
return value && value instanceof MessagePort;
|
|
102
59
|
};
|
|
@@ -675,9 +632,12 @@ const applyDataProperties = (restoredError, error) => {
|
|
|
675
632
|
writable: true
|
|
676
633
|
});
|
|
677
634
|
}
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
restoredError
|
|
635
|
+
const name = error.data.name || error.data.type;
|
|
636
|
+
if (name) {
|
|
637
|
+
Object.defineProperty(restoredError, 'name', {
|
|
638
|
+
configurable: true,
|
|
639
|
+
value: name
|
|
640
|
+
});
|
|
681
641
|
}
|
|
682
642
|
};
|
|
683
643
|
const applyDirectProperties = (restoredError, error) => {
|
|
@@ -694,7 +654,7 @@ const applyDirectProperties = (restoredError, error) => {
|
|
|
694
654
|
}
|
|
695
655
|
};
|
|
696
656
|
const restoreMessageError = (error, _currentStack) => {
|
|
697
|
-
const restoredError = constructError(error.message, error.type || error.data?.type, error.name);
|
|
657
|
+
const restoredError = constructError(error.message, error.type || error.data?.type, error.name || error.data?.name);
|
|
698
658
|
if (typeof error.code === 'string' || typeof error.code === 'number') {
|
|
699
659
|
Object.defineProperty(restoredError, 'code', {
|
|
700
660
|
configurable: true,
|
|
@@ -904,6 +864,12 @@ const handleJsonRpcMessage = async (...args) => {
|
|
|
904
864
|
requiresSocket,
|
|
905
865
|
resolve
|
|
906
866
|
} = options;
|
|
867
|
+
if (message === 'ready') {
|
|
868
|
+
return;
|
|
869
|
+
}
|
|
870
|
+
if (!message || typeof message !== 'object') {
|
|
871
|
+
throw new JsonRpcError('unexpected message');
|
|
872
|
+
}
|
|
907
873
|
if ('id' in message) {
|
|
908
874
|
if ('method' in message) {
|
|
909
875
|
const response = await getResponse(message, ipc, execute, preparePrettyError, logError, requiresSocket);
|
|
@@ -1021,6 +987,9 @@ const logError = () => {
|
|
|
1021
987
|
// handled by renderer worker
|
|
1022
988
|
};
|
|
1023
989
|
const handleMessage = event => {
|
|
990
|
+
if (event.data === 'ready') {
|
|
991
|
+
return Promise.resolve();
|
|
992
|
+
}
|
|
1024
993
|
const actualRequiresSocket = event?.target?.requiresSocket || requiresSocket;
|
|
1025
994
|
const actualExecute = event?.target?.execute || execute;
|
|
1026
995
|
return handleJsonRpcMessage(event.target, event.data, actualExecute, event.target._resolve, preparePrettyError, logError, actualRequiresSocket);
|
|
@@ -1153,7 +1122,7 @@ const createMockRpc = ({
|
|
|
1153
1122
|
};
|
|
1154
1123
|
|
|
1155
1124
|
const rpcs = Object.create(null);
|
|
1156
|
-
const set$
|
|
1125
|
+
const set$7 = (id, rpc) => {
|
|
1157
1126
|
rpcs[id] = rpc;
|
|
1158
1127
|
};
|
|
1159
1128
|
const get$1 = id => {
|
|
@@ -1165,37 +1134,38 @@ const remove = id => {
|
|
|
1165
1134
|
|
|
1166
1135
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
1167
1136
|
const create$2 = rpcId => {
|
|
1137
|
+
// Set by set() only: a mock rpc from registerMockRpc does not count as connected.
|
|
1138
|
+
let connected = false;
|
|
1168
1139
|
return {
|
|
1169
1140
|
async dispose() {
|
|
1170
1141
|
const rpc = get$1(rpcId);
|
|
1142
|
+
connected = false;
|
|
1171
1143
|
await rpc.dispose();
|
|
1172
1144
|
},
|
|
1173
|
-
// @ts-ignore
|
|
1174
1145
|
invoke(method, ...params) {
|
|
1175
1146
|
const rpc = get$1(rpcId);
|
|
1176
|
-
// @ts-ignore
|
|
1177
1147
|
return rpc.invoke(method, ...params);
|
|
1178
1148
|
},
|
|
1179
|
-
// @ts-ignore
|
|
1180
1149
|
invokeAndTransfer(method, ...params) {
|
|
1181
1150
|
const rpc = get$1(rpcId);
|
|
1182
|
-
// @ts-ignore
|
|
1183
1151
|
return rpc.invokeAndTransfer(method, ...params);
|
|
1184
1152
|
},
|
|
1153
|
+
isConnected() {
|
|
1154
|
+
return connected;
|
|
1155
|
+
},
|
|
1185
1156
|
registerMockRpc(commandMap) {
|
|
1186
1157
|
const mockRpc = createMockRpc({
|
|
1187
1158
|
commandMap
|
|
1188
1159
|
});
|
|
1189
|
-
set$
|
|
1190
|
-
// @ts-ignore
|
|
1160
|
+
set$7(rpcId, mockRpc);
|
|
1191
1161
|
mockRpc[Symbol.dispose] = () => {
|
|
1192
1162
|
remove(rpcId);
|
|
1193
1163
|
};
|
|
1194
|
-
// @ts-ignore
|
|
1195
1164
|
return mockRpc;
|
|
1196
1165
|
},
|
|
1197
1166
|
set(rpc) {
|
|
1198
|
-
set$
|
|
1167
|
+
set$7(rpcId, rpc);
|
|
1168
|
+
connected = true;
|
|
1199
1169
|
}
|
|
1200
1170
|
};
|
|
1201
1171
|
};
|
|
@@ -1281,6 +1251,7 @@ const Polyline = 88;
|
|
|
1281
1251
|
const Rect = 89;
|
|
1282
1252
|
const Svg = 90;
|
|
1283
1253
|
const Use = 91;
|
|
1254
|
+
const Progress = 92;
|
|
1284
1255
|
const Reference = 100;
|
|
1285
1256
|
|
|
1286
1257
|
const VirtualDomElements = {
|
|
@@ -1342,6 +1313,7 @@ const VirtualDomElements = {
|
|
|
1342
1313
|
Polygon,
|
|
1343
1314
|
Polyline,
|
|
1344
1315
|
Pre,
|
|
1316
|
+
Progress,
|
|
1345
1317
|
Quote,
|
|
1346
1318
|
Rect,
|
|
1347
1319
|
Reference,
|
|
@@ -1389,47 +1361,97 @@ const SetDom2 = 'Viewlet.setDom2';
|
|
|
1389
1361
|
const SetPatches = 'Viewlet.setPatches';
|
|
1390
1362
|
|
|
1391
1363
|
const {
|
|
1392
|
-
invoke: invoke$
|
|
1393
|
-
set: set$
|
|
1364
|
+
invoke: invoke$5,
|
|
1365
|
+
set: set$6
|
|
1394
1366
|
} = create$2(ClipBoardWorker);
|
|
1395
1367
|
const writeText = async text => {
|
|
1396
|
-
return invoke$
|
|
1368
|
+
return invoke$5('ClipBoard.writeText', text);
|
|
1397
1369
|
};
|
|
1398
1370
|
|
|
1399
1371
|
const {
|
|
1400
|
-
invoke: invoke$
|
|
1401
|
-
set: set$
|
|
1372
|
+
invoke: invoke$4,
|
|
1373
|
+
set: set$5
|
|
1402
1374
|
} = create$2(DialogWorker);
|
|
1403
1375
|
|
|
1404
1376
|
const {
|
|
1405
|
-
invoke: invoke$
|
|
1406
|
-
set: set$
|
|
1377
|
+
invoke: invoke$3,
|
|
1378
|
+
set: set$4
|
|
1407
1379
|
} = create$2(ExtensionManagementWorker);
|
|
1408
1380
|
const disable2 = (id, platform) => {
|
|
1409
|
-
return invoke$
|
|
1381
|
+
return invoke$3(`Extensions.disable2`, id, platform);
|
|
1382
|
+
};
|
|
1383
|
+
const disableWorkspace$2 = id => {
|
|
1384
|
+
return invoke$3('Extensions.disableWorkspace', id);
|
|
1385
|
+
};
|
|
1386
|
+
const getRunningExtensions$1 = async (assetDir, platform) => {
|
|
1387
|
+
return invoke$3('Extensions.getRunningExtensions', assetDir, platform);
|
|
1410
1388
|
};
|
|
1411
1389
|
|
|
1412
1390
|
const {
|
|
1413
|
-
invoke: invoke$
|
|
1414
|
-
set: set$
|
|
1391
|
+
invoke: invoke$2,
|
|
1392
|
+
set: set$3
|
|
1415
1393
|
} = create$2(MainProcess);
|
|
1416
1394
|
|
|
1417
1395
|
const {
|
|
1418
|
-
invoke: invoke$
|
|
1419
|
-
|
|
1396
|
+
invoke: invoke$1,
|
|
1397
|
+
isConnected,
|
|
1398
|
+
set: set$2
|
|
1420
1399
|
} = create$2(RendererProcess);
|
|
1421
1400
|
|
|
1401
|
+
class AssertionError extends Error {
|
|
1402
|
+
constructor(message) {
|
|
1403
|
+
super(message);
|
|
1404
|
+
this.name = 'AssertionError';
|
|
1405
|
+
}
|
|
1406
|
+
}
|
|
1407
|
+
const Object$1 = 1;
|
|
1408
|
+
const Number$1 = 2;
|
|
1409
|
+
const Array$1 = 3;
|
|
1410
|
+
const String$1 = 4;
|
|
1411
|
+
const Boolean$1 = 5;
|
|
1412
|
+
const Function = 6;
|
|
1413
|
+
const Null = 7;
|
|
1414
|
+
const Unknown = 8;
|
|
1415
|
+
const getType = value => {
|
|
1416
|
+
switch (typeof value) {
|
|
1417
|
+
case 'number':
|
|
1418
|
+
return Number$1;
|
|
1419
|
+
case 'function':
|
|
1420
|
+
return Function;
|
|
1421
|
+
case 'string':
|
|
1422
|
+
return String$1;
|
|
1423
|
+
case 'object':
|
|
1424
|
+
if (value === null) {
|
|
1425
|
+
return Null;
|
|
1426
|
+
}
|
|
1427
|
+
if (Array.isArray(value)) {
|
|
1428
|
+
return Array$1;
|
|
1429
|
+
}
|
|
1430
|
+
return Object$1;
|
|
1431
|
+
case 'boolean':
|
|
1432
|
+
return Boolean$1;
|
|
1433
|
+
default:
|
|
1434
|
+
return Unknown;
|
|
1435
|
+
}
|
|
1436
|
+
};
|
|
1437
|
+
const number = value => {
|
|
1438
|
+
const type = getType(value);
|
|
1439
|
+
if (type !== Number$1) {
|
|
1440
|
+
throw new AssertionError('expected value to be of type number');
|
|
1441
|
+
}
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1422
1444
|
const {
|
|
1423
|
-
invoke
|
|
1445
|
+
invoke,
|
|
1424
1446
|
invokeAndTransfer,
|
|
1425
|
-
set: set$
|
|
1447
|
+
set: set$1
|
|
1426
1448
|
} = create$2(RendererWorker);
|
|
1427
1449
|
const showContextMenu2 = async (uid, menuId, x, y, args) => {
|
|
1428
1450
|
number(uid);
|
|
1429
1451
|
number(menuId);
|
|
1430
1452
|
number(x);
|
|
1431
1453
|
number(y);
|
|
1432
|
-
await invoke
|
|
1454
|
+
await invoke('ContextMenu.show2', uid, menuId, x, y, args);
|
|
1433
1455
|
};
|
|
1434
1456
|
const sendMessagePortToClipBoardWorker = async (port, rpcId) => {
|
|
1435
1457
|
const command = 'ClipBoard.handleMessagePort';
|
|
@@ -1444,13 +1466,13 @@ const sendMessagePortToExtensionManagementWorker = async (port, rpcId) => {
|
|
|
1444
1466
|
await invokeAndTransfer('SendMessagePortToExtensionHostWorker.sendMessagePortToExtensionManagementWorker', port, command, rpcId);
|
|
1445
1467
|
};
|
|
1446
1468
|
const getWindowId = async () => {
|
|
1447
|
-
return invoke
|
|
1469
|
+
return invoke('GetWindowId.getWindowId');
|
|
1448
1470
|
};
|
|
1449
1471
|
const openExternal = async uri => {
|
|
1450
|
-
await invoke
|
|
1472
|
+
await invoke('Open.openExternal', uri);
|
|
1451
1473
|
};
|
|
1452
1474
|
const openUrl = async uri => {
|
|
1453
|
-
await invoke
|
|
1475
|
+
await invoke('Open.openUrl', uri);
|
|
1454
1476
|
};
|
|
1455
1477
|
|
|
1456
1478
|
const copyId$1 = async (state, index) => {
|
|
@@ -1714,7 +1736,7 @@ const {
|
|
|
1714
1736
|
get,
|
|
1715
1737
|
getCommandIds,
|
|
1716
1738
|
registerCommands,
|
|
1717
|
-
set
|
|
1739
|
+
set,
|
|
1718
1740
|
wrapCommand,
|
|
1719
1741
|
wrapGetter
|
|
1720
1742
|
} = create$1();
|
|
@@ -1735,7 +1757,7 @@ const create = (uid, uri, x, y, width, height, platform, assetDir) => {
|
|
|
1735
1757
|
x,
|
|
1736
1758
|
y
|
|
1737
1759
|
};
|
|
1738
|
-
set
|
|
1760
|
+
set(uid, state, state);
|
|
1739
1761
|
};
|
|
1740
1762
|
|
|
1741
1763
|
const isDomEqual = (oldState, newState) => {
|
|
@@ -1775,7 +1797,7 @@ const disableWorkspace$1 = async (state, index) => {
|
|
|
1775
1797
|
} = state;
|
|
1776
1798
|
const extension = extensions[index];
|
|
1777
1799
|
if (extension) {
|
|
1778
|
-
await
|
|
1800
|
+
await disableWorkspace$2(extension.id);
|
|
1779
1801
|
}
|
|
1780
1802
|
return state;
|
|
1781
1803
|
};
|
|
@@ -1987,28 +2009,13 @@ const handleContextMenu = async (state, eventX, eventY) => {
|
|
|
1987
2009
|
focusedIndex,
|
|
1988
2010
|
focusOutline: true
|
|
1989
2011
|
};
|
|
1990
|
-
set
|
|
2012
|
+
set(uid, state, newState);
|
|
1991
2013
|
await show(uid, RunningExtensions$1, eventX, eventY, {
|
|
1992
2014
|
menuId: RunningExtensions$1
|
|
1993
2015
|
});
|
|
1994
2016
|
return newState;
|
|
1995
2017
|
};
|
|
1996
2018
|
|
|
1997
|
-
const state = {
|
|
1998
|
-
connected: false
|
|
1999
|
-
};
|
|
2000
|
-
const isConnected = () => {
|
|
2001
|
-
const {
|
|
2002
|
-
connected
|
|
2003
|
-
} = state;
|
|
2004
|
-
return connected;
|
|
2005
|
-
};
|
|
2006
|
-
const invoke = (method, ...params) => invoke$2(method, ...params);
|
|
2007
|
-
const set = rpc => {
|
|
2008
|
-
set$3(rpc);
|
|
2009
|
-
state.connected = true;
|
|
2010
|
-
};
|
|
2011
|
-
|
|
2012
2019
|
const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess = true) => {
|
|
2013
2020
|
const executeViewletCommand = async (uid, command, ...args) => {
|
|
2014
2021
|
const fn = viewletCommandMap[`RunningExtensions.${command}`];
|
|
@@ -2016,7 +2023,7 @@ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess =
|
|
|
2016
2023
|
throw new TypeError(`Viewlet command not found: ${command}`);
|
|
2017
2024
|
}
|
|
2018
2025
|
await fn(uid, ...args);
|
|
2019
|
-
await invoke
|
|
2026
|
+
await invoke('Viewlet.requestRender', uid);
|
|
2020
2027
|
};
|
|
2021
2028
|
const rpc = await create$6({
|
|
2022
2029
|
commandMap: {
|
|
@@ -2025,12 +2032,12 @@ const handleMessagePort = async (port, viewletCommandMap, setAsRendererProcess =
|
|
|
2025
2032
|
messagePort: port
|
|
2026
2033
|
});
|
|
2027
2034
|
if (setAsRendererProcess) {
|
|
2028
|
-
set(rpc);
|
|
2035
|
+
set$2(rpc);
|
|
2029
2036
|
}
|
|
2030
2037
|
};
|
|
2031
2038
|
|
|
2032
2039
|
const getRunningExtensions = async (assetDir, platform) => {
|
|
2033
|
-
return
|
|
2040
|
+
return getRunningExtensions$1(assetDir, platform);
|
|
2034
2041
|
};
|
|
2035
2042
|
|
|
2036
2043
|
const getDisplayName = extension => {
|
|
@@ -2567,13 +2574,13 @@ const render2 = (uid, diffResult) => {
|
|
|
2567
2574
|
newState,
|
|
2568
2575
|
oldState
|
|
2569
2576
|
} = get(uid);
|
|
2570
|
-
set
|
|
2577
|
+
set(uid, newState, newState);
|
|
2571
2578
|
const commands = diffResult.map(diffType => getRenderer(diffType)(oldState, newState));
|
|
2572
2579
|
if (!isConnected()) return commands;
|
|
2573
2580
|
return renderDirect(uid, commands);
|
|
2574
2581
|
};
|
|
2575
2582
|
const renderDirect = async (uid, commands) => {
|
|
2576
|
-
const transactionId = await invoke('Viewlet.queueCommands', uid, commands);
|
|
2583
|
+
const transactionId = await invoke$1('Viewlet.queueCommands', uid, commands);
|
|
2577
2584
|
return [['Viewlet.commitPending', uid, transactionId]];
|
|
2578
2585
|
};
|
|
2579
2586
|
|
|
@@ -2640,7 +2647,7 @@ const reportIssue = async (state, index) => {
|
|
|
2640
2647
|
}
|
|
2641
2648
|
const issuesUrl = getIssuesUrl(extension.repository);
|
|
2642
2649
|
if (!issuesUrl) {
|
|
2643
|
-
await invoke$
|
|
2650
|
+
await invoke$4('ConfirmPrompt.prompt', reportingIssuesNotSupported(), undefined);
|
|
2644
2651
|
return state;
|
|
2645
2652
|
}
|
|
2646
2653
|
const cmd = getOpenCommand(platform);
|
|
@@ -2665,16 +2672,16 @@ const startProfile = async (state, index) => {
|
|
|
2665
2672
|
return state;
|
|
2666
2673
|
}
|
|
2667
2674
|
if (platform !== Electron) {
|
|
2668
|
-
await invoke$
|
|
2675
|
+
await invoke$4('ConfirmPrompt.prompt', extensionHostProfilingNotAvailable(), undefined);
|
|
2669
2676
|
return state;
|
|
2670
2677
|
}
|
|
2671
2678
|
const windowId = await getWindowId();
|
|
2672
2679
|
try {
|
|
2673
|
-
const uri = extension.isolated ? await invoke$
|
|
2674
|
-
await invoke
|
|
2680
|
+
const uri = extension.isolated ? await invoke$2('ElectronDeveloper.takeWorkerCpuProfile', windowId, extension.workerName || extensionApiElectron(extension.id)) : await invoke$2('ElectronDeveloper.takeWindowCpuProfile', windowId);
|
|
2681
|
+
await invoke('Main.openUri', uri);
|
|
2675
2682
|
} catch (error) {
|
|
2676
2683
|
const message = error instanceof Error ? error.message : String(error);
|
|
2677
|
-
await invoke$
|
|
2684
|
+
await invoke$4('ConfirmPrompt.prompt', message, undefined);
|
|
2678
2685
|
}
|
|
2679
2686
|
return state;
|
|
2680
2687
|
};
|
|
@@ -2694,11 +2701,11 @@ const takeHeapSnapshot = async (state, index) => {
|
|
|
2694
2701
|
const windowId = await getWindowId();
|
|
2695
2702
|
const workerName = extension.workerName || extensionApiElectron(extension.id);
|
|
2696
2703
|
try {
|
|
2697
|
-
const uri = await invoke$
|
|
2698
|
-
await invoke
|
|
2704
|
+
const uri = await invoke$2('ElectronDeveloper.takeWorkerHeapSnapshot', windowId, workerName);
|
|
2705
|
+
await invoke('Main.openUri', uri);
|
|
2699
2706
|
} catch (error) {
|
|
2700
2707
|
const message = error instanceof Error ? error.message : String(error);
|
|
2701
|
-
await invoke$
|
|
2708
|
+
await invoke$4('ConfirmPrompt.prompt', message, undefined);
|
|
2702
2709
|
return state;
|
|
2703
2710
|
}
|
|
2704
2711
|
return state;
|
|
@@ -2737,7 +2744,7 @@ const initializeClipBoardWorker = async () => {
|
|
|
2737
2744
|
commandMap: {},
|
|
2738
2745
|
send: send$2
|
|
2739
2746
|
});
|
|
2740
|
-
set$
|
|
2747
|
+
set$6(rpc);
|
|
2741
2748
|
};
|
|
2742
2749
|
|
|
2743
2750
|
const send$1 = async port => {
|
|
@@ -2748,7 +2755,7 @@ const initializeExtensionManagementWorker = async () => {
|
|
|
2748
2755
|
commandMap: {},
|
|
2749
2756
|
send: send$1
|
|
2750
2757
|
});
|
|
2751
|
-
set$
|
|
2758
|
+
set$4(rpc);
|
|
2752
2759
|
};
|
|
2753
2760
|
|
|
2754
2761
|
const send = async port => {
|
|
@@ -2759,14 +2766,14 @@ const initializeMainProcess = async () => {
|
|
|
2759
2766
|
commandMap: {},
|
|
2760
2767
|
send
|
|
2761
2768
|
});
|
|
2762
|
-
set$
|
|
2769
|
+
set$3(rpc);
|
|
2763
2770
|
};
|
|
2764
2771
|
|
|
2765
2772
|
const initializeRendererWorker = async () => {
|
|
2766
2773
|
const rpc = await create$3({
|
|
2767
2774
|
commandMap: commandMap
|
|
2768
2775
|
});
|
|
2769
|
-
set$
|
|
2776
|
+
set$1(rpc);
|
|
2770
2777
|
};
|
|
2771
2778
|
|
|
2772
2779
|
const listen = async () => {
|
|
@@ -2776,7 +2783,7 @@ const listen = async () => {
|
|
|
2776
2783
|
commandMap: {},
|
|
2777
2784
|
send: sendMessagePortToDialogWorker
|
|
2778
2785
|
});
|
|
2779
|
-
set$
|
|
2786
|
+
set$5(dialogRpc);
|
|
2780
2787
|
};
|
|
2781
2788
|
|
|
2782
2789
|
const main = async () => {
|