@lvce-editor/rpc-registry 8.2.0 → 8.3.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const dispose: () => Promise<void>, invoke: (method: string, ...params: readonly unknown[]) => Promise<any>, invokeAndTransfer: (method: string, ...params: readonly unknown[]) => Promise<any>, set: (rpc: import("@lvce-editor/rpc").Rpc) => void;
|
|
2
2
|
export declare const enableMemoryOpener: () => Promise<void>;
|
|
3
3
|
export declare const openExternal: (url: string) => Promise<void>;
|
|
4
|
-
export declare const openUrl: (url: string) => Promise<void>;
|
|
4
|
+
export declare const openUrl: (url: string, platform: number) => Promise<void>;
|
|
5
5
|
export declare const readOpenedUrl: () => Promise<string>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
import { RpcId } from '@lvce-editor/constants';
|
|
1
2
|
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
2
|
-
const
|
|
3
|
-
export const { dispose, invoke, invokeAndTransfer, set } = RpcFactory.create(rpcId);
|
|
3
|
+
export const { dispose, invoke, invokeAndTransfer, set } = RpcFactory.create(RpcId.OpenerWorker);
|
|
4
4
|
export const enableMemoryOpener = async () => {
|
|
5
5
|
return invoke('Open.enableMemoryOpener');
|
|
6
6
|
};
|
|
7
7
|
export const openExternal = async (url) => {
|
|
8
8
|
return invoke('Open.openExternal', url);
|
|
9
9
|
};
|
|
10
|
-
export const openUrl = async (url) => {
|
|
11
|
-
return invoke('Open.openUrl', url);
|
|
10
|
+
export const openUrl = async (url, platform) => {
|
|
11
|
+
return invoke('Open.openUrl', url, platform);
|
|
12
12
|
};
|
|
13
13
|
export const readOpenedUrl = async () => {
|
|
14
14
|
return invoke('Open.readOpenedUrl');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/rpc-registry",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.3.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": "^3.
|
|
16
|
+
"@lvce-editor/constants": "^3.1.0",
|
|
17
17
|
"@lvce-editor/rpc": "^5.5.0"
|
|
18
18
|
},
|
|
19
19
|
"types": "dist/index.d.ts"
|