File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @mhlabs/cfn-diagram" ,
3
- "version" : " 1.1.8 " ,
3
+ "version" : " 1.1.9 " ,
4
4
"description" : " CLI tool to visualise CloudFormation templates as draw.io or HTML diagrams" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change 1
1
function createPseudoResources ( template , current ) {
2
- current = current || template ;
2
+ current = current || template . Resources ;
3
3
for ( var k in current ) {
4
4
if ( current [ k ] [ "Fn::Join" ] ) {
5
- current [ k ] = current [ k ] [ "Fn::Join" ] [ 1 ] . join ( current [ k ] [ "Fn::Join" ] [ 0 ] ) ;
5
+ const joinList = current [ k ] [ "Fn::Join" ] [ 1 ]
6
+ current [ k ] = ( Array . isArray ( joinList ) ? joinList : [ joinList ] ) . join ( current [ k ] [ "Fn::Join" ] [ 0 ] ) ;
6
7
}
7
8
if ( typeof current [ k ] === "object" && current [ k ] !== null ) {
8
9
createPseudoResources ( template , current [ k ] ) ;
You can’t perform that action at this time.
0 commit comments