@lvce-editor/rpc-registry 3.8.0 → 3.9.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;
|
|
@@ -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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/rpc-registry",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.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"
|