@deliverart/sdk-js-error-handler 2.1.7 → 2.1.8

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
@@ -61,7 +61,7 @@ async function throwableToFormState(fn) {
61
61
  data
62
62
  };
63
63
  } catch (e) {
64
- if (e instanceof ApiError) {
64
+ if (e?.name === "ApiError") {
65
65
  return {
66
66
  success: false,
67
67
  error: e.data ?? {
package/dist/index.js CHANGED
@@ -36,7 +36,7 @@ async function throwableToFormState(fn) {
36
36
  data
37
37
  };
38
38
  } catch (e) {
39
- if (e instanceof ApiError) {
39
+ if (e?.name === "ApiError") {
40
40
  return {
41
41
  success: false,
42
42
  error: e.data ?? {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-error-handler",
3
3
  "description": "Error handling utilities for Deliverart SDK in JavaScript",
4
- "version": "2.1.7",
4
+ "version": "2.1.8",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "dist"
19
19
  ],
20
20
  "dependencies": {
21
- "@deliverart/sdk-js-core": "2.1.7"
21
+ "@deliverart/sdk-js-core": "2.1.8"
22
22
  },
23
23
  "publishConfig": {
24
24
  "access": "public"