arky-sdk 0.3.153 → 0.3.154

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
@@ -10,9 +10,10 @@ var PaymentMethodType = /* @__PURE__ */ ((PaymentMethodType2) => {
10
10
 
11
11
  // src/utils/errors.ts
12
12
  var convertServerErrorToRequestError = (serverError, renameRules) => {
13
+ const validationErrors = serverError?.validationErrors ?? [];
13
14
  return {
14
15
  ...serverError,
15
- validationErrors: serverError.validationErrors.map((validationError) => {
16
+ validationErrors: validationErrors.map((validationError) => {
16
17
  const field = validationError.field;
17
18
  return {
18
19
  field,
@@ -1919,7 +1920,7 @@ function nameToKey(name) {
1919
1920
  }
1920
1921
 
1921
1922
  // src/index.ts
1922
- var SDK_VERSION = "0.3.153";
1923
+ var SDK_VERSION = "0.3.154";
1923
1924
  var SUPPORTED_FRAMEWORKS = [
1924
1925
  "astro",
1925
1926
  "react",