fastify-accepts
Advanced tools
Comparing version 0.2.1 to 0.3.0
@@ -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
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
9476