@argent/x-shared 1.78.8 → 1.78.9

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 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./getMessageFromSimulationError.cjs"),c=require("./schema.cjs"),g=require("../../../transactions/getPrettyRcpError.cjs");function u(t){if(!t)return;const o=t.transactions?.flatMap(a=>c.isTransactionSimulationError(a)?a.simulationError:!1),r=o?.[o.length-1];if(!r)return;const n=l.getMessageFromSimulationError(r),s=r.message||r.error,e=g.getPrettyRpcError(s),i=e||r.label;return{message:e?s:n,label:i}}exports.getErrorMessageAndLabelFromSimulation=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./getMessageFromSimulationError.cjs"),c=require("./schema.cjs"),g=require("../../../transactions/getPrettyRcpError.cjs");function u(o){if(!o)return;const t=o.transactions?.flatMap(n=>c.isTransactionSimulationError(n)?n.simulationError:!1),r=t?.[t.length-1];if(!r)return;const a=l.getMessageFromSimulationError(r),s=r.message||r.error,e=g.getPrettyRpcError(s),i=e||r.label;return{message:e?s||"Unknown RPC error":a,label:i}}exports.getErrorMessageAndLabelFromSimulation=u;
@@ -1,5 +1,5 @@
1
1
  import { SimulateAndReview } from './schema';
2
2
  export declare function getErrorMessageAndLabelFromSimulation(simulateAndReview?: SimulateAndReview): {
3
- message: string | undefined;
3
+ message: string;
4
4
  label: string | undefined;
5
5
  } | undefined;
@@ -4,12 +4,12 @@ import { getPrettyRpcError as c } from "../../../transactions/getPrettyRcpError.
4
4
  function p(t) {
5
5
  if (!t)
6
6
  return;
7
- const s = t.transactions?.flatMap((a) => l(a) ? a.simulationError : !1), r = s?.[s.length - 1];
7
+ const s = t.transactions?.flatMap((n) => l(n) ? n.simulationError : !1), r = s?.[s.length - 1];
8
8
  if (!r)
9
9
  return;
10
- const n = m(r), e = r.message || r.error, o = c(e), i = o || r.label;
10
+ const a = m(r), e = r.message || r.error, o = c(e), i = o || r.label;
11
11
  return {
12
- message: o ? e : n,
12
+ message: o ? e || "Unknown RPC error" : a,
13
13
  label: i
14
14
  };
15
15
  }
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e.error?e.error:e.message&&e.code?`${e.code}: ${e.message}`:"Unknown error"}exports.getMessageFromSimulationError=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e){return e.error?e.error:e.message&&e.code?`${e.code}: ${e.message}`:"Unknown transaction simulation error"}exports.getMessageFromSimulationError=r;
@@ -1,6 +1,6 @@
1
- function r(e) {
2
- return e.error ? e.error : e.message && e.code ? `${e.code}: ${e.message}` : "Unknown error";
1
+ function n(e) {
2
+ return e.error ? e.error : e.message && e.code ? `${e.code}: ${e.message}` : "Unknown transaction simulation error";
3
3
  }
4
4
  export {
5
- r as getMessageFromSimulationError
5
+ n as getMessageFromSimulationError
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@argent/x-shared",
3
- "version": "1.78.8",
3
+ "version": "1.78.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/argentlabs/x-shared.git"
@@ -56,33 +56,33 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@amplitude/analytics-types": "2.11.0",
59
- "@commitlint/cli": "20.1.0",
60
- "@commitlint/config-conventional": "20.0.0",
59
+ "@commitlint/cli": "20.2.0",
60
+ "@commitlint/config-conventional": "20.2.0",
61
61
  "@rollup/plugin-typescript": "12.3.0",
62
62
  "@semantic-release/git": "10.0.1",
63
63
  "@types/async-retry": "1.4.9",
64
64
  "@types/lodash-es": "4.17.12",
65
65
  "@types/numeral": "2.0.5",
66
66
  "@types/ua-parser-js": "0.7.39",
67
- "@typescript-eslint/eslint-plugin": "8.46.4",
68
- "@typescript-eslint/parser": "8.46.4",
69
- "esbuild": "0.27.0",
67
+ "@typescript-eslint/eslint-plugin": "8.49.0",
68
+ "@typescript-eslint/parser": "8.49.0",
69
+ "esbuild": "0.27.1",
70
70
  "esbuild-register": "3.6.0",
71
71
  "eslint": "8.57.1",
72
72
  "eslint-config-prettier": "10.1.8",
73
73
  "eslint-plugin-import": "2.32.0",
74
74
  "husky": "9.1.7",
75
- "lint-staged": "16.2.6",
76
- "msw": "2.12.2",
77
- "prettier": "3.6.2",
75
+ "lint-staged": "16.2.7",
76
+ "msw": "2.12.4",
77
+ "prettier": "3.7.4",
78
78
  "semantic-release": "25.0.2",
79
79
  "ts-node": "10.9.2",
80
- "ts-to-zod": "5.0.1",
81
- "tsx": "4.20.6",
80
+ "ts-to-zod": "5.1.0",
81
+ "tsx": "4.21.0",
82
82
  "typescript": "5.9.3",
83
- "vite": "7.2.2",
83
+ "vite": "7.2.7",
84
84
  "vite-plugin-dts": "4.5.4",
85
- "vitest": "4.0.10"
85
+ "vitest": "4.0.15"
86
86
  },
87
87
  "dependencies": {
88
88
  "@argent/x-multicall": "^7.1.0",
@@ -90,7 +90,7 @@
90
90
  "@langchain/google-genai": "^2.0.0",
91
91
  "@lokalise/node-api": "^15.0.0",
92
92
  "@noble/hashes": "^2.0.0",
93
- "@starknet-io/types-js": "0.9.2",
93
+ "@starknet-io/types-js": "0.10.0",
94
94
  "@types/fs-extra": "^11.0.4",
95
95
  "big-decimal-number": "npm:bignumber.js@^9.1.2",
96
96
  "dotenv": "^17.0.0",
@@ -111,7 +111,7 @@
111
111
  "lodash-es": "^4.17.21",
112
112
  "ua-parser-js": "^1.0.38 || ^2.0.0",
113
113
  "url-join": "^5.0.0",
114
- "zod": "4.1.12"
114
+ "zod": "4.1.13"
115
115
  },
116
116
  "lint-staged": {
117
117
  "*": "prettier --ignore-unknown --write",