hono 3.1.2 → 3.1.3
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/cjs/utils/url.js +2 -2
- package/dist/utils/url.js +2 -2
- package/package.json +3 -3
package/dist/cjs/utils/url.js
CHANGED
|
@@ -142,7 +142,7 @@ const getQueryParam = (queryString, key) => {
|
|
|
142
142
|
const v = strings.substring(eqIndex + 1);
|
|
143
143
|
const k = strings.substring(0, eqIndex);
|
|
144
144
|
if (key === k) {
|
|
145
|
-
return /\%/.test(v) ?
|
|
145
|
+
return /\%/.test(v) ? decodeURIComponent(v) : v;
|
|
146
146
|
} else {
|
|
147
147
|
results[k] || (results[k] = v);
|
|
148
148
|
}
|
|
@@ -164,7 +164,7 @@ const getQueryParams = (queryString, key) => {
|
|
|
164
164
|
if (v === void 0)
|
|
165
165
|
v = "";
|
|
166
166
|
results[k] || (results[k] = []);
|
|
167
|
-
results[k].push(v.indexOf("%") !== -1 ?
|
|
167
|
+
results[k].push(v.indexOf("%") !== -1 ? decodeURIComponent(v) : v);
|
|
168
168
|
}
|
|
169
169
|
if (key)
|
|
170
170
|
return results[key] ? results[key] : null;
|
package/dist/utils/url.js
CHANGED
|
@@ -112,7 +112,7 @@ var getQueryParam = (queryString, key) => {
|
|
|
112
112
|
const v = strings.substring(eqIndex + 1);
|
|
113
113
|
const k = strings.substring(0, eqIndex);
|
|
114
114
|
if (key === k) {
|
|
115
|
-
return /\%/.test(v) ?
|
|
115
|
+
return /\%/.test(v) ? decodeURIComponent(v) : v;
|
|
116
116
|
} else {
|
|
117
117
|
results[k] || (results[k] = v);
|
|
118
118
|
}
|
|
@@ -134,7 +134,7 @@ var getQueryParams = (queryString, key) => {
|
|
|
134
134
|
if (v === void 0)
|
|
135
135
|
v = "";
|
|
136
136
|
results[k] || (results[k] = []);
|
|
137
|
-
results[k].push(v.indexOf("%") !== -1 ?
|
|
137
|
+
results[k].push(v.indexOf("%") !== -1 ? decodeURIComponent(v) : v);
|
|
138
138
|
}
|
|
139
139
|
if (key)
|
|
140
140
|
return results[key] ? results[key] : null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"description": "Ultrafast web framework for the Edge",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"test:fastly": "jest --config ./jest.fastly.config.js",
|
|
17
17
|
"test:lagon": "start-server-and-test \"lagon dev test_lagon/index.ts\" http://127.0.0.1:1234 \"yarn jest test_lagon/index.test.ts --testMatch '**/*.test.ts'\"",
|
|
18
18
|
"test:node": "env NAME=Node jest --config ./jest.node.config.js",
|
|
19
|
-
"test:wrangler": "jest --config ./jest.
|
|
20
|
-
"test:lambda": "env NAME=Node jest --config ./jest.
|
|
19
|
+
"test:wrangler": "jest --config ./jest.wrangler.config.js",
|
|
20
|
+
"test:lambda": "env NAME=Node jest --config ./jest.lambda.config.js",
|
|
21
21
|
"test:all": "yarn test && yarn test:deno && yarn test:bun && yarn test:fastly && yarn test:lagon && yarn test:node && yarn test:wrangler && yarn test:lambda",
|
|
22
22
|
"lint": "eslint --ext js,ts src .eslintrc.cjs",
|
|
23
23
|
"lint:fix": "eslint --ext js,ts src .eslintrc.cjs --fix",
|