@stendahls/docker-secrets-or-dotenv
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,5 +7,5 @@ const fs = require('fs'); | ||
if(process.env.NODE_ENV !== 'production'){ | ||
console.log(`Loading ${secretName} from ${path.join(__dirname, '..', '.env')}`); | ||
console.log(`Loading ${secretName} from ${path.join('.', '.env')}`); | ||
const iniData = fs.readFileSync(path.join(__dirname, '..', '.env'), 'utf8'); | ||
const iniData = fs.readFileSync(path.join('.', '.env'), 'utf8'); | ||
const vars = Object.fromEntries(iniData.split('\n').map(varValue => varValue.split('='))); | ||
@@ -12,0 +12,0 @@ |
{ | ||
"name": "@stendahls/docker-secrets-or-dotenv", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
1672