Skip to content

Commit 7c5162a

Browse files
committed
chore(sirv): bump @polka/url version
1 parent ede9189 commit 7c5162a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/sirv/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from 'fs';
22
import { join, normalize, resolve } from 'path';
3+
import { parse } from '@polka/url';
34
import list from 'totalist/sync';
4-
import parser from '@polka/url';
55
import mime from 'mime/lite';
66

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

163-
let pathname = req.path || parser(req, true).pathname;
163+
let pathname = req.path || parse(req, true).pathname;
164164
let data = lookup(pathname, extns) || isSPA && !isMatch(pathname, ignores) && lookup(fallback, extns);
165165
if (!data) return next ? next() : isNotFound(req, res);
166166

packages/sirv/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"node": ">= 10"
2121
},
2222
"dependencies": {
23-
"@polka/url": "^1.0.0-next.9",
23+
"@polka/url": "^1.0.0-next.15",
2424
"mime": "^2.3.1",
2525
"totalist": "^1.0.0"
2626
}

0 commit comments

Comments
 (0)