@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.
Files changed (2) hide show
  1. package/dist/index.js +10 -10
  2. 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(RendererWorker$1);
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(RendererWorker$1);
24
+ const rpc = get(rpcId);
32
25
  // @ts-ignore
33
- return rpc.invoke(method, ...params);
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/rpc-registry",
3
- "version": "2.13.0",
3
+ "version": "2.13.2",
4
4
  "description": "Rpc Registry",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",