@mapbox/cloudfriend
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -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 @@ }, |
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
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
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
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
200139
53
4948
3
+ Addedminimist@^1.2.0
+ Addedgopd@1.0.1(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)
- Removedgopd@1.1.0(transitive)
- Removedhas-proto@1.1.0(transitive)
- Removedwhich-typed-array@1.1.16(transitive)