terraform-generator
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -13,2 +13,3 @@ import { default as TerraformGenerator } from './src/TerraformGenerator'; | ||
export { default as Attribute } from './src/arguments/Attribute'; | ||
export { default as Heredoc } from './src/arguments/Heredoc'; | ||
export { default as Map } from './src/types/Map'; |
@@ -26,3 +26,5 @@ "use strict"; | ||
exports.Attribute = Attribute_1.default; | ||
var Heredoc_1 = require("./src/arguments/Heredoc"); | ||
exports.Heredoc = Heredoc_1.default; | ||
var Map_1 = require("./src/types/Map"); | ||
exports.Map = Map_1.default; |
@@ -17,3 +17,5 @@ "use strict"; | ||
this.arguments = args ? args : {}; | ||
tfGenerator.addBlock(this); | ||
if (tfGenerator) { | ||
tfGenerator.addBlock(this); | ||
} | ||
} | ||
@@ -115,3 +117,3 @@ getArguments() { | ||
else if (value instanceof __1.Argument) { | ||
if (this.tfGenerator.options.version === '0.11') { | ||
if (this.tfGenerator && this.tfGenerator.options.version === '0.11') { | ||
return `"\${${value.toTerraform()}}"`; | ||
@@ -118,0 +120,0 @@ } |
@@ -14,4 +14,4 @@ "use strict"; | ||
let str = ''; | ||
this.blocks.forEach(element => { | ||
str += element.toTerraform(); | ||
this.blocks.forEach(block => { | ||
str += block.toTerraform(); | ||
}); | ||
@@ -18,0 +18,0 @@ return str; |
{ | ||
"name": "terraform-generator", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"author": "Ah Zhe", | ||
@@ -22,4 +22,5 @@ "description": "Generate Terraform plan using Node.js.", | ||
"test": "jest", | ||
"build": "tsc", | ||
"prepublish": "tsc" | ||
"privateTest": "ts-node test.ts", | ||
"prepublishOnly": "del-cli --force dist && tsc", | ||
"postpublish": "del-cli --force dist" | ||
}, | ||
@@ -30,2 +31,3 @@ "devDependencies": { | ||
"@typescript-eslint/parser": "^1.7.0", | ||
"del-cli": "^3.0.0", | ||
"eslint": "^5.16.0", | ||
@@ -32,0 +34,0 @@ "eslint-plugin-import": "^2.17.2", |
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
21768
28
449
10