terraform-generator
Advanced tools
Comparing version 6.0.0 to 6.1.0
@@ -130,5 +130,5 @@ "use strict"; | ||
_Block_arguments = new WeakMap(), _Block_innerBlocks = new WeakMap(), _Block_insideTerraformBlock = new WeakMap(), _Block_instances = new WeakSet(), _Block_validateIdentifier = function _Block_validateIdentifier(identifier) { | ||
if (!identifier.match(/^[a-zA-Z_\-]{1}[0-9a-zA-Z_\-]*$/)) { | ||
if (!identifier.match(utils_1.IDENTIFIER_REGEX)) { | ||
throw new Error(`Invalid identifier: ${identifier}`); | ||
} | ||
}; |
@@ -0,3 +1,4 @@ | ||
export * from './constants'; | ||
export * from './types'; | ||
export * from './TerraformElement'; | ||
export * from './Util'; |
@@ -17,4 +17,5 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./constants"), exports); | ||
__exportStar(require("./types"), exports); | ||
__exportStar(require("./TerraformElement"), exports); | ||
__exportStar(require("./Util"), exports); |
@@ -46,3 +46,3 @@ "use strict"; | ||
} | ||
if (key.indexOf(' ') > 0) { | ||
if (!key.match(_1.IDENTIFIER_REGEX)) { | ||
key = `"${key}"`; | ||
@@ -49,0 +49,0 @@ } |
{ | ||
"name": "terraform-generator", | ||
"version": "6.0.0", | ||
"version": "6.1.0", | ||
"author": "Chang Zhe Jiet", | ||
@@ -5,0 +5,0 @@ "description": "Generate Terraform configurations with Node.js.", |
@@ -60,3 +60,3 @@ # **terraform-generator** | ||
### **Blocks** | ||
Block's arguments are not typed, please refer to official Terraform documentation on what arguments can be supplied. | ||
Some block's arguments are not typed, please refer to official Terraform documentation on what arguments can be supplied. | ||
@@ -78,3 +78,3 @@ ```typescript | ||
const vpc = tfg.dataFromResource(vpcDS, null, ['cidr_block', ['tags', 'tag']]); | ||
const vpc = tfg.dataFromResource(vpcDS, undefined, ['cidr_block', ['tags', 'tag']]); | ||
``` | ||
@@ -139,3 +139,3 @@ | ||
block.attr('id') // block id, string | ||
block.id // convenience getter function, same as attr('id') | ||
block.id // convenience getter function, same as above | ||
block.attr('subnets') // subnet objects, object list | ||
@@ -142,0 +142,0 @@ block.attr('subnets.*.id') // subnet ids, string list |
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
77860
58
2116