carlin 1.23.3 → 1.23.5

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.
@@ -8,7 +8,6 @@ const client_cloudformation_1 = require("@aws-sdk/client-cloudformation");
8
8
  const utils_1 = require("../utils");
9
9
  const addDefaults_cloudFormation_1 = require("./addDefaults.cloudFormation");
10
10
  const s3_1 = require("./s3");
11
- const stackName_1 = require("./stackName");
12
11
  const aws_sdk_1 = tslib_1.__importDefault(require("aws-sdk"));
13
12
  const npmlog_1 = tslib_1.__importDefault(require("npmlog"));
14
13
  const logPrefix = 'cloudformation';
@@ -116,9 +115,17 @@ const getStackOutput = async ({ stackName, outputKey, }) => {
116
115
  return output;
117
116
  };
118
117
  exports.getStackOutput = getStackOutput;
119
- const saveEnvironmentOutput = async ({ outputs, }) => {
120
- const stackName = await (0, stackName_1.getStackName)();
121
- const envFile = { stackName, outputs };
118
+ const saveEnvironmentOutput = async ({ outputs, stackName, }) => {
119
+ const envFile = { stackName };
120
+ envFile.outputs = outputs.reduce((acc, output) => {
121
+ if (!output.OutputKey || !output) {
122
+ return acc;
123
+ }
124
+ return {
125
+ ...acc,
126
+ [output.OutputKey]: output,
127
+ };
128
+ }, {});
122
129
  const dotCarlinFolderPath = path.join(process.cwd(), '.carlin');
123
130
  if (!fs.existsSync(dotCarlinFolderPath)) {
124
131
  await fs.promises.mkdir(dotCarlinFolderPath);
@@ -128,7 +135,7 @@ const saveEnvironmentOutput = async ({ outputs, }) => {
128
135
  };
129
136
  const printStackOutputsAfterDeploy = async ({ stackName, }) => {
130
137
  const { EnableTerminationProtection, StackName, Outputs = [], } = await (0, exports.describeStack)({ stackName });
131
- await saveEnvironmentOutput({ outputs: Outputs });
138
+ await saveEnvironmentOutput({ stackName, outputs: Outputs });
132
139
  npmlog_1.default.output('Describe Stack');
133
140
  npmlog_1.default.output('StackName', StackName);
134
141
  npmlog_1.default.output('EnableTerminationProtection', EnableTerminationProtection);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carlin",
3
- "version": "1.23.3",
3
+ "version": "1.23.5",
4
4
  "description": "",
5
5
  "license": "GPL-3.0",
6
6
  "author": "Pedro Arantes <arantespp@gmail.com> (https://twitter.com/arantespp)",
@@ -26,50 +26,50 @@
26
26
  "test": "jest"
27
27
  },
28
28
  "dependencies": {
29
- "@aws-sdk/client-cloudformation": "^3.226.0",
30
- "@octokit/webhooks": "^10.3.1",
29
+ "@aws-sdk/client-cloudformation": "^3.279.0",
30
+ "@octokit/webhooks": "^10.7.0",
31
31
  "@slack/webhook": "^6.1.0",
32
- "@ttoss/cloudformation": "^0.5.2",
33
- "adm-zip": "^0.5.9",
34
- "aws-sdk": "^2.1270.0",
32
+ "@ttoss/cloudformation": "^0.5.4",
33
+ "adm-zip": "^0.5.10",
34
+ "aws-sdk": "^2.1323.0",
35
35
  "builtin-modules": "^3.3.0",
36
36
  "change-case": "^4.1.2",
37
- "deep-equal": "^2.1.0",
37
+ "deep-equal": "^2.2.0",
38
38
  "deepmerge": "^4.3.0",
39
39
  "dotenv": "^16.0.3",
40
- "esbuild": "^0.16.2",
40
+ "esbuild": "^0.17.10",
41
41
  "findup-sync": "^5.0.0",
42
- "glob": "^8.0.3",
42
+ "glob": "^8.1.0",
43
43
  "js-yaml": "^4.1.0",
44
44
  "mime-types": "^2.1.35",
45
45
  "npmlog": "^7.0.1",
46
46
  "prettier": "^2.8.4",
47
47
  "semver": "^7.3.8",
48
- "simple-git": "^3.15.1",
48
+ "simple-git": "^3.16.1",
49
49
  "ts-node": "^10.9.1",
50
50
  "uglify-js": "^3.17.4",
51
- "yargs": "^17.6.2"
51
+ "yargs": "^17.7.1"
52
52
  },
53
53
  "devDependencies": {
54
- "@ttoss/test-utils": "^1.20.3",
54
+ "@ttoss/test-utils": "^1.20.4",
55
55
  "@types/adm-zip": "^0.5.0",
56
- "@types/aws-lambda": "^8.10.110",
56
+ "@types/aws-lambda": "^8.10.111",
57
57
  "@types/deep-equal": "^1.0.1",
58
58
  "@types/findup-sync": "^4.0.2",
59
- "@types/glob": "^8.0.0",
59
+ "@types/glob": "^8.1.0",
60
60
  "@types/jest": "^29.4.0",
61
61
  "@types/js-yaml": "^4.0.5",
62
62
  "@types/mime-types": "^2.1.1",
63
- "@types/node": "^18.11.11",
63
+ "@types/node": "^18.14.1",
64
64
  "@types/npmlog": "^4.1.4",
65
65
  "@types/semver": "^7.3.13",
66
66
  "@types/uglify-js": "^3.17.1",
67
- "@types/yargs": "^17.0.17",
68
- "jest": "^29.4.2"
67
+ "@types/yargs": "^17.0.22",
68
+ "jest": "^29.4.3"
69
69
  },
70
70
  "keywords": [],
71
71
  "publishConfig": {
72
72
  "access": "public"
73
73
  },
74
- "gitHead": "01f9bfea6d10cb472b5bf024e3bbacb6fd7cd25c"
74
+ "gitHead": "7ce61c5deab1deb32f9f2b573fe2ae6cebb778cd"
75
75
  }