@kumologica/sdk 3.6.2 → 3.6.3-beta2

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/LICENSE ADDED
@@ -0,0 +1,170 @@
1
+ Kumologica END USER LICENSE AGREEMENT
2
+
3
+ THIS AGREEMENT made BETWEEN
4
+ Kumologica ("Licensor")
5
+ - and -
6
+ You ("Licensee")
7
+ (the "Parties")
8
+
9
+ 1. Definitions and interpretation
10
+
11
+ 1.1. Definitions
12
+ In this Agreement (including the recitals) unless the context otherwise requires:
13
+ Agreement means this agreement and its schedule;
14
+ Product means Kumologica Designer as detailed in Schedule 1;
15
+ Terms means the terms and conditions of this Agreement.
16
+
17
+ 1.2. Interpretation
18
+ In this Agreement unless the context otherwise requires:
19
+ (a) headings are for convenience only and do not affect its interpretation and
20
+ construction;
21
+ (b) the singular includes the plural and vice versa;
22
+ (c) words importing a gender include other genders;
23
+ (d) where any word or phrase is defined, any other part of speech or other grammatical form of that word or phrase has a cognate meaning;
24
+ (e) a reference to any statute, proclamation, rule, code, regulation or ordinance
25
+ includes any amendment, consolidation, modification, re-enactment or reprint of it or any statute, proclamation, rule, code, regulation or ordinance replacing it;
26
+ (f) "includes" is not a word of limitation;
27
+ (g) a reference to any thing is a reference to the whole and each part of it;
28
+ (h) a reference to a group of persons is a reference to all of them collectively and to
29
+ each of them individually; and
30
+ (i) a reference to a document includes all amendments or supplements to, or
31
+ replacements or novation of, that document.
32
+
33
+ 2. Acceptance
34
+
35
+ 2.1. This Agreement is between you and the Licensor, and governs the Products made available to you.
36
+
37
+ 2.2. Upon:
38
+ (a) selecting the 'Accept' option;
39
+ (b) upon downloading, installing or using the Product (whichever comes first),
40
+
41
+ you are granted a revocable, non-transferable, non-exclusive and limited licence
42
+ ("Licence") strictly in accordance with the Terms of this Agreement.
43
+
44
+ 2.3. If you do not agree to the Terms of this Agreement, you must not install, use, or copy the Product.
45
+
46
+ 3. License grant
47
+
48
+ 3.1. This Agreement entitles you to
49
+ (a) install and use the Product on a single computer; or
50
+ (b) install and make an archival copy of the Product on a storage medium other than a hard drive, and may only be used for the reinstallation of the Product.
51
+
52
+ 3.2. This Agreement does not permit the installation of the Product
53
+ (a) on a system that allows shared use of applications;
54
+ (b) on a multi-user network; or
55
+ (c) on any configuration or system of computers that allow multiple users
56
+
57
+ unless you have a license for each separate computer on which the product is installed and run.
58
+
59
+ 3.3 The Product may be provided with certain Open Source Software ("OSS") as listed here: https://www.kumologica.com/legal/oss-dependencies.html. Your Right to use such OSS shall be governed by the applicable OSS license agreement instead of the terms of this agreement.
60
+
61
+ 4. Limitations
62
+
63
+ 4.1. Limitations on transfer
64
+ You may not assign your rights and obligations under this Agreement, or redistribute, encumber, sell, rent, lease, sublicense, or otherwise transfer your rights to the Products.
65
+
66
+ 4.2. Limitations on use
67
+
68
+ You may not:
69
+ unless you hold multiple, validly, licensed copies.
70
+
71
+ You may not:
72
+ (a) share the Licence, or contents of the Product, with others;
73
+ (b) copy, install or use the Product on any system with more than one computer; or
74
+ (c) permit the use, copying or installation of the Product by more than one user or on more than one computer
75
+
76
+ unless you hold multiple, validly, licensed copies.
77
+
78
+ You may not:
79
+ (d) decompile, "reverse engineer", disassemble, or otherwise attempt to derive the source code for the Product;
80
+ (e) re-sell, grant any rights under this EULA to any third party or lease, time-share, lend or rent the Product.
81
+ (f) post the Product or part of the Product on any website; or
82
+
83
+ 4.3. Limitations on derived works
84
+ You may not modify the Product, create derivative works based upon the Product, or use the Product to develop any product having the same primary function as the Product.
85
+
86
+ 4.4. Limitations on alteration
87
+
88
+ You may not:
89
+
90
+ (a) modify the Product or create any derivative work of the Product or its accompanying documentation. Derivative works include but are not limited to translations; or
91
+ (b) alter any files or libraries in any portion of the Product.
92
+
93
+ 4.5. Limitations on copying
94
+ You may not copy any part of the product except to the extent that the licensed use inherently demands the creation of a temporary copy stored in the computer memory and not permanently affixed on storage medium.
95
+
96
+ 4.6 Age restriction
97
+ You may not use the Product if you are under 18 years of age.
98
+
99
+ 5. Ownership
100
+ Kumologica or its subsidiaries, affiliates, and suppliers retain all rights, title and interest, including all copyright and intellectual property rights, in and to the Product and all copies thereof.
101
+
102
+ 6. Warranties and exclusions
103
+
104
+ 6.1. Provisions of the Competition and Consumer Act 2010 and other laws in force from time to time in Australia may imply guarantees, warranties, conditions, and impose obligations on Kumologica and its subsidiaries, affiliates, and suppliers ("Implied Terms"). If these Implied Terms apply, Kumologica's liability will be limited at its option to resupply, repair or replacement of the Product or the cost of such resupply, repair or replacement, to the
105
+ extent permitted by law.
106
+
107
+ 6.2. Unless otherwise explicitly agreed to in writing by Kumologica, subject to the Implied Terms, all representations, guarantees, conditions and warranties of any nature are expressly excluded.
108
+
109
+ 6.3. Nothing in this clause excludes, restricts or modifies your rights under an Implied Term.
110
+
111
+ 6.4. No user support or maintenance is provided as part of this Agreement.
112
+
113
+ 6.5. Third Party Services.
114
+
115
+ There may be third party software and/or services made available to Licensee by Licensor or third parties on or in connection with the Product, Kumologica marketplace or otherwise in connection with Licensee's use of the Services ("Third Party Service(s)").
116
+
117
+ Licensor provides no warranty, does not necessarily support and has not necessarily confirmed the validity, functionality or screened the content of such Third Party Services and any use is at Licensee's own risk.
118
+
119
+ The terms that apply to any Content Licensee provides to the Third Party Service are solely between Licensee and the Third Party Service and Licensee's use of the Third Party Services is subject to the Third Party Service's policies.
120
+
121
+ Any Third Party Service Licensee receives is governed by the terms provided by such third party and Licensee agrees to abide by those terms and conditions. Licensor has no obligations and/or liability with respect to such third party or the Third Party Services.
122
+
123
+ If Licensee have agreed to receive the Third Party Services, Licensee authorize Licensor to grant the provider of such Third Party Services with access to Licensee Content and/or Licensee Account to the extent required to provide the Third Party Services or for interoperability with the Third Party Services.
124
+
125
+ Third Party Services may be removed from or no longer available through the Product at any time.
126
+
127
+ 7. Exclusion of damages
128
+
129
+ The Product is provided by the Licensor and accepted by Licensee "as is". Subject to any Implied Term, Kumologica, its directors, officers, employees, or agents will not be liable to you or any other party for indirect, consequential, special, incidental, punitive or exemplary damages of any kind (including loss of revenues or profits or loss of business) arising in connection with these Terms, the Product, any software for the Product or any support services for the Product, whether based on contract, tort, statute, or any other legal theory.
130
+
131
+ The Licensor makes no warranty expressed and implied regarding the fitness of the Product for a particular purpose or that the Product will be suitable or appropriate for the specific requirements of the Licensee.
132
+
133
+ The Licensor does not warrant that use of the Product will be secure, uninterrupted, comply with regulatory requirements or error-free. The Licensee accepts that software in general is prone to bugs and flaws within an acceptable level as determined in the industry.
134
+
135
+ Licensee is solely responsible for (and that Licensor has no responsibility to you or to any third party for) the Application or any Content that Licensee create, transmit or display while using the Product and for the consequences of actions by doing so.
136
+
137
+ 8. Limitation of liability and remedies
138
+
139
+ To the extent that the applicable jurisdiction limits Kumologica's ability to disclaim any implied warranties, this disclaimer shall be effective to the maximum extent permitted.
140
+
141
+ 9. Licensee indemnity
142
+
143
+ You will indemnify Kumologica, its directors, officers, employees, agents and contractors in full against any liability, loss, damages, costs and expenses as a result of or in connection with your use of the Product, including but not limited to, any modification by you of the Product which causes the Product to infringe the intellectual property rights of a third party.
144
+
145
+ 10. Variation of Terms
146
+
147
+ Kumologica reserves the right to amend these Terms from time to time without notice to you and you will be subject to the Terms in force at the time you purchase the Licence for the Product or download the Product whichever is applicable.
148
+
149
+ 11. Termination
150
+
151
+ Without prejudice to any other rights, Kumologica may terminate this Agreement immediately and without further notice if you fail to comply with the Terms of this Agreement. In such event, you must destroy all copies of the Product.
152
+
153
+ 12. General provisions
154
+
155
+ 12.1. Any provision of, or the application of any provision of this Agreement, which is prohibited in any jurisdiction is, in that jurisdiction, ineffective only to the extent of that prohibition.
156
+
157
+ 12.2. Any provision of, or the application of any provision of this Agreement which is void, illegal or unenforceable in any jurisdiction does not affect the validity, legality or enforceability of that provision in any other jurisdiction or of the remaining provisions in that or any other jurisdiction
158
+
159
+ 12.3. The failure, delay, relaxation or indulgence on the part of a part in exercising, in part or whole, any power, right or remedy conferred upon that party by these Terms shall not operate as a waiver of that power, right, or remedy.
160
+
161
+ 12.4. This Agreement contains the entire Agreement between the Parties and supersedes any previous understandings, commitments or agreements, oral or written.
162
+
163
+ 12.5. If a clause is void, illegal or unenforceable, it may be severed without affecting the enforceability of the other provisions in this Agreement.
164
+
165
+ 12.6. This Agreement shall be governed by and construed in accordance with the laws of the State of New South Wales, Australia.
166
+
167
+ SCHEDULE 1 PRODUCT
168
+ Name of Product: Kumologica Designer and all containing components such as Kumologica Runtime and Kumologica Nodes.
169
+
170
+ This document is an adaptation of the End User License Agreement provided by Lawpath (lawpath.com.au). The original work has been modified.
@@ -35,12 +35,24 @@ function displayTable(data) {
35
35
  }
