Skip to content

Commit

Permalink
chore: bump totalist version (#86)
Browse files Browse the repository at this point in the history
* chore: upgrade totalist

* bump

Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
  • Loading branch information
aleclarson and lukeed committed Dec 29, 2021
1 parent 4b8703b commit 0cf66d8
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 { totalist } from 'totalist/sync';
import { parse } from '@polka/url';
import list from 'totalist/sync';
import { lookup } from 'mrmime';

const noop = () => {};
Expand Down Expand Up @@ -146,7 +146,7 @@ export default function (dir, opts={}) {
else if (cc && opts.maxAge === 0) cc += ',must-revalidate';

if (!opts.dev) {
list(dir, (name, abs, stats) => {
totalist(dir, (name, abs, stats) => {
if (/\.well-known[\\+\/]/.test(name)) {} // keep
else if (!opts.dotfiles && /(^\.|[\\+|\/+]\.)/.test(name)) return;

Expand Down
2 changes: 1 addition & 1 deletion packages/sirv/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"dependencies": {
"@polka/url": "^1.0.0-next.20",
"mrmime": "^1.0.0",
"totalist": "^1.0.0"
"totalist": "^2.0.0"
}
}

0 comments on commit 0cf66d8

Please sign in to comment.