diff --git a/README.md b/README.md index d22e579..fcc01ce 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Fastify Secrets Gcp -![CI](https://github.com/nearform/fastify-secrets-gcp/workflows/CI/badge.svg) +[![ci](https://github.com/nearform/fastify-secrets-gcp/actions/workflows/ci.yml/badge.svg)](https://github.com/nearform/fastify-secrets-gcp/actions/workflows/ci.yml) Fastify secrets plugin for Google cloud platform secrets manager @@ -41,7 +41,6 @@ In any case you will need to grant the "Secret Manager Secret Accessor" role. ### Add plugin to your fastify instance ```js - const FastifySecrets = require('fastify-secrets-gcp') fastify.register(FastifySecrets, { @@ -49,17 +48,14 @@ fastify.register(FastifySecrets, { dbPassword: 'projects/PROJECT-ID/secrets/SECRET-ID/versions/latest' } }) - ``` ### Access you secrets ```js - await fastify.ready() console.log(fastify.secrets.dbPassword) // content of projects/PROJECT-ID/secrets/SECRET-ID/versions/latest - ``` ### Plugin options diff --git a/package.json b/package.json index 5ef5970..c4c5865 100644 --- a/package.json +++ b/package.json @@ -28,13 +28,13 @@ "node": ">= 12.13.0" }, "devDependencies": { - "eslint": "^7.11.0", + "eslint": "^8.17.0", "eslint-config-prettier": "^8.0.0", - "eslint-config-standard": "^16.0.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-node": "^11.1.0", + "eslint-config-standard": "^17.0.0", + "eslint-plugin-import": "^2.26.0", + "eslint-plugin-n": "^15.2.3", "eslint-plugin-prettier": "^4.0.0", - "eslint-plugin-promise": "^5.1.0", + "eslint-plugin-promise": "^6.0.0", "eslint-plugin-standard": "^5.0.0", "fastify": "^4.0.3", "husky": "^8.0.1", @@ -53,8 +53,7 @@ }, "husky": { "hooks": { - "pre-commit": "npm run lint:staged", - "pre-push": "npm run lint && npm run test" + "pre-commit": "npm run lint:staged" } }, "dependencies": {