Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fastify/static

Package Overview
Dependencies
Maintainers
18
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/static - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc