hono 3.12.3 → 3.12.4
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.
|
@@ -95,7 +95,6 @@ class Node {
|
|
|
95
95
|
}
|
|
96
96
|
search(method, path) {
|
|
97
97
|
const handlerSets = [];
|
|
98
|
-
const params = {};
|
|
99
98
|
this.params = {};
|
|
100
99
|
const curNode = this;
|
|
101
100
|
let curNodes = [curNode];
|
|
@@ -119,6 +118,7 @@ class Node {
|
|
|
119
118
|
}
|
|
120
119
|
}
|
|
121
120
|
for (let k = 0, len3 = node.patterns.length; k < len3; k++) {
|
|
121
|
+
const params = {};
|
|
122
122
|
const pattern = node.patterns[k];
|
|
123
123
|
if (pattern === "*") {
|
|
124
124
|
const astNode = node.children["*"];
|
|
@@ -161,7 +161,7 @@ class Node {
|
|
|
161
161
|
const results = handlerSets.sort((a, b) => {
|
|
162
162
|
return a.score - b.score;
|
|
163
163
|
});
|
|
164
|
-
return [results.map(({ handler, params
|
|
164
|
+
return [results.map(({ handler, params }) => [handler, params])];
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -73,7 +73,6 @@ var Node = class {
|
|
|
73
73
|
}
|
|
74
74
|
search(method, path) {
|
|
75
75
|
const handlerSets = [];
|
|
76
|
-
const params = {};
|
|
77
76
|
this.params = {};
|
|
78
77
|
const curNode = this;
|
|
79
78
|
let curNodes = [curNode];
|
|
@@ -97,6 +96,7 @@ var Node = class {
|
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
for (let k = 0, len3 = node.patterns.length; k < len3; k++) {
|
|
99
|
+
const params = {};
|
|
100
100
|
const pattern = node.patterns[k];
|
|
101
101
|
if (pattern === "*") {
|
|
102
102
|
const astNode = node.children["*"];
|
|
@@ -139,7 +139,7 @@ var Node = class {
|
|
|
139
139
|
const results = handlerSets.sort((a, b) => {
|
|
140
140
|
return a.score - b.score;
|
|
141
141
|
});
|
|
142
|
-
return [results.map(({ handler, params
|
|
142
|
+
return [results.map(({ handler, params }) => [handler, params])];
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
export {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hono",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.4",
|
|
4
4
|
"description": "Ultrafast web framework for the Edges",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"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 && yarn test:lambda-edge",
|
|
23
23
|
"lint": "eslint --ext js,ts src runtime_tests",
|
|
24
24
|
"lint:fix": "eslint --ext js,ts src runtime_tests --fix",
|
|
25
|
-
"format": "prettier --check
|
|
26
|
-
"format:fix": "prettier --write
|
|
27
|
-
"denoify": "rimraf deno_dist && denoify && rimraf
|
|
25
|
+
"format": "prettier --check \"src/**/*.{js,ts}\" \"runtime_tests/**/*.{js,ts}\"",
|
|
26
|
+
"format:fix": "prettier --write \"src/**/*.{js,ts}\" \"runtime_tests/**/*.{js,ts}\"",
|
|
27
|
+
"denoify": "rimraf deno_dist && denoify && rimraf \"deno_dist/**/*.test.{ts,tsx}\"",
|
|
28
28
|
"copy:package.cjs.json": "cp ./package.cjs.json ./dist/cjs/package.json && cp ./package.cjs.json ./dist/types/package.json ",
|
|
29
29
|
"build": "rimraf dist && tsx ./build.ts && yarn copy:package.cjs.json",
|
|
30
30
|
"postbuild": "publint",
|