@fastify/static
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -334,4 +334,6 @@ 'use strict' | ||
const winSeparatorRegex = new RegExp(`\\${path.win32.sep}`, 'g') | ||
for (const rootPath of Array.isArray(sendOptions.root) ? sendOptions.root : [sendOptions.root]) { | ||
const files = await globPromise(path.join(rootPath, globPattern), { nodir: true }) | ||
const files = await globPromise(path.join(rootPath, globPattern).replace(winSeparatorRegex, path.posix.sep), { nodir: true }) | ||
const indexes = typeof opts.index === 'undefined' ? ['index.html'] : [].concat(opts.index) | ||
@@ -338,0 +340,0 @@ |
{ | ||
"name": "@fastify/static", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"description": "Plugin for serving static files as fast as possible.", | ||
@@ -35,3 +35,3 @@ "main": "index.js", | ||
"fastify-plugin": "^3.0.0", | ||
"glob": "^7.1.4", | ||
"glob": "^8.0.1", | ||
"p-limit": "^3.1.0", | ||
@@ -38,0 +38,0 @@ "readable-stream": "^3.4.0", |
@@ -5,3 +5,2 @@ # @fastify/static | ||
[![NPM version](https://img.shields.io/npm/v/@fastify/static.svg?style=flat)](https://www.npmjs.com/package/@fastify/static) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-static/badge.svg)](https://snyk.io/test/github/fastify/fastify-static) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) | ||
@@ -8,0 +7,0 @@ |
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
4509
355503
440
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedglob@8.1.0(transitive)
+ Addedminimatch@5.1.6(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedglob@7.2.3(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
Updatedglob@^8.0.1