@lvce-editor/rpc-registry 3.8.0 → 3.10.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/index.d.ts
CHANGED
|
@@ -174,7 +174,7 @@ declare const exists$1: (uri: string) => Promise<boolean>;
|
|
|
174
174
|
declare const getFolderSize$1: (uri: string) => Promise<number>;
|
|
175
175
|
declare const readFileAsBlob: (uri: string) => Promise<Blob>;
|
|
176
176
|
declare const appendFile$1: (uri: string, text: string) => Promise<string>;
|
|
177
|
-
declare const invoke$9: <T extends
|
|
177
|
+
declare const invoke$9: <T extends never>(method: T, ...params: Parameters<object[T]>) => ReturnType<object[T]>, invokeAndTransfer$9: <T extends never>(method: T, ...params: Parameters<object[T]>) => ReturnType<object[T]>, set$9: (rpc: import("@lvce-editor/rpc").Rpc) => void, dispose$9: () => Promise<void>;
|
|
178
178
|
declare const getIcons: (iconRequests: readonly any[]) => Promise<readonly any[]>;
|
|
179
179
|
declare const registerMockRpc$3: (commandMap: Record<string, any>) => MockRpc;
|
|
180
180
|
declare const NodeWorker = 1;
|
|
@@ -620,6 +620,7 @@ export interface LazyRpc {
|
|
|
620
620
|
}
|
|
621
621
|
export declare const createLazyRpc: (rpcId: number) => LazyRpc;
|
|
622
622
|
export declare const getIpcType: (argv: readonly string[]) => number;
|
|
623
|
+
declare const registerMockRpc$5: (rpcId: number, commandMap: Record<string, any>) => MockRpc;
|
|
623
624
|
declare const set$17: (id: number, rpc: Rpc) => void;
|
|
624
625
|
export declare const get: (id: number) => Rpc;
|
|
625
626
|
declare const remove$2: (id: number) => void;
|
|
@@ -701,6 +702,7 @@ export {
|
|
|
701
702
|
SearchProcess,
|
|
702
703
|
SharedProcess,
|
|
703
704
|
SyntaxHighlightingWorker,
|
|
705
|
+
registerMockRpc$5 as registerMockRpc,
|
|
704
706
|
remove$2 as remove,
|
|
705
707
|
set$17 as set,
|
|
706
708
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { RpcId } from '@lvce-editor/constants';
|
|
1
2
|
import { createMockRpc } from '@lvce-editor/rpc';
|
|
2
3
|
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
3
|
-
const
|
|
4
|
-
export const { invoke, invokeAndTransfer, set, dispose } = RpcFactory.create(id);
|
|
4
|
+
export const { invoke, invokeAndTransfer, set, dispose } = RpcFactory.create(RpcId.IconThemeWorker);
|
|
5
5
|
export const getIcons = async (iconRequests) => {
|
|
6
6
|
// @ts-ignore
|
|
7
7
|
return invoke('IconTheme.getIcons', iconRequests);
|
package/dist/parts/Main/Main.js
CHANGED
|
@@ -19,4 +19,5 @@ export * as SharedProcess from "../SharedProcess/SharedProcess.js";
|
|
|
19
19
|
export * as SyntaxHighlightingWorker from "../SyntaxHighlightingWorker/SyntaxHighlightingWorker.js";
|
|
20
20
|
export * from "../CreateLazyRpc/CreateLazyRpc.js";
|
|
21
21
|
export * from "../GetIpcType/GetIpcType.js";
|
|
22
|
+
export * from "../RegisterMockRpc/RegisterMockRpc.js";
|
|
22
23
|
export * from "../RpcRegistry/RpcRegistry.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/rpc-registry",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "Rpc Registry",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Lvce Editor",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@lvce-editor/constants": "^1.
|
|
11
|
+
"@lvce-editor/constants": "^1.24.0",
|
|
12
12
|
"@lvce-editor/rpc": "^4.19.0"
|
|
13
13
|
},
|
|
14
14
|
"types": "dist/index.d.ts"
|