Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cf-kit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cf-kit - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

3

build/core/builder.d.ts

@@ -7,5 +7,6 @@ import { AWSTemplateFormatVersion } from "../types/AWSTemplateFormatVersion";

addResource: (name: string, resource: Record<string, any>) => void;
addParameter: (name: string, resource: Record<string, any>) => void;
addParameter: (name: string, parameter: Record<string, any>) => void;
addOutput: (name: string, output: Record<string, any>) => void;
build: () => CloudFormationBase;
}
export { Builder };

@@ -9,3 +9,4 @@ "use strict";

Parameters: {},
Resources: {}
Resources: {},
Outputs: {}
};

@@ -18,5 +19,8 @@ this.setTemplateFormatVersion = function (version) {

};
this.addParameter = function (name, resource) {
_this._cloudformation.Resources[name] = resource;
this.addParameter = function (name, parameter) {
_this._cloudformation.Resources[name] = parameter;
};
this.addOutput = function (name, output) {
_this._cloudformation.Outputs[name] = output;
};
this.build = function () { return _this._cloudformation; };

@@ -23,0 +27,0 @@ }

@@ -6,3 +6,4 @@ import { AWSTemplateFormatVersion } from "./AWSTemplateFormatVersion";

Resources?: Record<string, any>;
Outputs?: Record<string, any>;
};
export { CloudFormationBase };

@@ -7,3 +7,4 @@ import { AWSTemplateFormatVersion } from "../types/AWSTemplateFormatVersion";

Parameters: {},
Resources: {}
Resources: {},
Outputs: {}
} as CloudFormationBase;

@@ -19,6 +20,10 @@

addParameter = (name: string, resource: Record<string, any>) => {
this._cloudformation.Resources![name] = resource;
addParameter = (name: string, parameter: Record<string, any>) => {
this._cloudformation.Resources![name] = parameter;
}
addOutput = (name: string, output: Record<string, any>) => {
this._cloudformation.Outputs![name] = output;
}
build = () => this._cloudformation as CloudFormationBase

@@ -25,0 +30,0 @@ }

{
"name": "cf-kit",
"version": "0.0.1",
"version": "0.0.2",
"description": "cf-kit is a utility helper to build dynamic AWS cloudformation typescript templates",

@@ -5,0 +5,0 @@ "author": "Victória Rose",

@@ -6,5 +6,6 @@ import { AWSTemplateFormatVersion } from "./AWSTemplateFormatVersion"

Parameters?: Record<string, any>,
Resources?: Record<string, any>
Resources?: Record<string, any>,
Outputs?: Record<string, any>
}
export { CloudFormationBase }
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