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 1.0.5 to 1.0.6

32

CHANGELOG.md
# Changelog
### [1.0.6](https://github.com/Fdawgs/fastify-floc-off/compare/v1.0.5...v1.0.6) (2022-03-28)
### Documentation
* improve readability ([991f362](https://github.com/Fdawgs/fastify-floc-off/commit/991f3625a37691d46f3275419eee31dff958f685))
### Miscellaneous
* **scripts:** remove redundant gitkraken fix from prepare script ([83943d6](https://github.com/Fdawgs/fastify-floc-off/commit/83943d6f40a4dbdf1443776c2576573c5d6539df))
* **scripts:** use shorter arg aliases; remove debugging args from jest ([ac15f3b](https://github.com/Fdawgs/fastify-floc-off/commit/ac15f3bfe0151234aa3c209729e4b0e7b3451d00))
### Continuous Integration
* add job step names, workflow comments, and whitespace ([970f4db](https://github.com/Fdawgs/fastify-floc-off/commit/970f4db7202a8725c120ee8d0aeb9cd2338afff6))
* **codeql-analysis:** remove unused autobuild step ([3648199](https://github.com/Fdawgs/fastify-floc-off/commit/3648199bc37942745cdda65c11e006c3efb04a96))
* **codeql:** grant minimum permissions to run; rename file ([#98](https://github.com/Fdawgs/fastify-floc-off/issues/98)) ([6ba714f](https://github.com/Fdawgs/fastify-floc-off/commit/6ba714ffb09210672d1b2ed34a14a1dec8587c60))
* only save pr number artifact for dependabot ([a7525d9](https://github.com/Fdawgs/fastify-floc-off/commit/a7525d930571e4657ebcf5aea68cb13ce544a52d))
### Dependencies
* **deps-dev:** bump eslint-plugin-jsdoc from 37.9.7 to 38.0.6 ([e501410](https://github.com/Fdawgs/fastify-floc-off/commit/e501410b332d50b6b875bf5db6d9c1df7f6fb5bc))
* **deps:** bump actions/checkout from 2 to 3 ([6df37d1](https://github.com/Fdawgs/fastify-floc-off/commit/6df37d1ff2556e4c07f99523f12e5ca60573911a))
### Improvements
* **index:** use `header()` instead of `headers()` ([#101](https://github.com/Fdawgs/fastify-floc-off/issues/101)) ([35cc795](https://github.com/Fdawgs/fastify-floc-off/commit/35cc7957e02dcf735a378668832ea5476e23e773))
### [1.0.5](https://github.com/Fdawgs/fastify-floc-off/compare/v1.0.4...v1.0.5) (2022-02-25)

@@ -4,0 +36,0 @@

140

package.json
{
"name": "fastify-floc-off",
"version": "1.0.5",
"description": "Fastify plugin to opt out of Google's FLoC advertising-surveillance network",
"keywords": [
"block",
"fastify",
"floc",
"headers",
"plugin",
"opt out",
"opt-out",
"tracking"
],
"main": "src/index.js",
"repository": "git+https://github.com/Fdawgs/fastify-floc-off.git",
"homepage": "https://github.com/Fdawgs/fastify-floc-off",
"bugs": {
"url": "https://github.com/Fdawgs/fastify-floc-off/issues"
},
"license": "MIT",
"author": "Frazer Smith <frazer.dev@outlook.com>",
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"jest": "jest --detectOpenHandles --runInBand",
"jest:coverage": "jest --coverage --runInBand",
"lint": "eslint . --cache --ext js,jsx --ignore-path .gitignore",
"lint:licenses": "license-checker --direct --onlyAllow=\"0BSD;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;MIT;Unlicense\" --production --summary",
"lint:prettier": "prettier . --write --ignore-unknown",
"lint:prettier:ci": "prettier . --check --ignore-unknown",
"prepare": "",
"test": "npm run lint && npm run jest"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"jest": {
"clearMocks": true,
"coverageReporters": [
"text",
"lcovonly"
],
"resetMocks": true,
"testEnvironment": "node",
"testTimeout": 10000
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"eslint": "^8.9.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jsdoc": "^37.9.4",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-security-node": "^1.1.1",
"fastify": "^3.27.2",
"husky": "^7.0.4",
"jest": "^27.5.1",
"license-checker": "^25.0.1",
"prettier": "^2.5.1"
},
"dependencies": {
"fastify-plugin": "^3.0.0"
}
"name": "fastify-floc-off",
"version": "1.0.6",
"description": "Fastify plugin to opt out of Google's FLoC advertising-surveillance network",
"keywords": [
"block",
"fastify",
"floc",
"headers",
"plugin",
"opt out",
"opt-out",
"tracking"
],
"main": "src/index.js",
"repository": "git+https://github.com/Fdawgs/fastify-floc-off.git",
"homepage": "https://github.com/Fdawgs/fastify-floc-off",
"bugs": {
"url": "https://github.com/Fdawgs/fastify-floc-off/issues"
},
"license": "MIT",
"author": "Frazer Smith <frazer.dev@outlook.com>",
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"jest": "jest",
"jest:coverage": "jest --coverage",
"lint": "eslint . --cache --ext js,jsx --ignore-path .gitignore",
"lint:licenses": "license-checker --direct --onlyAllow=\"0BSD;Apache-2.0;BSD-2-Clause;BSD-3-Clause;ISC;MIT;Unlicense\" --production --summary",
"lint:prettier": "prettier . -w -u",
"lint:prettier:ci": "prettier . -c -u",
"prepare": "",
"test": "npm run lint && npm run jest"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"jest": {
"clearMocks": true,
"coverageReporters": [
"text",
"lcovonly"
],
"resetMocks": true,
"testEnvironment": "node",
"testTimeout": 10000
},
"devDependencies": {
"@commitlint/cli": "^16.2.1",
"@commitlint/config-conventional": "^16.2.1",
"eslint": "^8.9.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-jsdoc": "^38.0.6",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-security": "^1.4.0",
"eslint-plugin-security-node": "^1.1.1",
"fastify": "^3.27.2",
"husky": "^7.0.4",
"jest": "^27.5.1",
"license-checker": "^25.0.1",
"prettier": "^2.5.1"
},
"dependencies": {
"fastify-plugin": "^3.0.0"
}
}

@@ -60,3 +60,3 @@ # fastify-floc-off

See [CONTRIBUTING.md](./CONTRIBUTING.md) for details on how to get started.
See [the contributing guide](./CONTRIBUTING.md) for details on how to get started.
Please adhere to this project's [Code of Conduct](./CODE_OF_CONDUCT.md) when contributing.

@@ -63,0 +63,0 @@

@@ -9,6 +9,4 @@ const fp = require("fastify-plugin");

async function plugin(server) {
server.addHook("onRequest", async (req, reply) => {
reply.headers({
"Permissions-Policy": "interest-cohort=()",
});
server.addHook("onRequest", async (req, res) => {
res.header("Permissions-Policy", "interest-cohort=()");
});

@@ -15,0 +13,0 @@ }

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