Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fastify-accepts

Package Overview
Dependencies
Maintainers
6
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-accepts - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

8

index.js

@@ -24,6 +24,6 @@ 'use strict'

function replyAcceptMethod () {
if (!this._req[acceptsObjectSymbol]) {
this._req[acceptsObjectSymbol] = accepts(this._req)
if (!this.request[acceptsObjectSymbol]) {
this.request[acceptsObjectSymbol] = accepts(this.request.req)
}
return this._req[acceptsObjectSymbol]
return this.request[acceptsObjectSymbol]
}

@@ -61,2 +61,2 @@

module.exports = fp(fastifyAcceptHeader, '>= 0.13.1')
module.exports = fp(fastifyAcceptHeader, '>= 0.35.0')
{
"name": "fastify-accepts",
"version": "0.2.1",
"version": "0.3.0",
"description": "Add accept parser to fastify",

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

"coveralls": "^2.13.1",
"fastify": "^0.28.0",
"fastify": "^0.35.0",
"pre-commit": "^1.2.2",

@@ -11,0 +11,0 @@ "request": "2.81.0",

Sorry, the diff of this file is not supported yet

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