This commit is contained in:
2026-01-16 18:53:55 +08:00
parent 730f4c6eb9
commit 999397611c
3 changed files with 19 additions and 5 deletions

View File

@@ -23,6 +23,7 @@
"license": "MIT", "license": "MIT",
"packageManager": "pnpm@10.28.0", "packageManager": "pnpm@10.28.0",
"devDependencies": { "devDependencies": {
"@kevisual/js-filter": "^0.0.4",
"@kevisual/local-proxy": "^0.0.8", "@kevisual/local-proxy": "^0.0.8",
"@kevisual/query": "^0.0.35", "@kevisual/query": "^0.0.35",
"@rollup/plugin-alias": "^6.0.0", "@rollup/plugin-alias": "^6.0.0",
@@ -36,8 +37,10 @@
"@types/xml2js": "^0.4.14", "@types/xml2js": "^0.4.14",
"eventemitter3": "^5.0.1", "eventemitter3": "^5.0.1",
"nanoid": "^5.1.6", "nanoid": "^5.1.6",
"path-to-regexp": "^8.3.0",
"rollup": "^4.55.1", "rollup": "^4.55.1",
"rollup-plugin-dts": "^6.3.0", "rollup-plugin-dts": "^6.3.0",
"send": "^1.2.1",
"ts-loader": "^9.5.4", "ts-loader": "^9.5.4",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"tslib": "^2.8.1", "tslib": "^2.8.1",
@@ -45,16 +48,15 @@
"typescript": "^5.9.3", "typescript": "^5.9.3",
"ws": "npm:@kevisual/ws", "ws": "npm:@kevisual/ws",
"xml2js": "^0.6.2", "xml2js": "^0.6.2",
"zod": "^4.3.5", "zod": "^4.3.5"
"@kevisual/js-filter": "^0.0.4",
"path-to-regexp": "^8.3.0",
"send": "^1.2.1"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/abearxiong/kevisual-router.git" "url": "git+https://github.com/abearxiong/kevisual-router.git"
}, },
"dependencies": {}, "dependencies": {
"hono": "^4.11.4"
},
"publishConfig": { "publishConfig": {
"access": "public" "access": "public"
}, },

10
pnpm-lock.yaml generated
View File

@@ -7,6 +7,10 @@ settings:
importers: importers:
.: .:
dependencies:
hono:
specifier: ^4.11.4
version: 4.11.4
devDependencies: devDependencies:
'@kevisual/js-filter': '@kevisual/js-filter':
specifier: ^0.0.4 specifier: ^0.0.4
@@ -788,6 +792,10 @@ packages:
resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==}
engines: {node: '>= 0.4'} engines: {node: '>= 0.4'}
hono@4.11.4:
resolution: {integrity: sha512-U7tt8JsyrxSRKspfhtLET79pU8K+tInj5QZXs1jSugO1Vq5dFj3kmZsRldo29mTBfcjDRVRXrEZ6LS63Cog9ZA==}
engines: {node: '>=16.9.0'}
http-errors@2.0.1: http-errors@2.0.1:
resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==} resolution: {integrity: sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==}
engines: {node: '>= 0.8'} engines: {node: '>= 0.8'}
@@ -1640,6 +1648,8 @@ snapshots:
dependencies: dependencies:
function-bind: 1.1.2 function-bind: 1.1.2
hono@4.11.4: {}
http-errors@2.0.1: http-errors@2.0.1:
dependencies: dependencies:
depd: 2.0.0 depd: 2.0.0

View File

@@ -2,6 +2,8 @@ import { pathToRegexp, Key } from 'path-to-regexp';
import type { IncomingMessage, ServerResponse, Server } from 'node:http'; import type { IncomingMessage, ServerResponse, Server } from 'node:http';
import { parseBody, parseSearch, parseSearchValue } from './server/parse-body.ts'; import { parseBody, parseSearch, parseSearchValue } from './server/parse-body.ts';
import { ListenOptions } from 'node:net'; import { ListenOptions } from 'node:net';
// import { Hono } from 'hono'
// const app = new Hono()
type Req = IncomingMessage & { params?: Record<string, string> }; type Req = IncomingMessage & { params?: Record<string, string> };
type SimpleObject = { type SimpleObject = {