🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

unify-secrets

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unify-secrets - npm Package Compare versions

Comparing version

to
1.2.0

4

package.json
{
"name": "unify-secrets",
"version": "1.1.4",
"version": "1.2.0",
"description": "Manage configuration variable obtains from environment or docker secrets",

@@ -19,3 +19,3 @@ "main": "index.js",

"jest": "^26.0.1",
"jsdoc-to-markdown": "^6.0.1",
"jsdoc-to-markdown": "^7.0.1",
"mock-fs": "^4.12.0",

@@ -22,0 +22,0 @@ "prettier": "^2.0.5"

@@ -21,3 +21,3 @@ # unify-secrets

Docker secrets are made available a files mounted at `/run/secrets`, where are environment variable are found at `process.env`. If you use both a local environment with environment variables, and a docker environment with secrets in your development process, your code needs to handle two possible sources of config.
Docker secrets are made available as files mounted at `/run/secrets`, whereas environment variable are found at `process.env`. If you use both a local environment with environment variables, and a docker environment with secrets in your development process, your code needs to handle two possible sources of config.

@@ -24,0 +24,0 @@ ### Typical use

@@ -39,3 +39,3 @@ const mockFs = require('mock-fs')

expect(v).toBeNull()
expect(c.config.TEST_VAR_78).toBeUndefined()
expect(c.config.NOT_EXISTING).toBeUndefined()
})

@@ -56,3 +56,3 @@ })

expect(v).toBeNull()
expect(c.config.secret).toBeUndefined()
expect(c.config.nonsecret).toBeUndefined()
})

@@ -59,0 +59,0 @@ })