Comparing version 1.0.11 to 1.0.12
const fs = require('fs'); | ||
const { join, normalize, resolve } = require('path'); | ||
const { parse } = require('@polka/url'); | ||
const list = require('totalist/sync'); | ||
const parser = require('@polka/url'); | ||
const mime = require('mime/lite'); | ||
@@ -163,3 +163,3 @@ | ||
let pathname = req.path || parser(req, true).pathname; | ||
let pathname = req.path || parse(req, true).pathname; | ||
let data = lookup(pathname, extns) || isSPA && !isMatch(pathname, ignores) && lookup(fallback, extns); | ||
@@ -166,0 +166,0 @@ if (!data) return next ? next() : isNotFound(req, res); |
{ | ||
"name": "sirv", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "The optimized & lightweight middleware for serving requests to static assets", | ||
@@ -23,7 +23,7 @@ "repository": "lukeed/sirv", | ||
"dependencies": { | ||
"@polka/url": "^1.0.0-next.9", | ||
"@polka/url": "^1.0.0-next.15", | ||
"mime": "^2.3.1", | ||
"totalist": "^1.0.0" | ||
}, | ||
"gitHead": "da9845420ab483224ff186c3ac10684420ad7ff8" | ||
"gitHead": "0c832aac6e3eca4c242d0f7d07de2da1abd3d547" | ||
} |
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
21718
Updated@polka/url@^1.0.0-next.15