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

@packt/serverless-env-generator

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@packt/serverless-env-generator - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

13

index.js

@@ -30,4 +30,10 @@ #!/usr/bin/env node

.option('--env-variables [filename|string]', 'Set the serverless env file')
.option('--local, -l', 'Use .env file')
.parse(process.argv);
// Use local ENV
if (commander.local) {
require('dotenv').load();
}
// Name of the ENV storage file

@@ -69,5 +75,6 @@ const serverlessEnvFile = commander.serverlessEnvFile;

Object.keys(envVariables[STAGE]).map(key => {
if (process.env[key] || process.env[`${STAGE}-${key}`]) {
envVariables[STAGE][key] = process.env[`${STAGE}-${key}`]
? process.env[`${STAGE}-${key}`]
const stageKey = `${STAGE}_${key}`.toUpperCase();
if (process.env[key] || process.env[stageKey]) {
envVariables[STAGE][key] = process.env[stageKey]
? process.env[stageKey]
: process.env[key];

@@ -74,0 +81,0 @@ }

{
"name": "@packt/serverless-env-generator",
"version": "0.0.1",
"version": "0.0.2",
"description":

@@ -15,3 +15,12 @@ "Generate serverless.env.yml for dynamic ENV assignments within serverless.yml",

},
"author": "Packt Publishing Ltd <https://www.packtpub.com>",
"author": {
"name": "Packt Publishing Ltd",
"url": "https://packtpub.com/"
},
"contributors": [
{
"name": "Mike Elsmore",
"email": "mike@builtbyme.tech"
}
],
"license": "Apache-2.0",

@@ -22,2 +31,3 @@ "homepage":

"commander": "^2.15.1",
"dotenv": "^5.0.1",
"yamljs": "^0.3.0"

@@ -24,0 +34,0 @@ },

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