@fastify/accepts-serializer
Advanced tools
Comparing version 5.0.0 to 5.1.0
{ | ||
"name": "@fastify/accepts-serializer", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Serializer according to the accept header", | ||
"main": "index.js", | ||
"types": "types/index.d.ts", | ||
"scripts": { | ||
"lint": "standard --verbose | snazzy", | ||
"lint:fix": "standard --fix", | ||
"test": "npm run lint && tap test/test.js", | ||
"test:ci": "npm run lint && tap test/test.js --coverage-report=lcovonly", | ||
"unit": "tap test/test.js" | ||
"test": "npm run test:unit && npm run test:typescript", | ||
"test:unit": "tap", | ||
"test:typescript": "tsd" | ||
}, | ||
"pre-commit": [ | ||
"lint", | ||
"test" | ||
], | ||
"repository": { | ||
@@ -27,6 +31,7 @@ "type": "git", | ||
"msgpack5": "^6.0.0", | ||
"protobufjs": "^6.10.2", | ||
"protobufjs": "^7.0.0", | ||
"snazzy": "^9.0.0", | ||
"standard": "^17.0.0", | ||
"tap": "^16.0.0", | ||
"tsd": "^0.22.0", | ||
"yamljs": "^0.3.0" | ||
@@ -36,3 +41,3 @@ }, | ||
"@fastify/accepts": "^4.0.0", | ||
"fastify-plugin": "^3.0.0" | ||
"fastify-plugin": "^4.0.0" | ||
}, | ||
@@ -39,0 +44,0 @@ "publishConfig": { |
@@ -5,13 +5,10 @@ # @fastify/accepts-serializer | ||
[![npm version](https://img.shields.io/npm/v/@fastify/accepts-serializer)](https://www.npmjs.com/package/@fastify/accepts-serializer) | ||
[![Known Vulnerabilities](https://snyk.io/test/github/fastify/fastify-accepts-serializer/badge.svg)](https://snyk.io/test/github/fastify/fastify-accepts-serializer) | ||
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://standardjs.com/) | ||
Serialize according to the `Accept` header. Supports Fastify versions `^3.0.0` | ||
Serialize according to the `Accept` header. Supports Fastify versions `^4.0.0` | ||
Please refer to [this branch](https://github.com/fastify/fastify-accepts-serializer/tree/v2.x) and related versions for Fastify ^2.0.0 compatibility. | ||
Please refer to [this branch](https://github.com/fastify/fastify-accepts-serializer/tree/1.x) and related versions for Fastify ^1.10.0 compatibility. | ||
## Install | ||
```sh | ||
npm i --save @fastify/accepts-serializer | ||
npm i @fastify/accepts-serializer | ||
``` | ||
@@ -63,3 +60,3 @@ | ||
For each route, a SerilizerManager is defined, which has both per-route and global serializer definitions. | ||
For each route, a SerializerManager is defined, which has both per-route and global serializer definitions. | ||
@@ -66,0 +63,0 @@ The MIME type `application/json` is always handled by `fastify` if no serializer is registered for that MIME type. |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
22325
14
581
0
9
64
- Removedfastify-plugin@3.0.1(transitive)
Updatedfastify-plugin@^4.0.0