diff --git a/packages/sirv/index.js b/packages/sirv/index.js index d074d58..fe01068 100644 --- a/packages/sirv/index.js +++ b/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 = () => {}; @@ -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; diff --git a/packages/sirv/package.json b/packages/sirv/package.json index f652031..6e6fc35 100644 --- a/packages/sirv/package.json +++ b/packages/sirv/package.json @@ -22,6 +22,6 @@ "dependencies": { "@polka/url": "^1.0.0-next.20", "mrmime": "^1.0.0", - "totalist": "^1.0.0" + "totalist": "^2.0.0" } } \ No newline at end of file