@kumologica/sdk 3.6.0-beta9 → 3.6.0

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/README.md CHANGED
@@ -6,6 +6,10 @@ Kumologica SDK consist of 4 products:
6
6
  - Kumologica CLI
7
7
  - Kumologica nodes development kit
8
8
 
9
+ ## Dependencies
10
+ - [Node.js version 20+](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
11
+ - Npm version 10+
12
+
9
13
  ## Installation
10
14
 
11
15
  To install kumologica sdk, run the following command:
@@ -13,7 +17,8 @@ To install kumologica sdk, run the following command:
13
17
  ```bash
14
18
  npm install -g @kumologica/sdk
15
19
  ```
16
- Note that node.js is required to run installation and kumologica sdk. To install node.js go to [nodejs.org](https://nodejs.org)
20
+ Note: Kumologica sdk must be installed globally.
21
+
17
22
  ### Upgrade
18
23
  Use the same command to upgrade kumologica sdk to the latest version.
19
24
 
@@ -11,6 +11,13 @@ exports.builder = {
11
11
  alias: 'd',
12
12
  nargs: 1
13
13
  },
14
+ "target": {
15
+ describe: "\nThe target service for deployment, either: lambda or ecs-fargate are supported. lambda used if parameter not provided.",
16
+ type: 'string',
17
+ default: "lambda",
18
+ choices: ["lambda", "ecs-fargate"],
19
+ nargs: 1
20
+ },
14
21
  "flow-file-name": {
15
22
  describe: "\nThe name of kumologica flow file.\n Auto search if not provided.",
16
23
  type: 'string',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumologica/sdk",
3
- "version": "3.6.0-beta9",
3
+ "version": "3.6.0",
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>",
@@ -82,9 +82,9 @@
82
82
  "@aws-sdk/credential-providers": "^3.556.0",
83
83
  "@aws-sdk/lib-dynamodb": "^3.549.0",
84
84
  "@electron/remote": "^2.0.8",
85
- "@kumologica/builder": "3.6.0-beta9",
86
- "@kumologica/devkit": "3.6.0-beta9",
87
- "@kumologica/runtime": "3.6.0-beta9",
85
+ "@kumologica/builder": "3.6.0",
86
+ "@kumologica/devkit": "3.6.0",
87
+ "@kumologica/runtime": "3.6.0",
88
88
  "adm-zip": "0.4.13",
89
89
  "ajv": "8.10.0",
90
90
  "archive-type": "^4.0.0",
@@ -182,7 +182,7 @@
182
182
  "typescript": "^3.5.3"
183
183
  },
184
184
  "engines": {
185
- "node": ">=18"
185
+ "node": ">=20"
186
186
  },
187
187
  "kumologica": {
188
188
  "dev": false
@@ -0,0 +1,12 @@
1
+ // check-global-install.js
2
+ const isGlobal = process.env.npm_config_global; // Detect global install
3
+ const isNpx = process.env.npm_execpath && process.env.npm_execpath.includes("npx"); // Detect NPX execution
4
+
5
+ if (!isGlobal && !isNpx) {
6
+ console.error(
7
+ "\x1b[31m%s\x1b[0m",
8
+ "Error: This package must be installed globally. Use: ");
9
+ console.error(" npm install -g @kumologica/sdk");
10
+ process.exit(1); // Exit with a failure code
11
+ }
12
+
@@ -2,6 +2,6 @@
2
2
 
3
3
  const fs = require('fs');
4
4
 
5
- fs.readFile('./fixtures/welcome.txt', 'utf8', (err, content) => {
5
+ fs.readFile('../fixtures/welcome.txt', 'utf8', (err, content) => {
6
6
  console.log(content);
7
7
  });