fastify-floc-off
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "fastify-floc-off", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Fastify plugin to opt out of Google's FLoC advertising-surveillance network", | ||
@@ -52,16 +52,16 @@ "keywords": [ | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.0.3", | ||
"@commitlint/config-conventional": "^17.0.3", | ||
"eslint": "^8.21.0", | ||
"@commitlint/cli": "^17.1.2", | ||
"@commitlint/config-conventional": "^17.1.0", | ||
"eslint": "^8.24.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^8.5.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-jest": "^26.8.2", | ||
"eslint-plugin-jest": "^27.0.4", | ||
"eslint-plugin-jsdoc": "^39.3.6", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-promise": "^6.0.1", | ||
"eslint-plugin-security": "^1.5.0", | ||
"eslint-plugin-security-node": "^1.1.1", | ||
"fastify": "^4.4.0", | ||
"fastify": "^4.7.0", | ||
"husky": "^8.0.1", | ||
"jest": "^28.1.3", | ||
"jest": "^29.1.2", | ||
"license-checker": "^25.0.1", | ||
@@ -71,4 +71,4 @@ "prettier": "^2.7.1" | ||
"dependencies": { | ||
"fastify-plugin": "^4.1.0" | ||
"fastify-plugin": "^4.2.1" | ||
} | ||
} |
# fastify-floc-off | ||
[![GitHub Release](https://img.shields.io/github/release/Fdawgs/fastify-floc-off.svg)](https://github.com/Fdawgs/fastify-floc-off/releases/latest/) | ||
[![npm version](https://img.shields.io/npm/v/fastify-floc-off)](https://www.npmjs.com/package/fastify-floc-off) | ||
[![npm version](https://img.shields.io/npm/v/fastify-floc-off)](https://npmjs.com/package/fastify-floc-off) | ||
![Build Status](https://github.com/Fdawgs/fastify-floc-off/workflows/CI/badge.svg?branch=master) | ||
@@ -19,3 +19,3 @@ [![Coverage Status](https://coveralls.io/repos/github/Fdawgs/fastify-floc-off/badge.svg?branch=master)](https://coveralls.io/github/Fdawgs/fastify-floc-off?branch=master) | ||
You can read more about the issues surrounding Google's FLoC [on EFF](https://www.eff.org/deeplinks/2021/03/googles-floc-terrible-idea) and [Plausible Analytics](https://plausible.io/blog/google-floc). | ||
You can read more about the issues surrounding Google's FLoC [on EFF](https://eff.org/deeplinks/2021/03/googles-floc-terrible-idea) and [Plausible Analytics](https://plausible.io/blog/google-floc). | ||
@@ -26,3 +26,3 @@ [Helmet](https://github.com/helmetjs/helmet) (and in turn [fastify-helmet](https://github.com/fastify/fastify-helmet)) does not currently support `Permissions-Policy` response header setting yet, so this plugin was created out of a need for an easy way to disable/opt-out of Google's FLoC network for systems at [Yeovil District Hospital NHS Foundation Trust](https://yeovilhospital.co.uk/). This ensures both patients and staff accessing web applications at the hospital are not subject to Google's unsolicited tracking. | ||
Install using [`npm`](https://www.npmjs.com/package/fastify-floc-off): | ||
Install using `npm`: | ||
@@ -33,12 +33,4 @@ ```bash | ||
Or [`yarn`](https://yarnpkg.com/en/package/fastify-floc-off): | ||
```bash | ||
yarn add fastify-floc-off | ||
``` | ||
For Fastify v3.x support, use `fastify-floc-off@1.0.7`. | ||
fastify-floc-off's test scripts use npm commands. | ||
## Example Usage | ||
@@ -51,5 +43,7 @@ | ||
const server = Fastify(); | ||
await server.register(flocOff); | ||
server.register(flocOff); | ||
server.get("/", () => "ok"); | ||
server.get("/", (req, res) => { | ||
res.send("ok"); | ||
}); | ||
@@ -56,0 +50,0 @@ await server.listen({ port: 3000 }); |
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
5857
59
Updatedfastify-plugin@^4.2.1