Comparing version 0.3.4 to 0.3.5
@@ -7,2 +7,4 @@ 'use strict'; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; | ||
exports.default = function () { | ||
@@ -35,2 +37,6 @@ var _this = this; | ||
if (_typeof(_this._params[p]) === 'object') { | ||
throw new Error('Params must be a string or number!'); | ||
} | ||
_this._stack.Parameters[key] = { | ||
@@ -44,3 +50,3 @@ Type: 'String', | ||
} else { | ||
_this._stack.Parameters[key].UsePreviousValue = true; | ||
params.push({ ParameterKey: key, UsePreviousValue: true }); | ||
} | ||
@@ -47,0 +53,0 @@ }); |
@@ -16,3 +16,3 @@ 'use strict'; | ||
var Properties = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; | ||
var Extras = arguments[2]; | ||
var Extras = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; | ||
return _defineProperty({}, Name, _extends({ Type: Type, Properties: Properties }, Extras)); | ||
@@ -19,0 +19,0 @@ }; |
@@ -96,2 +96,6 @@ 'use strict'; | ||
if (typeof data === 'function') { | ||
data = data(this); | ||
} | ||
if (Array.isArray(data)) { | ||
@@ -111,3 +115,3 @@ return data.forEach(function (i) { | ||
var tags = _objectPath2.default.get(data[key], 'Properties.Tags'); | ||
if (tags) { | ||
if (tags && !Array.isArray(tags)) { | ||
data[key].Properties.Tags = Object.keys(tags).map(function (tag) { | ||
@@ -114,0 +118,0 @@ return { |
{ | ||
"name": "axe", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Create AWS infrastructure with Javascript", | ||
@@ -5,0 +5,0 @@ "author": "Jason Maurer", |
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
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
29008
634