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

@fastify/etag

Package Overview
Dependencies
Maintainers
20
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fastify/etag - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

8

index.js

@@ -32,3 +32,3 @@ 'use strict'

module.exports = fp(async function etag (app, opts) {
async function fastifyEtag (app, opts) {
const hash = buildHashFn(opts.algorithm, opts.weak)

@@ -58,5 +58,9 @@

})
}, {
}
module.exports = fp(fastifyEtag, {
fastify: '4.x',
name: '@fastify/etag'
})
module.exports.default = fastifyEtag
module.exports.fastifyEtag = fastifyEtag
{
"name": "@fastify/etag",
"version": "4.1.0",
"version": "4.2.0",
"description": "Automatically generate etags for HTTP responses, for Fastify",

@@ -38,3 +38,3 @@ "main": "index.js",

"tap": "^16.0.0",
"tsd": "^0.22.0"
"tsd": "^0.24.1"
},

@@ -41,0 +41,0 @@ "dependencies": {

import { FastifyPluginAsync } from 'fastify'
export interface FastifyEtagOptions {
algorithm?: 'fnv1a' | string;
weak?: boolean;
type FastifyEtag = FastifyPluginAsync<fastifyEtag.FastifyEtagOptions>
declare namespace fastifyEtag {
export interface FastifyEtagOptions {
algorithm?: 'fnv1a' | string;
weak?: boolean;
}
export const fastifyEtag: FastifyEtag
export { fastifyEtag as default }
}
declare const fastifyEtag: FastifyPluginAsync<FastifyEtagOptions>
export default fastifyEtag;
declare function fastifyEtag(...params: Parameters<FastifyEtag>): ReturnType<FastifyEtag>
export = fastifyEtag
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