@bool-ts/core 1.3.1 → 1.3.2
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/decorators/http.js
CHANGED
|
@@ -37,6 +37,7 @@ const defaultDecorator = (path, method) => (target, methodName, descriptor) => {
|
|
|
37
37
|
data: validation.error.issues
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
|
+
arguments[tmpZodMetadata.index] = validation.data;
|
|
40
41
|
}
|
|
41
42
|
catch (error) {
|
|
42
43
|
if (error instanceof http_1.HttpClientError) {
|
|
@@ -72,6 +73,7 @@ const defaultDecorator = (path, method) => (target, methodName, descriptor) => {
|
|
|
72
73
|
data: validation.error.issues
|
|
73
74
|
});
|
|
74
75
|
}
|
|
76
|
+
arguments[tmpZodMetadata.index] = validation.data;
|
|
75
77
|
}
|
|
76
78
|
catch (error) {
|
|
77
79
|
if (error instanceof http_1.HttpClientError) {
|
package/package.json
CHANGED
package/src/decorators/http.ts
CHANGED
|
@@ -58,6 +58,8 @@ const defaultDecorator = (
|
|
|
58
58
|
data: validation.error.issues
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
+
|
|
62
|
+
arguments[tmpZodMetadata.index] = validation.data;
|
|
61
63
|
}
|
|
62
64
|
catch (error) {
|
|
63
65
|
if (error instanceof HttpClientError) {
|
|
@@ -98,6 +100,8 @@ const defaultDecorator = (
|
|
|
98
100
|
data: validation.error.issues
|
|
99
101
|
});
|
|
100
102
|
}
|
|
103
|
+
|
|
104
|
+
arguments[tmpZodMetadata.index] = validation.data;
|
|
101
105
|
}
|
|
102
106
|
catch (error) {
|
|
103
107
|
if (error instanceof HttpClientError) {
|