fastify-static
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -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' | ||
}) |
{ | ||
"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 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
38846
979
113
0