@ttoss/cloud-roles 0.5.9 → 0.5.10

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/esm/index.js CHANGED
@@ -6,7 +6,7 @@ var createRolesTemplate = ({
6
6
  path = IAM_PATH,
7
7
  resources
8
8
  }) => {
9
- Object.values(resources).forEach((resource) => {
9
+ Object.values(resources).forEach(resource => {
10
10
  if (!resource.Properties.Path) {
11
11
  resource.Properties.Path = path;
12
12
  }
@@ -15,9 +15,15 @@ var createRolesTemplate = ({
15
15
  const newKey = key + "Arn";
16
16
  acc[newKey] = {
17
17
  Description: `Arn of the ${key} role.`,
18
- Value: { "Fn::GetAtt": [key, "Arn"] },
18
+ Value: {
19
+ "Fn::GetAtt": [key, "Arn"]
20
+ },
19
21
  Export: {
20
- Name: { "Fn::Join": [":", [{ Ref: "AWS::StackName" }, newKey]] }
22
+ Name: {
23
+ "Fn::Join": [":", [{
24
+ Ref: "AWS::StackName"
25
+ }, newKey]]
26
+ }
21
27
  }
22
28
  };
23
29
  return acc;
@@ -29,7 +35,4 @@ var createRolesTemplate = ({
29
35
  Outputs: outputs
30
36
  };
31
37
  };
32
- export {
33
- IAM_PATH,
34
- createRolesTemplate
35
- };
38
+ export { IAM_PATH, createRolesTemplate };
package/dist/index.js CHANGED
@@ -1,22 +1,28 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
2
  "use strict";
3
+
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
8
  var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
9
+ for (var name in all) __defProp(target, name, {
10
+ get: all[name],
11
+ enumerable: true
12
+ });
10
13
  };
11
14
  var __copyProps = (to, from, except, desc) => {
12
15
  if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
17
+ get: () => from[key],
18
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
19
+ });
16
20
  }
17
21
  return to;
18
22
  };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
23
+ var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
24
+ value: true
25
+ }), mod);
20
26
 
21
27
  // src/index.ts
22
28
  var src_exports = {};
@@ -30,7 +36,7 @@ var createRolesTemplate = ({
30
36
  path = IAM_PATH,
31
37
  resources
32
38
  }) => {
33
- Object.values(resources).forEach((resource) => {
39
+ Object.values(resources).forEach(resource => {
34
40
  if (!resource.Properties.Path) {
35
41
  resource.Properties.Path = path;
36
42
  }
@@ -39,9 +45,15 @@ var createRolesTemplate = ({
39
45
  const newKey = key + "Arn";
40
46
  acc[newKey] = {
41
47
  Description: `Arn of the ${key} role.`,
42
- Value: { "Fn::GetAtt": [key, "Arn"] },
48
+ Value: {
49
+ "Fn::GetAtt": [key, "Arn"]
50
+ },
43
51
  Export: {
44
- Name: { "Fn::Join": [":", [{ Ref: "AWS::StackName" }, newKey]] }
52
+ Name: {
53
+ "Fn::Join": [":", [{
54
+ Ref: "AWS::StackName"
55
+ }, newKey]]
56
+ }
45
57
  }
46
58
  };
47
59
  return acc;
@@ -57,4 +69,4 @@ var createRolesTemplate = ({
57
69
  0 && (module.exports = {
58
70
  IAM_PATH,
59
71
  createRolesTemplate
60
- });
72
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/cloud-roles",
3
- "version": "0.5.9",
3
+ "version": "0.5.10",
4
4
  "description": "Create CloudFormation templates for roles with TypeScript.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -19,11 +19,11 @@
19
19
  },
20
20
  "typings": "dist/index.d.ts",
21
21
  "dependencies": {
22
- "@ttoss/cloudformation": "^0.6.4"
22
+ "@ttoss/cloudformation": "^0.6.5"
23
23
  },
24
24
  "devDependencies": {
25
- "@ttoss/config": "^1.29.1",
26
- "@ttoss/test-utils": "^1.20.8",
25
+ "@ttoss/config": "^1.29.2",
26
+ "@ttoss/test-utils": "^1.20.9",
27
27
  "@types/jest": "^29.5.0",
28
28
  "jest": "^29.5.0"
29
29
  },
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "ee0c2e51d38f37f997c020d4303cf90be720ecb0"
34
+ "gitHead": "0609bb0f6e6a1c0999c29e7a5c8f8ebb1c6d3d7a"
35
35
  }