Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.1.10 to 0.1.11

4

dist/src/arguments/Argument.d.ts
export default class Argument {
readonly argument: string;
constructor(argument: string);
readonly args: (string | Argument)[];
constructor(...args: (string | Argument)[]);
toTerraform(): string;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
class Argument {
constructor(argument) {
this.argument = argument;
constructor(...args) {
this.args = args;
}
toTerraform() {
return this.argument;
let str = '';
this.args.forEach(arg => {
if (arg instanceof Argument) {
str += arg.toTerraform();
}
else {
str += arg;
}
});
return str;
}
}
exports.default = Argument;
{
"name": "terraform-generator",
"version": "0.1.10",
"version": "0.1.11",
"author": "Ah Zhe",

@@ -5,0 +5,0 @@ "description": "Generate Terraform plan using Node.js.",

@@ -85,3 +85,7 @@ # **terraform-generator**

resourceAttribute: resource.getAttribute('attributeName'),
custom: new Argument('max(5, 12, 9)')
heredoc: new Heredoc(`line1
line2
line3`);
custom1: new Argument('max(5, 12, 9)'),
custom2: new Argument('sort("a", ', resource.getAttribute('attributeName'), ', "c")')
}

@@ -88,0 +92,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc