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

now-env

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

now-env - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

10

index.js

@@ -6,2 +6,10 @@ 'use strict'

const getValue = (env, secrets, key) => {
const value = `${env[key]}`
if (value.indexOf('@') !== 0) return value
const secret = secrets[env[key]]
if (secret !== undefined) return secret
return secrets[env[key].slice(1)]
}
const applyEnv = (env, secrets) => {

@@ -11,3 +19,3 @@ for (const key in env) {

if (!process.env[key]) {
const value = secrets[env[key]] || secrets[env[key].slice(1)] || env[key]
const value = getValue(env, secrets, key)
process.env[key] = value

@@ -14,0 +22,0 @@ }

2

package.json
{
"name": "now-env",
"version": "1.2.0",
"version": "1.2.1",
"description": "Use now.sh environment variables in development",

@@ -5,0 +5,0 @@ "keywords": [

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