fastify-static
Advanced tools
Comparing version 0.7.0 to 0.8.0
{ | ||
"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", |
@@ -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
23549
14
541