@lvce-editor/rpc-registry 2.13.0 → 2.13.2
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/index.js +10 -10
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,28 +9,21 @@ const remove = id => {
|
|
|
9
9
|
delete rpcs[id];
|
|
10
10
|
};
|
|
11
11
|
|
|
12
|
-
const EditorWorker$1 = 99;
|
|
13
|
-
const ExtensionHostWorker = 44;
|
|
14
|
-
const MainProcess$1 = -5;
|
|
15
|
-
const RendererWorker$1 = 1;
|
|
16
|
-
const SearchProcess$1 = 77;
|
|
17
|
-
const SharedProcess$1 = 1;
|
|
18
|
-
|
|
19
12
|
/* eslint-disable @typescript-eslint/explicit-function-return-type */
|
|
20
13
|
|
|
21
14
|
const create = rpcId => {
|
|
22
15
|
return {
|
|
23
16
|
// @ts-ignore
|
|
24
17
|
invoke(method, ...params) {
|
|
25
|
-
const rpc = get(
|
|
18
|
+
const rpc = get(rpcId);
|
|
26
19
|
// @ts-ignore
|
|
27
20
|
return rpc.invoke(method, ...params);
|
|
28
21
|
},
|
|
29
22
|
// @ts-ignore
|
|
30
23
|
invokeAndTransfer(method, ...params) {
|
|
31
|
-
const rpc = get(
|
|
24
|
+
const rpc = get(rpcId);
|
|
32
25
|
// @ts-ignore
|
|
33
|
-
return rpc.
|
|
26
|
+
return rpc.invokeAndTransfer(method, ...params);
|
|
34
27
|
},
|
|
35
28
|
set(rpc) {
|
|
36
29
|
set$7(rpcId, rpc);
|
|
@@ -38,6 +31,13 @@ const create = rpcId => {
|
|
|
38
31
|
};
|
|
39
32
|
};
|
|
40
33
|
|
|
34
|
+
const EditorWorker$1 = 99;
|
|
35
|
+
const ExtensionHostWorker = 44;
|
|
36
|
+
const MainProcess$1 = -5;
|
|
37
|
+
const RendererWorker$1 = 1;
|
|
38
|
+
const SearchProcess$1 = 77;
|
|
39
|
+
const SharedProcess$1 = 1;
|
|
40
|
+
|
|
41
41
|
const {
|
|
42
42
|
invoke: invoke$6,
|
|
43
43
|
invokeAndTransfer: invokeAndTransfer$6,
|