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 1, 2021
1 parent 72292ff commit 65809fd
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
@@ -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
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 65809fd

Please sign in to comment.