@fastify/accepts-serializer
Advanced tools
Comparing version 5.2.0 to 5.3.0
@@ -23,8 +23,8 @@ 'use strict' | ||
if (reply.context.config.serializers) { | ||
if (request.routeOptions.config.serializers) { | ||
// keep route level cache in config to prevent messing with global cache | ||
reply.context.config.serializers.cache = Object.assign({}, reply.context.config.serializers.cache) | ||
request.routeOptions.config.serializers.cache = Object.assign({}, request.routeOptions.config.serializers.cache) | ||
reply.serializer.serializerManager = SerializerManager.expand({ | ||
serializers: reply.context.config.serializers, | ||
cache: reply.context.config.serializers.cache | ||
serializers: request.routeOptions.config.serializers, | ||
cache: request.routeOptions.config.serializers.cache | ||
}, globalSerializerManager) | ||
@@ -31,0 +31,0 @@ } else { |
{ | ||
"name": "@fastify/accepts-serializer", | ||
"version": "5.2.0", | ||
"version": "5.3.0", | ||
"description": "Serializer according to the accept header", | ||
"main": "index.js", | ||
"type": "commonjs", | ||
"types": "types/index.d.ts", | ||
@@ -35,3 +36,3 @@ "scripts": { | ||
"tap": "^16.0.0", | ||
"tsd": "^0.24.1", | ||
"tsd": "^0.30.0", | ||
"yamljs": "^0.3.0" | ||
@@ -38,0 +39,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
22924
0