@kumologica/sdk 3.2.0-beta24 → 3.2.0-beta25
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/package.json +4 -4
- package/src/app/lib/aws/index.js +12 -7
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"productName": "Kumologica Designer",
|
|
4
4
|
"copyright": "Copyright 2020 Kumologica Pty Ltd, All Rights Reserved.",
|
|
5
5
|
"author": "Kumologica Pty Ltd <contact@kumologica.com>",
|
|
6
|
-
"version": "3.2.0-
|
|
6
|
+
"version": "3.2.0-beta25",
|
|
7
7
|
"description": "Kumologica Designer, harnessing Serverless for your cloud integration needs",
|
|
8
8
|
"main": "src/app/main.js",
|
|
9
9
|
"files": [
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"license": "Proprietary",
|
|
65
65
|
"dependencies": {
|
|
66
66
|
"@electron/remote": "^2.0.8",
|
|
67
|
-
"@kumologica/builder": "3.2.0-
|
|
68
|
-
"@kumologica/devkit": "3.2.0-
|
|
69
|
-
"@kumologica/runtime": "3.2.0-
|
|
67
|
+
"@kumologica/builder": "3.2.0-beta25",
|
|
68
|
+
"@kumologica/devkit": "3.2.0-beta25",
|
|
69
|
+
"@kumologica/runtime": "3.2.0-beta25",
|
|
70
70
|
"adm-zip": "0.4.13",
|
|
71
71
|
"ajv": "8.10.0",
|
|
72
72
|
"archive-type": "^4.0.0",
|
package/src/app/lib/aws/index.js
CHANGED
|
@@ -213,7 +213,6 @@ class AWSDeployer {
|
|
|
213
213
|
|
|
214
214
|
const res = this.parseStackOutput(stackDetails);
|
|
215
215
|
|
|
216
|
-
this.log(JSON.stringify(stackDetails));
|
|
217
216
|
this.log(`${this.chalk('greenBright', 'Deployment successful.')}`);
|
|
218
217
|
this.log(
|
|
219
218
|
` ${this.chalk('#F5DEB3', 'StackId:')} ${this.chalk('whiteBright',
|
|
@@ -224,6 +223,8 @@ class AWSDeployer {
|
|
|
224
223
|
this.log(` ${this.chalk('#F5DEB3', 'LambdaArn:')} ${this.chalk('whiteBright',res.LambdaArn)}`, false);
|
|
225
224
|
this.log('', false);
|
|
226
225
|
|
|
226
|
+
this.printSignature(flowListeners, params, res);
|
|
227
|
+
|
|
227
228
|
// this call to be moved out to the terminals panel
|
|
228
229
|
/*if (this.cw == false) {
|
|
229
230
|
this.cwLogs.startCWLogs(settings.functionName, AWS.config.region);
|
|
@@ -234,11 +235,8 @@ class AWSDeployer {
|
|
|
234
235
|
this.log(`${this.chalk('redBright', 'Deployment failed.')}`);
|
|
235
236
|
this.log(` ${this.chalk('redBright', error)}`);
|
|
236
237
|
} finally {
|
|
237
|
-
//this.s3.deleteS3Bucket(deploymentBucketName);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
//response = await this.runTriggers(params, settings, lambdaArn);
|
|
241
|
-
this.printSignature(flowListeners, params);
|
|
242
240
|
}
|
|
243
241
|
|
|
244
242
|
parseStackOutput(stackDetails) {
|
|
@@ -249,16 +247,23 @@ this.printSignature(flowListeners, params);
|
|
|
249
247
|
return res;
|
|
250
248
|
}
|
|
251
249
|
|
|
252
|
-
printSignature(s, p) {
|
|
250
|
+
printSignature(s, p, output) {
|
|
253
251
|
this.log(' ')
|
|
254
252
|
|
|
255
253
|
if (s.api && s.api.length > 0) {
|
|
256
254
|
const _api = p.events.find(e => e.source === "api");
|
|
255
|
+
|
|
257
256
|
if (_api) {
|
|
258
257
|
this.log('API Gateway:');
|
|
259
258
|
|
|
260
|
-
|
|
261
|
-
let
|
|
259
|
+
let apiId = _api.api;
|
|
260
|
+
let stage = _api.stage;
|
|
261
|
+
|
|
262
|
+
if (_api.api === "create new") {
|
|
263
|
+
apiId = output.RestApiId || "unknown api gateway";
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
let url = `https://${apiId}.execute-api.${AWS.config.region}.amazonaws.com/${stage}`;
|
|
262
267
|
s.api.forEach(a => this.log(` ${(' ' + a.verb.toUpperCase()).slice(-6)} ${url}${a.url}`), this);
|
|
263
268
|
this.log('');
|
|
264
269
|
}
|