You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

terraform-generator

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terraform-generator - npm Package Compare versions

Comparing version

to
6.1.0

dist/utils/constants.d.ts

2

dist/blocks/Block.js

@@ -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