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

@mapbox/cloudfriend

Package Overview
Dependencies
Maintainers
14
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mapbox/cloudfriend - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

test/bin.test.js

8

bin/build-template.js

@@ -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 @@ },

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