@mapbox/cloudfriend
Advanced tools
Comparing version
@@ -6,7 +6,11 @@ #!/usr/bin/env node | ||
const cloudfriend = require('..'); | ||
const templatePath = process.argv[2]; | ||
const argv = require('minimist')(process.argv.slice(2), { | ||
default: { region: 'us-east-1' }, | ||
alias: { r: 'region' } | ||
}); | ||
const templatePath = argv._[0]; | ||
cloudfriend.build(templatePath) | ||
cloudfriend.build(templatePath, argv) | ||
.then((template) => { | ||
console.log(JSON.stringify(template, null, 4)); | ||
}); |
@@ -6,4 +6,8 @@ #!/usr/bin/env node | ||
const cloudfriend = require('..'); | ||
const templatePath = process.argv[2]; | ||
const region = process.argv[3] || 'us-east-1'; | ||
const argv = require('minimist')(process.argv.slice(2), { | ||
default: { region: 'us-east-1' }, | ||
alias: { r: 'region' } | ||
}); | ||
const templatePath = argv._[0]; | ||
const region = argv.region || 'us-east-1'; | ||
@@ -10,0 +14,0 @@ cloudfriend.validate(templatePath, region) |
@@ -0,1 +1,5 @@ | ||
## v2.2.0 | ||
- Pass options through to command line tools #22 | ||
## v2.1.0 | ||
@@ -2,0 +6,0 @@ |
@@ -20,5 +20,5 @@ 'use strict'; | ||
return build(templatePath).then((template) => { | ||
return build(templatePath, { region: region || 'us-east-1' }).then((template) => { | ||
return cfn.validateTemplate({ TemplateBody: JSON.stringify(template) }).promise(); | ||
}); | ||
}; |
{ | ||
"name": "@mapbox/cloudfriend", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "Helper functions for assembling CloudFormation templates in JavaScript", | ||
@@ -45,2 +45,3 @@ "main": "index.js", | ||
"aws-sdk": "^2.4.11", | ||
"minimist": "^1.2.0", | ||
"redent": "^2.0.0" | ||
@@ -47,0 +48,0 @@ }, |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
200139
0.51%53
1.92%4948
0.55%3
50%+ Added
+ Added