@ttoss/cloudformation 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- interface Parameter {
1
+ type Parameter = {
2
2
  AllowedValues?: string[];
3
3
  Default?: string | number;
4
4
  Description?: string;
5
5
  Type: string;
6
6
  NoEcho?: boolean;
7
- }
7
+ };
8
8
  type Parameters = {
9
9
  [key: string]: Parameter;
10
10
  };
11
- interface Resource {
11
+ type Resource = {
12
12
  Type: string;
13
13
  DeletionPolicy?: 'Delete' | 'Retain';
14
14
  Description?: string;
15
15
  DependsOn?: string[] | string;
16
16
  Condition?: string;
17
17
  Properties: any;
18
- }
19
- interface IAMRoleResource extends Resource {
18
+ };
19
+ type IAMRoleResource = Resource & {
20
20
  Type: 'AWS::IAM::Role';
21
21
  Properties: {
22
22
  AssumeRolePolicyDocument: {
@@ -45,7 +45,7 @@ interface IAMRoleResource extends Resource {
45
45
  };
46
46
  }[];
47
47
  };
48
- }
48
+ };
49
49
  type Resources = {
50
50
  [key: string]: IAMRoleResource | Resource;
51
51
  };
@@ -61,6 +61,7 @@ type Outputs = {
61
61
  };
62
62
  type CloudFormationTemplate = {
63
63
  AWSTemplateFormatVersion: '2010-09-09';
64
+ Metadata?: any;
64
65
  Description?: string;
65
66
  Transform?: 'AWS::Serverless-2016-10-31';
66
67
  Mappings?: any;
package/dist/index.js CHANGED
@@ -19,6 +19,10 @@ var __copyProps = (to, from, except, desc) => {
19
19
  return to;
20
20
  };
21
21
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
26
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
27
  mod
24
28
  ));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/cloudformation",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "CloudFormation utils.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -23,14 +23,14 @@
23
23
  "ts-node": "^10.9.1"
24
24
  },
25
25
  "devDependencies": {
26
- "@ttoss/config": "^1.28.0",
27
- "@ttoss/test-utils": "^1.20.2",
26
+ "@ttoss/config": "^1.28.1",
27
+ "@ttoss/test-utils": "^1.20.3",
28
28
  "@types/jest": "^29.4.0",
29
- "jest": "^29.4.1"
29
+ "jest": "^29.4.2"
30
30
  },
31
31
  "keywords": [],
32
32
  "publishConfig": {
33
33
  "access": "public"
34
34
  },
35
- "gitHead": "7852c1c6c570e30cd03a603902f45fb4849c7701"
35
+ "gitHead": "01f9bfea6d10cb472b5bf024e3bbacb6fd7cd25c"
36
36
  }
@@ -1,23 +1,23 @@
1
- export interface Parameter {
1
+ export type Parameter = {
2
2
  AllowedValues?: string[];
3
3
  Default?: string | number;
4
4
  Description?: string;
5
5
  Type: string;
6
6
  NoEcho?: boolean;
7
- }
7
+ };
8
8
 
9
9
  export type Parameters = { [key: string]: Parameter };
10
10
 
11
- export interface Resource {
11
+ export type Resource = {
12
12
  Type: string;
13
13
  DeletionPolicy?: 'Delete' | 'Retain';
14
14
  Description?: string;
15
15
  DependsOn?: string[] | string;
16
16
  Condition?: string;
17
17
  Properties: any;
18
- }
18
+ };
19
19
 
20
- export interface IAMRoleResource extends Resource {
20
+ export type IAMRoleResource = Resource & {
21
21
  Type: 'AWS::IAM::Role';
22
22
  Properties: {
23
23
  AssumeRolePolicyDocument: {
@@ -46,7 +46,7 @@ export interface IAMRoleResource extends Resource {
46
46
  };
47
47
  }[];
48
48
  };
49
- }
49
+ };
50
50
 
51
51
  export type Resources = { [key: string]: IAMRoleResource | Resource };
52
52
 
@@ -62,6 +62,7 @@ export type Outputs = { [key: string]: Output };
62
62
 
63
63
  export type CloudFormationTemplate = {
64
64
  AWSTemplateFormatVersion: '2010-09-09';
65
+ Metadata?: any;
65
66
  Description?: string;
66
67
  Transform?: 'AWS::Serverless-2016-10-31';
67
68
  Mappings?: any;