@hono/node-server
Advanced tools
Comparing version 1.13.2 to 1.13.3
@@ -68,3 +68,9 @@ "use strict"; | ||
} | ||
const filename = options.path ?? decodeURIComponent(c.req.path); | ||
let filename; | ||
try { | ||
filename = options.path ?? decodeURIComponent(c.req.path); | ||
} catch { | ||
await options.onNotFound?.(c.req.path, c); | ||
return next(); | ||
} | ||
let path = (0, import_filepath.getFilePathWithoutDefaultDocument)({ | ||
@@ -71,0 +77,0 @@ filename: options.rewriteRequestPath ? options.rewriteRequestPath(filename) : filename, |
{ | ||
"name": "@hono/node-server", | ||
"version": "1.13.2", | ||
"version": "1.13.3", | ||
"description": "Node.js Adapter for Hono", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
166337
4987