sirv
Advanced tools
Comparing version 1.0.19 to 2.0.0
const fs = require('fs'); | ||
const { join, normalize, resolve } = require('path'); | ||
const { totalist } = require('totalist/sync'); | ||
const { parse } = require('@polka/url'); | ||
const list = require('totalist/sync'); | ||
const { lookup } = require('mrmime'); | ||
@@ -149,3 +149,3 @@ | ||
if (!opts.dev) { | ||
list(dir, (name, abs, stats) => { | ||
totalist(dir, (name, abs, stats) => { | ||
if (/\.well-known[\\+\/]/.test(name)) {} // keep | ||
@@ -152,0 +152,0 @@ else if (!opts.dotfiles && /(^\.|[\\+|\/+]\.)/.test(name)) return; |
{ | ||
"name": "sirv", | ||
"version": "1.0.19", | ||
"version": "2.0.0", | ||
"description": "The optimized & lightweight middleware for serving requests to static assets", | ||
@@ -25,4 +25,4 @@ "repository": "lukeed/sirv", | ||
"mrmime": "^1.0.0", | ||
"totalist": "^1.0.0" | ||
"totalist": "^2.0.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
20691
+ Addedtotalist@2.0.0(transitive)
- Removedtotalist@1.1.0(transitive)
Updatedtotalist@^2.0.0