diff --git a/.cjs.swcrc b/.cjs.swcrc index 549a7ad..038490a 100644 --- a/.cjs.swcrc +++ b/.cjs.swcrc @@ -18,7 +18,7 @@ "inlineSourcesContent": true, "env": { "targets": { - "node": 16 + "node": 18 } } } diff --git a/.es.swcrc b/.es.swcrc index 7b88b46..0af8740 100644 --- a/.es.swcrc +++ b/.es.swcrc @@ -18,7 +18,7 @@ "inlineSourcesContent": true, "env": { "targets": { - "node": 16 + "node": 18 } } } diff --git a/bun.lockb b/bun.lockb index db2cbd5..aaffb97 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 8e976be..a7f76b7 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,9 @@ "dependencies": { "@sinclair/typebox": "^0.29.4", "fast-querystring": "^1.1.2", - "uWebSockets.js": "uNetworking/uWebSockets.js#v20.30.0" + "uWebSockets.js": "uNetworking/uWebSockets.js#v20.49.0" + }, + "engines": { + "node": ">= 18" } } diff --git a/src/index.ts b/src/index.ts index a27058f..34d6ad2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -66,7 +66,7 @@ export const node = const params: Record = {} for (const [name, index] of ids) - params[name] = req.getParameter(index) + params[name] = req.getParameter(index)! const request = new Request(`http://a.aa${path}`, { body: