@bool-ts/core 1.6.4 → 1.6.6
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/hooks/factory.js +1 -0
- package/package.json +1 -1
- package/src/hooks/factory.ts +3 -1
package/dist/hooks/factory.js
CHANGED
|
@@ -415,6 +415,7 @@ export const BoolFactory = async (target, options) => {
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
catch (error) {
|
|
418
|
+
options.debug && console.error(error);
|
|
418
419
|
// Set default header(s)
|
|
419
420
|
context[responseHeadersArgsKey].set("X-Powered-By", "Bool Typescript");
|
|
420
421
|
return jsonErrorInfer(error, context[responseHeadersArgsKey]);
|
package/package.json
CHANGED
package/src/hooks/factory.ts
CHANGED
|
@@ -111,7 +111,7 @@ export const argumentsResolution = async (
|
|
|
111
111
|
});
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
-
return data;
|
|
114
|
+
return validation.data;
|
|
115
115
|
} catch (error) {
|
|
116
116
|
if (error instanceof HttpClientError) {
|
|
117
117
|
throw error;
|
|
@@ -633,6 +633,8 @@ export const BoolFactory = async (target: new (...args: any[]) => unknown, optio
|
|
|
633
633
|
}
|
|
634
634
|
);
|
|
635
635
|
} catch (error) {
|
|
636
|
+
options.debug && console.error(error);
|
|
637
|
+
|
|
636
638
|
// Set default header(s)
|
|
637
639
|
context[responseHeadersArgsKey].set("X-Powered-By", "Bool Typescript");
|
|
638
640
|
|