From 0cf66d8f1c6df23c98177568728b12c30b0f9fd0 Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Wed, 1 Dec 2021 03:22:23 -0500 Subject: [PATCH] chore: bump `totalist` version (#86) * chore: upgrade totalist * bump Co-authored-by: Luke Edwards --- packages/sirv/index.js | 4 ++-- packages/sirv/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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