Socket
Socket
Sign inDemoInstall

fastify

Package Overview
Dependencies
123
Maintainers
2
Versions
282
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.25.2 to 0.25.3

docs/Plugins-Guide.md

2

examples/hooks.js

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

fastify.listen(8000, function (err) {
fastify.listen(3000, function (err) {
if (err) {

@@ -41,0 +41,0 @@ throw err

@@ -21,3 +21,3 @@ const fastify = require('../fastify')()

fastify.listen(8000, function (err) {
fastify.listen(3000, function (err) {
if (err) {

@@ -24,0 +24,0 @@ throw err

@@ -62,2 +62,3 @@ /* eslint-disable no-useless-return */

this._req.log.error(payload)
this.res.setHeader('Content-Type', 'application/json')
setImmediate(

@@ -64,0 +65,0 @@ wrapReplyEnd,

{
"name": "fastify",
"version": "0.25.2",
"version": "0.25.3",
"description": "Fast and low overhead web framework, for Node.js",

@@ -12,3 +12,4 @@ "main": "fastify.js",

"coverage": "tap --cov --coverage-report=html test/*.test.js test/*/*.test.js",
"coveralls": "tap test/*test.js test/*/*.test.js --cov --coverage-report=text-lcov | coveralls"
"coveralls": "tap test/*test.js test/*/*.test.js --cov --coverage-report=text-lcov | coveralls",
"benchmark": "node ./examples/$npm_config_usingfile & pid=$! && autocannon -c 100 -d 5 -p 10 localhost:3000/ && kill -9 $pid"
},

@@ -43,2 +44,3 @@ "repository": {

"devDependencies": {
"autocannon": "^0.16.5",
"bluebird": "^3.5.0",

@@ -62,4 +64,4 @@ "boom": "^5.1.0",

"request": "^2.81.0",
"shot": "^3.4.2",
"snazzy": "^7.0.0",
"shot": "^3.4.2",
"split2": "^2.1.1",

@@ -66,0 +68,0 @@ "standard": "^10.0.2",

@@ -52,2 +52,3 @@ <div align="center">

* <a href="https://github.com/fastify/fastify/blob/master/docs/Testing.md"><code><b>Testing</b></code></a>
* <a href="https://github.com/fastify/fastify/blob/master/docs/Plugins-Guide.md"><code><b>Plugins Guide</b></code></a>

@@ -54,0 +55,0 @@ ## Ecosystem

@@ -30,2 +30,5 @@ /* eslint-disable no-useless-return */

}
res.setHeader = (key, value) => {
return
}
const handle = {

@@ -32,0 +35,0 @@ schema: {

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

test('Reply error handling - code: ' + code, t => {
t.plan(2)
t.plan(3)
const fastify = Fastify()

@@ -33,2 +33,3 @@ const err = new Error('winter is coming')

t.strictEqual(res.statusCode, Number(code))
t.equal(res.headers['content-type'], 'application/json')
t.deepEqual(

@@ -35,0 +36,0 @@ {

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