36
36
 
37
37
  function startElectron(projectDir) {
38
+
39
+ console.log(`
40
+ Welcome to Kumologica SDK.
41
+
42
+ NOTICE: Using this module constitutes acceptance of the License and Privacy Policy terms.
43
+ - License: https://kumologica.com/legal/license_en.txt
44
+ - Privacy Policy: https://kumologica.com/legal/policy.html
45
+ `);
46
+
47
+
38
48
  console.debug(`Project directory: ${projectDir}`);
39
49
  console.debug(`Root directory: ${rootPath}`);
40
50
 
41
51
  let electronPath =
42
52
  process.env["KUMOLOGICA_ELECTRON_PATH"] ||
43
53
  path.join(rootPath, "node_modules", ".bin", "electron");
54
+ electronPath = `"${electronPath}"`;
55
+
44
56
  console.debug(`Electron path: ${electronPath}`);
45
57
 
46
58
  const e = spawn(electronPath, [".", projectDir], {
@@ -66,7 +78,7 @@ function startElectron(projectDir) {
66
78
  }
67
79
 
68
80
  // Prompt to upgrade to aws sdk v3
69
- async function promptV3(updates) {
81
+ async function promptV3(updates, updater) {
70
82
  if (updates.v3) {
71
83
  console.log("");
72
84
  console.log(
@@ -141,7 +153,7 @@ async function promptUpdates(updates) {
141
153
  check if upgrade or missing node_modules vs package.json
142
154
  check if missing node_modules
143
155
  */
144
- async function updater(projectDir) {
156
+ async function runUpdater(projectDir) {
145
157
  if (!projectDir) {
146
158
  console.debug("Project directory not provided, skipping upgrade check");
147
159
  return;
@@ -155,7 +167,7 @@ async function updater(projectDir) {
155
167
  delete updates.installs;
156
168
  }
157
169
 
158
- const v3 = await promptV3(updates);
170
+ const v3 = await promptV3(updates, updater);
159
171
  if (!v3) {
160
172
  delete updates.v3;
161
173
  }
@@ -177,7 +189,7 @@ exports.handler = async ({ project_directory }) => {
177
189
  const projectDir = project_directory
178
190
  ? path.resolve(project_directory)
179
191
  : undefined;
180
- await updater(projectDir);
192
+ await runUpdater(projectDir);
181
193
 
182
194
  startElectron(projectDir);
183
195
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumologica/sdk",
3
- "version": "3.6.2",
3
+ "version": "3.6.3-beta2",
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>",
@@ -59,7 +59,7 @@
59
59
  "grunt": "grunt",
60
60
  "postinstall": "node scripts/welcome.js",
61
61
  "license-check": "npx license-checker --summary && npx license-compatibility-checker ",
62
- "license-report": "npx license-report --output=table"
62
+ "license-report": "npx license-report --omit=dev --output=table"
63
63
  },
64
64
  "license": "Proprietary",
65
65
  "dependencies": {
@@ -83,9 +83,9 @@
83
83
  "@aws-sdk/credential-providers": "^3.556.0",
84
84
  "@aws-sdk/lib-dynamodb": "^3.549.0",
85
85
  "@electron/remote": "^2.0.8",
86
- "@kumologica/builder": "3.6.2",
87
- "@kumologica/devkit": "3.6.2",
88
- "@kumologica/runtime": "3.6.2",
86
+ "@kumologica/builder": "3.6.3-beta2",
87
+ "@kumologica/devkit": "3.6.3-beta2",
88
+ "@kumologica/runtime": "3.6.3-beta2",
89
89
  "adm-zip": "0.4.13",
90
90
  "ajv": "8.10.0",
91
91
  "archive-type": "^4.0.0",
@@ -114,7 +114,7 @@ class ServerlessDeployer {
114
114
 
115
115
  provider: {
116
116
  name: "aws",
117
- runtime: "nodejs18.x",
117
+ runtime: "nodejs20.x",
118
118
  deploymentPrefix: "kumologica-sls"
119
119
  },
120
120
  functions: {},