@forklaunch/core 0.11.7 → 0.12.0
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/lib/http/index.d.mts +2 -2
- package/lib/http/index.d.ts +2 -2
- package/lib/http/index.js +1 -1
- package/lib/http/index.js.map +1 -1
- package/lib/http/index.mjs +1 -1
- package/lib/http/index.mjs.map +1 -1
- package/package.json +3 -3
package/lib/http/index.mjs
CHANGED
@@ -2955,7 +2955,7 @@ function parse2(req, res, next) {
|
|
2955
2955
|
}
|
2956
2956
|
const statusCode = Number(res.statusCode);
|
2957
2957
|
const parsedResponse = schemaValidator.parse(
|
2958
|
-
responses?.[statusCode],
|
2958
|
+
[400, 401, 404, 403, 500].includes(statusCode) ? schemaValidator.union([schemaValidator.string, responses?.[statusCode]]) : responses?.[statusCode],
|
2959
2959
|
res.bodyData
|
2960
2960
|
);
|
2961
2961
|
const parsedHeaders = schemaValidator.parse(
|