@lvce-editor/rpc-registry 5.10.0 → 5.12.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
|
@@ -66,8 +66,11 @@ declare const registerMockRpc$1: (commandMap: Record<string, any>) => MockRpc;
|
|
|
66
66
|
declare const dispose$7: () => Promise<void>, invoke$7: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$7: (method: string, ...params: readonly unknown[]) => Promise<any>, set$7: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
67
67
|
declare const registerMockRpc$2: (commandMap: Record<string, any>) => MockRpc;
|
|
68
68
|
declare const enable: (id: string) => Promise<void>;
|
|
69
|
+
declare const enable2: (id: string, platform: number) => Promise<void>;
|
|
69
70
|
declare const disable: (id: string) => Promise<void>;
|
|
71
|
+
declare const disable2: (id: string, platform: number) => Promise<void>;
|
|
70
72
|
declare const getExtension: (id: string) => Promise<any>;
|
|
73
|
+
declare const getLanguages: (platform: number, assetDir: string) => Promise<any>;
|
|
71
74
|
declare const install: (id: string) => Promise<void>;
|
|
72
75
|
declare const uninstall: (id: string) => Promise<void>;
|
|
73
76
|
declare const dispose$8: () => Promise<void>, invoke$8: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer$8: (method: string, ...params: readonly unknown[]) => Promise<any>, set$8: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
@@ -266,7 +269,7 @@ declare namespace ExtensionHost {
|
|
|
266
269
|
export { dispose$6 as dispose, executeFileReferenceProvider, executeReferenceProvider, getRuntimeStatus, invoke$6 as invoke, invokeAndTransfer$6 as invokeAndTransfer, registerMockRpc$1 as registerMockRpc, set$6 as set };
|
|
267
270
|
}
|
|
268
271
|
declare namespace ExtensionManagementWorker {
|
|
269
|
-
export { disable, dispose$7 as dispose, enable, getExtension, install, invoke$7 as invoke, invokeAndTransfer$7 as invokeAndTransfer, registerMockRpc$2 as registerMockRpc, set$7 as set, uninstall };
|
|
272
|
+
export { disable, disable2, dispose$7 as dispose, enable, enable2, getExtension, getLanguages, install, invoke$7 as invoke, invokeAndTransfer$7 as invokeAndTransfer, registerMockRpc$2 as registerMockRpc, set$7 as set, uninstall };
|
|
270
273
|
}
|
|
271
274
|
declare namespace FileSystemProcess {
|
|
272
275
|
export { appendFile, copy, dispose$8 as dispose, exists, getFolderSize, getPathSeparator, getRealPath, invoke$8 as invoke, invokeAndTransfer$8 as invokeAndTransfer, mkdir, readDirWithFileTypes, readFile, readJson, registerMockRpc$3 as registerMockRpc, remove, rename, set$8 as set, stat, writeFile };
|
|
@@ -10,12 +10,21 @@ export const registerMockRpc = (commandMap) => {
|
|
|
10
10
|
export const enable = (id) => {
|
|
11
11
|
return invoke(`Extensions.enable`, id);
|
|
12
12
|
};
|
|
13
|
+
export const enable2 = (id, platform) => {
|
|
14
|
+
return invoke(`Extensions.enable`, id, platform);
|
|
15
|
+
};
|
|
13
16
|
export const disable = (id) => {
|
|
14
17
|
return invoke(`Extensions.disable`, id);
|
|
15
18
|
};
|
|
19
|
+
export const disable2 = (id, platform) => {
|
|
20
|
+
return invoke(`Extensions.disable`, id, platform);
|
|
21
|
+
};
|
|
16
22
|
export const getExtension = (id) => {
|
|
17
23
|
return invoke(`Extensions.getExtension`, id);
|
|
18
24
|
};
|
|
25
|
+
export const getLanguages = (platform, assetDir) => {
|
|
26
|
+
return invoke('Languages.getLanguages', platform, assetDir);
|
|
27
|
+
};
|
|
19
28
|
export const install = (id) => {
|
|
20
29
|
return invoke(`Extensions.install`, id);
|
|
21
30
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/rpc-registry",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
4
4
|
"description": "Rpc Registry",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@lvce-editor/assert": "^1.5.1",
|
|
16
|
-
"@lvce-editor/constants": "^
|
|
16
|
+
"@lvce-editor/constants": "^2.2.0",
|
|
17
17
|
"@lvce-editor/rpc": "^4.20.0"
|
|
18
18
|
},
|
|
19
19
|
"types": "dist/index.d.ts"
|