Comparing version 1.0.15 to 1.0.16
@@ -163,4 +163,3 @@ const fs = require('fs'); | ||
// todo: fix me later (dangle in parser) | ||
let pathname = !!req._decoded && req._parsedUrl && req._parsedUrl.pathname || parse(req, true).pathname; | ||
let pathname = typeof req._decoded === 'string' ? req._decoded : parse(req, true).pathname; | ||
let data = lookup(pathname, extns) || isSPA && !isMatch(pathname, ignores) && lookup(fallback, extns); | ||
@@ -167,0 +166,0 @@ if (!data) return next ? next() : isNotFound(req, res); |
{ | ||
"name": "sirv", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "The optimized & lightweight middleware for serving requests to static assets", | ||
@@ -23,3 +23,3 @@ "repository": "lukeed/sirv", | ||
"dependencies": { | ||
"@polka/url": "^1.0.0-next.17", | ||
"@polka/url": "^1.0.0-next.19", | ||
"mime": "^2.3.1", | ||
@@ -26,0 +26,0 @@ "totalist": "^1.0.0" |
Sorry, the diff of this file is not supported yet
20614
314
Updated@polka/url@^1.0.0-next.19