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

fastify-floc-off

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastify-floc-off - npm Package Compare versions

Comparing version 2.0.6 to 2.1.0

types/index.d.ts

3

package.json
{
"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;
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