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

fastify-helmet

Package Overview
Dependencies
Maintainers
13
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-helmet - npm Package Compare versions

Comparing version 5.3.1 to 5.3.2

4

index.d.ts

@@ -15,4 +15,6 @@ import { FastifyPluginCallback } from "fastify";

export const fastifyHelmet: FastifyPluginCallback<NonNullable<FastifyHelmetOptions>>;
export const fastifyHelmet: FastifyPluginCallback<NonNullable<FastifyHelmetOptions>> & {
contentSecurityPolicy: typeof helmet.contentSecurityPolicy;
};
export default fastifyHelmet;
import fastify from "fastify";
import { expectType } from "tsd";
import helmet from "helmet";
import fastifyHelmet from ".";

@@ -75,2 +76,5 @@

}>(reply.cspNonce)
})
})
const csp = fastifyHelmet.contentSecurityPolicy;
expectType<typeof helmet.contentSecurityPolicy>(csp);
{
"name": "fastify-helmet",
"version": "5.3.1",
"version": "5.3.2",
"description": "Important security headers for Fastify",

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

"devDependencies": {
"@types/node": "^14.0.26",
"@types/node": "^15.0.0",
"fastify": "^3.0.0",

@@ -40,4 +40,4 @@ "pre-commit": "^1.2.2",

"standard": "^16.0.2",
"tap": "^14.10.8",
"tsd": "^0.14.0",
"tap": "^15.0.0",
"tsd": "^0.17.0",
"typescript": "^4.0.2"

@@ -44,0 +44,0 @@ },

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