@kumologica/sdk 4.0.0-beta5 → 4.0.0-beta6
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 +10 -2
- package/src/server/DesignerServer.js +0 -15
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kumologica/sdk",
|
|
3
|
-
"version": "4.0.0-
|
|
3
|
+
"version": "4.0.0-beta6",
|
|
4
4
|
"productName": "Kumologica Designer",
|
|
5
5
|
"copyright": "Copyright 2020 Kumologica Pty Ltd, All Rights Reserved.",
|
|
6
6
|
"author": "Kumologica Pty Ltd <contact@kumologica.com>",
|
|
@@ -84,9 +84,9 @@
|
|
|
84
84
|
"@aws-sdk/credential-providers": "^3.556.0",
|
|
85
85
|
"@aws-sdk/lib-dynamodb": "^3.549.0",
|
|
86
86
|
"@electron/remote": "^2.0.8",
|
|
87
|
-
"@kumologica/builder": "4.0.0-
|
|
88
|
-
"@kumologica/devkit": "4.0.0-
|
|
89
|
-
"@kumologica/runtime": "4.0.0-
|
|
87
|
+
"@kumologica/builder": "4.0.0-beta6",
|
|
88
|
+
"@kumologica/devkit": "4.0.0-beta6",
|
|
89
|
+
"@kumologica/runtime": "4.0.0-beta6",
|
|
90
90
|
"adm-zip": "0.4.13",
|
|
91
91
|
"ajv": "8.10.0",
|
|
92
92
|
"archive-type": "^4.0.0",
|
package/src/app/lib/aws/index.js
CHANGED
|
@@ -511,7 +511,10 @@ if (s.cwevents && s.cwevents.length > 0) {
|
|
|
511
511
|
settings.flowName
|
|
512
512
|
);
|
|
513
513
|
|
|
514
|
-
|
|
514
|
+
if (!params.environment.some(e => e.key === "KUMOLOGICA_LICENSE")) {
|
|
515
|
+
params.environment.push({ key: "KUMOLOGICA_LICENSE", value: process.env.KUMOLOGICA_LICENSE });
|
|
516
|
+
}
|
|
517
|
+
|
|
515
518
|
const args = this.mapParams(params);
|
|
516
519
|
args.region = this.region;
|
|
517
520
|
args["bucket-name"] = settings.deploymentBucketName;
|
|
@@ -519,7 +522,6 @@ if (s.cwevents && s.cwevents.length > 0) {
|
|
|
519
522
|
args["flow-file-name"] = projectInfo.projectFlowName;
|
|
520
523
|
args["zip-file-name"] = settings.zipFileName;
|
|
521
524
|
|
|
522
|
-
console.log(`args: ${JSON.stringify(args)}`);
|
|
523
525
|
const scriptFileName = exp("cloudformation", "aws", args);
|
|
524
526
|
|
|
525
527
|
this.log(`Cloudformation script has been created: ${scriptFileName}`);
|
|
@@ -562,6 +564,10 @@ if (s.cwevents && s.cwevents.length > 0) {
|
|
|
562
564
|
Body: body
|
|
563
565
|
});
|
|
564
566
|
|
|
567
|
+
if (!params.environment.some(e => e.key === "KUMOLOGICA_LICENSE")) {
|
|
568
|
+
params.environment.push({ key: "KUMOLOGICA_LICENSE", value: process.env.KUMOLOGICA_LICENSE });
|
|
569
|
+
}
|
|
570
|
+
|
|
565
571
|
const args = this.mapParams(params);
|
|
566
572
|
args.region = this.region;
|
|
567
573
|
args["bucket-name"] = settings.deploymentBucketName;
|
|
@@ -570,6 +576,8 @@ if (s.cwevents && s.cwevents.length > 0) {
|
|
|
570
576
|
args["zip-file-name"] = settings.zipFileName;
|
|
571
577
|
args.skipPrepare = "true"; // no need for cloudformation prepare
|
|
572
578
|
|
|
579
|
+
this.log(`args: ${JSON.stringify(args)}`);
|
|
580
|
+
|
|
573
581
|
const scriptFileName = exp("cloudformation", "aws", args);
|
|
574
582
|
|
|
575
583
|
const lambdaCfTemplate = this.loadJsonFile(scriptFileName);
|
|
@@ -51,19 +51,6 @@ class DesignerServer {
|
|
|
51
51
|
return licenseData;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
verifyLicense(licenseData) {
|
|
55
|
-
|
|
56
|
-
if (licenseData) {
|
|
57
|
-
const lData = tools.license.verify(licenseData);
|
|
58
|
-
if (lData) {
|
|
59
|
-
tools.license.display(lData);
|
|
60
|
-
}
|
|
61
|
-
return lData;
|
|
62
|
-
} else {
|
|
63
|
-
console.error("[ERROR] License data is not available. Please provide a valid license key.");
|
|
64
|
-
return null;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
54
|
|
|
68
55
|
async start() {
|
|
69
56
|
// Check if port passed by parameter is available otherwise allocate a new one
|
|
@@ -79,8 +66,6 @@ class DesignerServer {
|
|
|
79
66
|
process.exit(1);
|
|
80
67
|
}
|
|
81
68
|
|
|
82
|
-
this.verifyLicense(licenseKey);
|
|
83
|
-
|
|
84
69
|
process.env.KUMOLOGICA_LICENSE = licenseKey;
|
|
85
70
|
|
|
86
71
|
this.config.port = await this.allocatePort(this.config.port);
|