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

@fastify/accepts-serializer

Package Overview
Dependencies
Maintainers
19
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/accepts-serializer - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

types/index.d.ts

19

package.json
{
"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

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