@lvce-editor/rpc-registry 3.1.0 → 3.2.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
@@ -527,8 +527,8 @@ declare const setWebViewPort: (uid: number, port: MessagePort, origin: string, p
527
527
  declare const setFocus: (key: number) => Promise<void>;
528
528
  declare const getFileIcon: (options: any) => Promise<string>;
529
529
  declare const getColorThemeNames: () => Promise<readonly string[]>;
530
- declare const disableExtension: (id: string) => Promise<void>;
531
- declare const enableExtension: (id: string) => Promise<void>;
530
+ declare const disableExtension: (id: string) => Promise<Error | undefined>;
531
+ declare const enableExtension: (id: string) => Promise<Error | undefined>;
532
532
  declare const handleDebugChange: (params: any) => Promise<void>;
533
533
  declare const getFolderIcon: (options: any) => Promise<string>;
534
534
  declare const closeWidget$1: (widgetId: string | number) => Promise<void>;
@@ -82,6 +82,7 @@ export const getColorThemeNames = async () => {
82
82
  return invoke('ColorTheme.getColorThemeNames');
83
83
  };
84
84
  export const disableExtension = async (id) => {
85
+ // @ts-ignore
85
86
  return invoke('ExtensionManagement.disable', id);
86
87
  };
87
88
  export const enableExtension = async (id) => {
@@ -107,7 +108,7 @@ export const sendMessagePortToSearchProcess = async (port) => {
107
108
  };
108
109
  export const confirm = async (message, options) => {
109
110
  // @ts-ignore
110
- const result = await invoke('Confirmprompt.prompt', message, options);
111
+ const result = await invoke('ConfirmPrompt.prompt', message, options);
111
112
  return result;
112
113
  };
113
114
  export const getRecentlyOpened = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/rpc-registry",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Rpc Registry",
5
5
  "license": "MIT",
6
6
  "author": "Lvce Editor",