Comparing version 1.0.7 to 1.0.9
@@ -130,3 +130,3 @@ const fs = require('fs'); | ||
if (opts.ignores !== false) { | ||
ignores.push(/\w\.\w+$/); // any extn | ||
ignores.push(/[/]([A-Za-z\s\d~$._-]+\.\w+){1,}$/); // any extn | ||
if (opts.dotfiles) ignores.push(/\/\.\w/); | ||
@@ -133,0 +133,0 @@ else ignores.push(/\/\.well-known/); |
{ | ||
"name": "sirv", | ||
"version": "1.0.7", | ||
"version": "1.0.9", | ||
"description": "The optimized & lightweight middleware for serving requests to static assets", | ||
@@ -27,3 +27,3 @@ "repository": "lukeed/sirv", | ||
}, | ||
"gitHead": "4eb463081fe399bb88f30ff84d8ba3aa5d48bc27" | ||
"gitHead": "25974174e9c5703138401c07e4036175cc7558f8" | ||
} |
@@ -6,3 +6,3 @@ declare module 'sirv' { | ||
type Arrayable<T> = T | T[]; | ||
export type NextHandler = VoidFunction | Promise<void>; | ||
export type NextHandler = () => void | Promise<void>; | ||
export type RequestHandler = (req: IncomingMessage, res: ServerResponse, next?: NextHandler) => void; | ||
@@ -9,0 +9,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21520