fastify-helmet
Advanced tools
Comparing version 5.3.1 to 5.3.2
@@ -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
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
21353
420