Skip to content

Commit

Permalink
chore(sirv): bump @polka/url version
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeed committed May 24, 2021
1 parent ede9189 commit 7c5162a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/sirv/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fs from 'fs';
import { join, normalize, resolve } from 'path';
import { parse } from '@polka/url';
import list from 'totalist/sync';
import parser from '@polka/url';
import mime from 'mime/lite';

const noop = () => {};
Expand Down Expand Up @@ -160,7 +160,7 @@ export default function (dir, opts={}) {
if (brots && /(br|brotli)/i.test(val)) extns.unshift(...brots);
extns.push(...extensions); // [...br, ...gz, orig, ...exts]

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);
if (!data) return next ? next() : isNotFound(req, res);

Expand Down
2 changes: 1 addition & 1 deletion packages/sirv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"node": ">= 10"
},
"dependencies": {
"@polka/url": "^1.0.0-next.9",
"@polka/url": "^1.0.0-next.15",
"mime": "^2.3.1",
"totalist": "^1.0.0"
}
Expand Down

0 comments on commit 7c5162a

Please sign in to comment.