serverless-pseudo-parameters
Advanced tools
Comparing version 1.4.2 to 1.5.0
@@ -15,3 +15,3 @@ 'use strict'; | ||
const resources = this.serverless.service.provider.compiledCloudFormationTemplate.Resources; | ||
const template = this.serverless.service.provider.compiledCloudFormationTemplate; | ||
const skipRegionReplace = this.skipRegionReplace; | ||
@@ -26,10 +26,9 @@ const consoleLog = this.serverless.cli.consoleLog; | ||
// loop through all resources, and check all (string) properties for any #{AWS::} | ||
// loop through the entire template, and check all (string) properties for any #{AWS::} | ||
// reference. If found, replace the value with an Fn::Sub reference | ||
Object.keys(resources).forEach(identifier => { | ||
if ("Properties" in resources[identifier]) { | ||
replaceChildNodes(resources[identifier].Properties, identifier) | ||
} | ||
Object.keys(template).forEach(identifier => { | ||
replaceChildNodes(template[identifier], identifier) | ||
}); | ||
function isDict(v) { | ||
@@ -36,0 +35,0 @@ return typeof v === 'object' && v !== null && !(v instanceof Array) && !(v instanceof Date); |
{ | ||
"name": "serverless-pseudo-parameters", | ||
"version": "1.4.2", | ||
"devDependencies": {}, | ||
"version": "1.5.0", | ||
"devDependencies": { | ||
"jest": "^22.4.2" | ||
}, | ||
"license": "MIT", | ||
@@ -10,4 +12,8 @@ "repository": { | ||
}, | ||
"scripts": { | ||
"test": "jest", | ||
"test:watch": "jest --watch" | ||
}, | ||
"main": "lib/index.js", | ||
"dependencies": {} | ||
} |
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
12413
6
214
1