@canton-network/core-rpc-errors 1.11.1-backport.1 → 1.11.1-backport.3

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _metamask_rpc_errors = require("@metamask/rpc-errors");
3
- //#region src/index.ts
3
+ // src/index.ts
4
4
  const toHttpErrorCode = (rpcCode) => {
5
5
  return {
6
6
  [_metamask_rpc_errors.errorCodes.rpc.parse]: 400,
@@ -12,7 +12,6 @@ const toHttpErrorCode = (rpcCode) => {
12
12
  [_metamask_rpc_errors.errorCodes.rpc.internal]: 500
13
13
  }[rpcCode] || 500;
14
14
  };
15
- //#endregion
16
15
  Object.defineProperty(exports, "JsonRpcError", {
17
16
  enumerable: true,
18
17
  get: function() {
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { JsonRpcError, errorCodes, providerErrors, rpcErrors } from "@metamask/rpc-errors";
2
- //#region src/index.ts
2
+ // src/index.ts
3
3
  const toHttpErrorCode = (rpcCode) => {
4
4
  return {
5
5
  [errorCodes.rpc.parse]: 400,
@@ -11,7 +11,6 @@ const toHttpErrorCode = (rpcCode) => {
11
11
  [errorCodes.rpc.internal]: 500
12
12
  }[rpcCode] || 500;
13
13
  };
14
- //#endregion
15
14
  export { JsonRpcError, providerErrors, rpcErrors, toHttpErrorCode };
16
15
 
17
16
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canton-network/core-rpc-errors",
3
- "version": "1.11.1-backport.1",
3
+ "version": "1.11.1-backport.3",
4
4
  "type": "module",
5
5
  "description": "Wrapper for JSON-RPC error objects",
6
6
  "author": "Alex Matson <alex.matson@digitalasset.com>",
@@ -26,10 +26,10 @@
26
26
  "@metamask/rpc-errors": "^7.0.3"
27
27
  },
28
28
  "devDependencies": {
29
- "@vitest/coverage-v8": "^4.1.10",
30
- "tsdown": "^0.22.9",
29
+ "@vitest/coverage-v8": "^4.1.12",
30
+ "tsdown": "^0.22.14",
31
31
  "typescript": "^5.9.3",
32
- "vitest": "^4.1.11"
32
+ "vitest": "^4.1.12"
33
33
  },
34
34
  "repository": {
35
35
  "type": "git",