@packt/serverless-env-generator
Advanced tools
Comparing version 0.0.2 to 0.1.0
@@ -18,2 +18,3 @@ #!/usr/bin/env node | ||
const Fs = require('fs'); | ||
const Path = require('path'); | ||
const YAML = require('yamljs'); | ||
@@ -52,4 +53,5 @@ | ||
} | ||
const availableEnvs = Fs.existsSync(commander.envVariables) | ||
? require(commander.envVariables) | ||
const filePath = Path.join(process.cwd(), commander.envVariables); | ||
const availableEnvs = Fs.existsSync(filePath) | ||
? require(filePath) | ||
: commander.envVariables.split(','); | ||
@@ -56,0 +58,0 @@ |
{ | ||
"name": "@packt/serverless-env-generator", | ||
"version": "0.0.2", | ||
"description": | ||
"Generate serverless.env.yml for dynamic ENV assignments within serverless.yml", | ||
"version": "0.1.0", | ||
"description": "Generate serverless.env.yml for dynamic ENV assignments within serverless.yml", | ||
"main": "index.js", | ||
@@ -12,4 +11,3 @@ "scripts": { | ||
"type": "git", | ||
"url": | ||
"git+ssh://git@bitbucket.org/packt-internal/serverless-env-generator.git" | ||
"url": "git+ssh://git@bitbucket.org/packt-internal/serverless-env-generator.git" | ||
}, | ||
@@ -27,8 +25,7 @@ "author": { | ||
"license": "Apache-2.0", | ||
"homepage": | ||
"https://bitbucket.org/packt-internal/serverless-env-generator#readme", | ||
"homepage": "https://bitbucket.org/packt-internal/serverless-env-generator#readme", | ||
"dependencies": { | ||
"commander": "^2.15.1", | ||
"dotenv": "^5.0.1", | ||
"yamljs": "^0.3.0" | ||
"commander": "2.16.0", | ||
"dotenv": "6.0.0", | ||
"yamljs": "0.3.0" | ||
}, | ||
@@ -35,0 +32,0 @@ "bin": { |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
14188
87
+ Addedcommander@2.16.0(transitive)
+ Addeddotenv@6.0.0(transitive)
- Removedcommander@2.20.3(transitive)
- Removeddotenv@5.0.1(transitive)
Updatedcommander@2.16.0
Updateddotenv@6.0.0
Updatedyamljs@0.3.0