awscdk-v1-stack-finder
Advanced tools
Comparing version 0.0.38 to 0.0.39
@@ -142,2 +142,3 @@ "use strict"; | ||
var body; | ||
var jsonErr; | ||
try { | ||
@@ -147,4 +148,12 @@ body = JSON.parse(getTemplateResponse.TemplateBody); | ||
catch (err) { | ||
body = YAML.parse(getTemplateResponse.TemplateBody); | ||
jsonErr = err; | ||
} | ||
if (!body) { | ||
try { | ||
body = YAML.parse(getTemplateResponse.TemplateBody); | ||
} | ||
catch (yamlErr) { | ||
console.error(`${region}: Failed to parse template for stack: ${stack.StackName}. \nJSON Parse Error: ${jsonErr} \nYAML Parse Error: ${yamlErr}`); | ||
} | ||
} | ||
if (body.Resources.CDKMetadata) { | ||
@@ -167,2 +176,2 @@ let stackUsedV1 = false; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSwyQ0FBNkI7QUFDN0IsNkNBQStCO0FBRy9CLDJDQUE2QjtBQUU3QixNQUFNLG1DQUFtQyxHQUFHO0lBQzFDLG9CQUFvQjtJQUNwQixlQUFlO0lBQ2YsaUJBQWlCO0lBQ2pCLHNCQUFzQjtJQUN0QixpQkFBaUI7SUFDakIsbUJBQW1CO0lBQ25CLG9CQUFvQjtJQUNwQixlQUFlO0lBQ2Ysb0JBQW9CO0lBQ3BCLHFDQUFxQztJQUNyQyxpQkFBaUI7SUFDakIsZUFBZTtJQUNmLDZCQUE2QjtJQUM3Qix3QkFBd0I7SUFDeEIsOENBQThDO0lBQzlDLDBCQUEwQjtJQUMxQixvQkFBb0I7SUFDcEIsb0JBQW9CO0lBQ3BCLGlCQUFpQjtJQUNqQiw2QkFBNkI7SUFDN0Isd0JBQXdCO0lBQ3hCL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9keS5SZXNvdXJjZXMuQ0RLTWV0YWRhdGEuUHJvcGVydGllcy5Nb2R1bGVzLmluY2x1ZGVzKCdAYXdzLWNkay9jb3JlJyk7XG4gICAgICB9XG5cbiAgICAgIGlmIChzdGFja1VzZWRWMSkge1xuICAgICAgICBzdGFja3MucHVzaChgbmFtZTogJHtzdGFjay5TdGFja05hbWV9IHwgaWQ6ICR7c3RhY2suU3RhY2tJZH1gKTtcbiAgICAgIH1cbiAgICB9XG4gIH1cbn1cbiJdfQ== |
@@ -51,3 +51,3 @@ { | ||
"license": "Apache-2.0", | ||
"version": "0.0.38", | ||
"version": "0.0.39", | ||
"jest": { | ||
@@ -54,0 +54,0 @@ "testMatch": [ |
44780
182