@lvce-editor/json-rpc 6.2.0 → 7.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.
Files changed (2) hide show
  1. package/dist/index.js +3 -2
  2. package/package.json +4 -1
package/dist/index.js CHANGED
@@ -129,7 +129,8 @@ const splitLines = lines => {
129
129
  };
130
130
 
131
131
  const getCurrentStack = () => {
132
- const currentStack = joinLines(splitLines(new Error().stack || '').slice(2));
132
+ const stackLinesToSkip = 3;
133
+ const currentStack = joinLines(splitLines(new Error().stack || '').slice(stackLinesToSkip));
133
134
  return currentStack;
134
135
  };
135
136
 
@@ -419,4 +420,4 @@ const invokeAndTransfer = (ipc, method, ...params) => {
419
420
  return invokeHelper(ipc, method, params, true);
420
421
  };
421
422
 
422
- export { JsonRpcEvent, JsonRpcRequest, getErrorResponse, getSuccessResponse, handleJsonRpcMessage, invoke, invokeAndTransfer, registerPromise, resolve, send };
423
+ export { JsonRpcEvent, JsonRpcRequest, getErrorResponse, getSuccessResponse, handleJsonRpcMessage, invoke, invokeAndTransfer, registerPromise, resolve, restoreJsonRpcError, send, unwrapJsonRpcResult };
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@lvce-editor/json-rpc",
3
- "version": "6.2.0",
3
+ "version": "7.2.0",
4
4
  "description": "JsonRpc implementation",
5
+ "repository": {
6
+ "url": "https://github.com/lvce-editor/json-rpc"
7
+ },
5
8
  "main": "dist/index.js",
6
9
  "type": "module",
7
10
  "types": "dist/index.d.ts",