Socket
Socket
Sign inDemoInstall

fastify-static

Package Overview
Dependencies
Maintainers
7
Versions
55
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 1.0.0 to 2.0.0

5

index.js

@@ -80,2 +80,5 @@ 'use strict'

if (err) {
if (err.code === 'ENOENT') {
return reply.callNotFound()
}
reply.send(err)

@@ -135,4 +138,4 @@ }

module.exports = fp(fastifyStatic, {
fastify: '^1.11.0',
fastify: '>=2.0.0',
name: 'fastify-static'
})

4

package.json
{
"name": "fastify-static",
"version": "1.0.0",
"version": "2.0.0",
"description": "Plugin for serving static files as fast as possible.",

@@ -35,3 +35,3 @@ "main": "index.js",

"coveralls": "^3.0.2",
"fastify": "^1.11.0",
"fastify": "2.0.0-rc.1",
"fastify-compress": "^0.7.0",

@@ -38,0 +38,0 @@ "pre-commit": "^1.2.2",

# fastify-static
[![Build Status](https://travis-ci.org/fastify/fastify-static.svg?branch=master)](https://travis-ci.org/fastify/fastify-static) [![Greenkeeper badge](https://badges.greenkeeper.io/fastify/fastify-static.svg)](https://greenkeeper.io/) [![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-static/badge.svg)](https://snyk.io/test/github/fastify/fastify-static)
Plugin for serving static files as fast as possible. Supports Fastify versions `^1.11.0`.
Plugin for serving static files as fast as possible. Supports Fastify versions `>=2.0.0`.
Please refer to [this branch](https://github.com/fastify/fastify-static/tree/1.x) and related versions for Fastify `^1.11.0` compatibility.
## Install

@@ -7,0 +9,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