@signal24/vue-foundation 4.8.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
|
|
1030
|
-
De(t) && t.status === 422 && typeof t.body == "object" && "error" in t.body && (t = new z(t.body.error))
|
|
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.
|
|
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": {
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@signal24/openapi-client-codegen": "^1.1.0",
|
|
37
38
|
"date-fns": "^2.30.0",
|
|
38
39
|
"lodash": "^4.17.21",
|
|
39
40
|
"type-fest": "^4.5.0",
|
|
@@ -43,7 +44,6 @@
|
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@nabla/vite-plugin-eslint": "^1.5.0",
|
|
45
46
|
"@rushstack/eslint-patch": "^1.5.1",
|
|
46
|
-
"@signal24/openapi-client-codegen": "^1.1.0",
|
|
47
47
|
"@tsconfig/node18": "^18.2.2",
|
|
48
48
|
"@types/jsdom": "^21.1.4",
|
|
49
49
|
"@types/lodash": "^4.14.200",
|
package/src/helpers/openapi.ts
CHANGED
|
@@ -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
|
}
|