fastify-floc-off
Advanced tools
Comparing version 2.0.6 to 2.1.0
{ | ||
"name": "fastify-floc-off", | ||
"version": "2.0.6", | ||
"version": "2.1.0", | ||
"description": "Fastify plugin to opt out of Google's FLoC advertising-surveillance network", | ||
@@ -16,2 +16,3 @@ "keywords": [ | ||
"main": "src/index.js", | ||
"types": "types/index.d.ts", | ||
"repository": "git+https://github.com/Fdawgs/fastify-floc-off.git", | ||
@@ -18,0 +19,0 @@ "homepage": "https://github.com/Fdawgs/fastify-floc-off", |
@@ -52,4 +52,8 @@ # fastify-floc-off | ||
## Acknowledgements | ||
- [**Uzlopak**](https://github.com/uzlopak) - TypeScript support | ||
## License | ||
`fastify-floc-off` is licensed under the [MIT](./LICENSE) license. |
@@ -9,4 +9,4 @@ const fp = require("fastify-plugin"); | ||
*/ | ||
async function plugin(server) { | ||
server.addHook("onRequest", async (req, res) => { | ||
async function fastifyFlocOff(server) { | ||
server.addHook("onRequest", async (_req, res) => { | ||
const header = res.getHeader("Permissions-Policy"); | ||
@@ -29,2 +29,7 @@ | ||
module.exports = fp(plugin, { fastify: "4.x", name: "fastify-floc-off" }); | ||
module.exports = fp(fastifyFlocOff, { | ||
fastify: "4.x", | ||
name: "fastify-floc-off", | ||
}); | ||
module.exports.default = fastifyFlocOff; | ||
module.exports.fastifyFlocOff = fastifyFlocOff; |
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
5539
5
39
59