@tahminator/sapling 2.0.2-beta.3bec30d8 → 2.0.2-beta.6ad58004
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/index.cjs +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -696,15 +696,16 @@ Split these into separate @MiddlewareClass classes, or merge the logic into a si
|
|
|
696
696
|
if (schemas.param) request.params = await _parseOrThrow(schemas.param, request.params, "reqparams");
|
|
697
697
|
if (schemas.query) {
|
|
698
698
|
console.log("schemas.query exists");
|
|
699
|
-
console.log("schemas.query exists as " +
|
|
699
|
+
console.log("schemas.query exists as " + JSON.stringify(schemas.query));
|
|
700
700
|
const parsedQuery = await _parseOrThrow(schemas.query, request.query, "reqquery");
|
|
701
|
-
console.log({ parsedQuery });
|
|
701
|
+
console.log({ parsedQuery: JSON.stringify(parsedQuery) });
|
|
702
702
|
if (request.query && typeof request.query === "object") {
|
|
703
703
|
Object.keys(request.query).forEach((key) => {
|
|
704
704
|
console.log(`request.query[${key}]`);
|
|
705
705
|
delete request.query[key];
|
|
706
706
|
});
|
|
707
707
|
Object.assign(request.query, parsedQuery);
|
|
708
|
+
console.log("request.query rewritten, now is", { query: JSON.stringify(request.query) });
|
|
708
709
|
} else console.log("request.query does not exist or is not object", { query: request.query });
|
|
709
710
|
}
|
|
710
711
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -672,15 +672,16 @@ Split these into separate @MiddlewareClass classes, or merge the logic into a si
|
|
|
672
672
|
if (schemas.param) request.params = await _parseOrThrow(schemas.param, request.params, "reqparams");
|
|
673
673
|
if (schemas.query) {
|
|
674
674
|
console.log("schemas.query exists");
|
|
675
|
-
console.log("schemas.query exists as " +
|
|
675
|
+
console.log("schemas.query exists as " + JSON.stringify(schemas.query));
|
|
676
676
|
const parsedQuery = await _parseOrThrow(schemas.query, request.query, "reqquery");
|
|
677
|
-
console.log({ parsedQuery });
|
|
677
|
+
console.log({ parsedQuery: JSON.stringify(parsedQuery) });
|
|
678
678
|
if (request.query && typeof request.query === "object") {
|
|
679
679
|
Object.keys(request.query).forEach((key) => {
|
|
680
680
|
console.log(`request.query[${key}]`);
|
|
681
681
|
delete request.query[key];
|
|
682
682
|
});
|
|
683
683
|
Object.assign(request.query, parsedQuery);
|
|
684
|
+
console.log("request.query rewritten, now is", { query: JSON.stringify(request.query) });
|
|
684
685
|
} else console.log("request.query does not exist or is not object", { query: request.query });
|
|
685
686
|
}
|
|
686
687
|
}
|