@lvce-editor/rpc-registry 9.24.0 → 9.25.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 +1,7 @@
|
|
|
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
|
+
export interface PrettyError {
|
|
3
|
+
readonly codeFrame: string | undefined;
|
|
4
|
+
readonly message: string | undefined;
|
|
5
|
+
readonly stack: string | undefined;
|
|
6
|
+
}
|
|
7
|
+
export declare const prepare: (error: any) => Promise<PrettyError>;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { RpcId } from '@lvce-editor/constants';
|
|
2
2
|
import * as RpcFactory from "../RpcFactory/RpcFactory.js";
|
|
3
3
|
export const { dispose, invoke, invokeAndTransfer, set } = RpcFactory.create(RpcId.ErrorWorker);
|
|
4
|
+
export const prepare = async (error) => {
|
|
5
|
+
return invoke('Errors.prepare', error);
|
|
6
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lvce-editor/rpc-registry",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.25.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": "^5.
|
|
16
|
+
"@lvce-editor/constants": "^5.14.0",
|
|
17
17
|
"@lvce-editor/rpc": "^6.4.0"
|
|
18
18
|
},
|
|
19
19
|
"exports": "./dist/index.js",
|