@signal24/vue-foundation 4.9.0 → 4.9.1

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.
@@ -1026,8 +1026,10 @@ function ti(e) {
1026
1026
  ln({
1027
1027
  ...e,
1028
1028
  onError(t, n) {
1029
- var i;
1030
- De(t) && t.status === 422 && typeof t.body == "object" && "error" in t.body && (t = new z(t.body.error)), (i = e.onError) == null || i.call(e, t, n);
1029
+ var s;
1030
+ De(t) && t.status === 422 && typeof t.body == "object" && "error" in t.body && (t = new z(t.body.error));
1031
+ const i = (s = e.onError) == null ? void 0 : s.call(e, t, n);
1032
+ return i !== void 0 ? i : t;
1031
1033
  }
1032
1034
  });
1033
1035
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@signal24/vue-foundation",
3
3
  "type": "module",
4
- "version": "4.9.0",
4
+ "version": "4.9.1",
5
5
  "description": "Common components, directives, and helpers for Vue 3 apps",
6
6
  "module": "./dist/vue-foundation.es.js",
7
7
  "exports": {
@@ -10,7 +10,12 @@ export function installApiClientInterceptors(clientOptions: Parameters<typeof in
10
10
  err = new UserError(err.body.error);
11
11
  }
12
12
 
13
- clientOptions.onError?.(err, options);
13
+ const onErrResult = clientOptions.onError?.(err, options);
14
+ if (onErrResult !== undefined) {
15
+ return onErrResult;
16
+ }
17
+
18
+ return err;
14
19
  }
15
20
  });
16
21
  }