@rabstack/rab-api 1.11.0 → 1.11.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.
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +2 -2
package/index.cjs.js
CHANGED
|
@@ -552,7 +552,7 @@ const DEFAULT_STRATEGY = 'url-query';
|
|
|
552
552
|
// url-query: path + sorted query string
|
|
553
553
|
const query = req.query;
|
|
554
554
|
if (query && Object.keys(query).length > 0) {
|
|
555
|
-
const sortedQuery = Object.keys(query).sort().map((key)=>`${key}=${query[key]}`).join('&');
|
|
555
|
+
const sortedQuery = Object.keys(query).sort().map((key)=>`${encodeURIComponent(key)}=${encodeURIComponent(query[key])}`).join('&');
|
|
556
556
|
return `${path}?${sortedQuery}`;
|
|
557
557
|
}
|
|
558
558
|
return path;
|
package/index.esm.js
CHANGED
|
@@ -550,7 +550,7 @@ const DEFAULT_STRATEGY = 'url-query';
|
|
|
550
550
|
// url-query: path + sorted query string
|
|
551
551
|
const query = req.query;
|
|
552
552
|
if (query && Object.keys(query).length > 0) {
|
|
553
|
-
const sortedQuery = Object.keys(query).sort().map((key)=>`${key}=${query[key]}`).join('&');
|
|
553
|
+
const sortedQuery = Object.keys(query).sort().map((key)=>`${encodeURIComponent(key)}=${encodeURIComponent(query[key])}`).join('&');
|
|
554
554
|
return `${path}?${sortedQuery}`;
|
|
555
555
|
}
|
|
556
556
|
return path;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rabstack/rab-api",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.1",
|
|
4
4
|
"description": "A TypeScript REST API framework built on Express.js with decorator-based routing, dependency injection, and built-in validation",
|
|
5
5
|
"author": "Softin",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"express": "^5.1.0",
|
|
22
|
-
"typedi": "
|
|
22
|
+
"typedi": "0.10.0",
|
|
23
23
|
"jsonwebtoken": "^9.0.0",
|
|
24
24
|
"compose-middleware": "^5.0.0",
|
|
25
25
|
"reflect-metadata": "^0.2.2"
|