Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stendahls/docker-secrets-or-dotenv

Package Overview
Dependencies
Maintainers
5
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stendahls/docker-secrets-or-dotenv - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

index.js

@@ -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",

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