fastify-accepts
Advanced tools
Comparing version 2.0.1 to 2.1.0
{ | ||
"name": "fastify-accepts", | ||
"version": "2.0.1", | ||
"version": "2.1.0", | ||
"description": "Add accept parser to fastify", | ||
@@ -8,11 +8,11 @@ "main": "index.js", | ||
"@types/accepts": "^1.3.5", | ||
"@types/node": "^14.0.1", | ||
"@types/node": "^16.0.0", | ||
"fastify": "^3.0.0-rc.4", | ||
"pre-commit": "^1.2.2", | ||
"request": "^2.88.0", | ||
"snazzy": "^8.0.0", | ||
"standard": "^14.0.2", | ||
"tap": "^14.10.7", | ||
"typescript": "^3.7.5", | ||
"tsd": "^0.11.0" | ||
"snazzy": "^9.0.0", | ||
"standard": "^16.0.0", | ||
"tap": "^15.0.2", | ||
"typescript": "^4.0.2", | ||
"tsd": "^0.17.0" | ||
}, | ||
@@ -24,9 +24,10 @@ "engines": { | ||
"accepts": "^1.3.5", | ||
"fastify-plugin": "^2.0.0" | ||
"fastify-plugin": "^3.0.0" | ||
}, | ||
"scripts": { | ||
"lint": "standard | snazzy", | ||
"unit": "tap --100 test.js", | ||
"test": "npm run lint && npm run unit && npm run typescript", | ||
"typescript": "tsd" | ||
"test:ci": "npm run lint && tap test.js --coverage-report=lcovonly && npm run typescript", | ||
"typescript": "tsd", | ||
"unit": "tap --100 test.js" | ||
}, | ||
@@ -33,0 +34,0 @@ "repository": { |
# fastify-accepts | ||
![CI workflow](https://github.com/fastify/fastify-accepts/workflows/CI%20workflow/badge.svg) | ||
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com) | ||
![CI](https://github.com/fastify/fastify-accepts/workflows/CI/badge.svg) | ||
[![NPM version](https://img.shields.io/npm/v/fastify-accepts.svg?style=flat)](https://www.npmjs.com/package/fastify-accepts) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-accepts/badge.svg)](https://snyk.io/test/github/fastify/fastify-accepts) | ||
[![Coverage Status](https://coveralls.io/repos/github/fastify/fastify-accepts/badge.svg?branch=master)](https://coveralls.io/github/fastify/fastify-accepts?branch=master) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) | ||
@@ -7,0 +9,0 @@ Add accepts parser to fastify |
@@ -98,3 +98,3 @@ 'use strict' | ||
t.tearDown(fastify.close.bind(fastify)) | ||
t.teardown(fastify.close.bind(fastify)) | ||
@@ -154,4 +154,4 @@ fastify.get('/request', function (req, reply) { | ||
for (const method of methodNames) { | ||
t.is(fastify.hasReplyDecorator('request' + method, false), false) | ||
t.equal(fastify.hasReplyDecorator('request' + method, false), false) | ||
} | ||
}) |
Sorry, the diff of this file is not supported yet
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
13708
11
59
+ Addedfastify-plugin@3.0.1(transitive)
- Removedfastify-plugin@2.3.4(transitive)
- Removedsemver@7.6.3(transitive)
Updatedfastify-plugin@^3.0.0