Socket
Socket
Sign inDemoInstall

fastify-static

Package Overview
Dependencies
19
Maintainers
6
Versions
55
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.0 to 0.8.0

example/public/index.css

5

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

@@ -10,2 +10,3 @@ "main": "index.js",

"test": "npm run lint && npm run unit",
"example": "node example/server.js",
"coverage": "tap --cov --coverage-report=html test",

@@ -34,3 +35,3 @@ "coveralls": "tap test/*test.js test/*/*.test.js --cov"

"coveralls": "^3.0.0",
"fastify": "^0.42.0",
"fastify": "^0.43.0",
"pre-commit": "^1.2.2",

@@ -37,0 +38,0 @@ "proxyquire": "^1.8.0",

2

test/static.test.js

@@ -274,3 +274,3 @@ 'use strict'

fastify.setErrorHandler(function errorHandler (err, reply) {
fastify.setErrorHandler(function errorHandler (err, request, reply) {
reply.type('text/plain').send(err.status + ' Custom error message')

@@ -277,0 +277,0 @@ })

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc