Socket
Socket
Sign inDemoInstall

@fastify/static

Package Overview
Dependencies
35
Maintainers
18
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.0 to 6.1.0

4

index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc