@kumologica/sdk 3.6.2 → 3.6.3-beta1

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.
@@ -41,6 +41,8 @@ function startElectron(projectDir) {
41
41
  let electronPath =
42
42
  process.env["KUMOLOGICA_ELECTRON_PATH"] ||
43
43
  path.join(rootPath, "node_modules", ".bin", "electron");
44
+ electronPath = `"${electronPath}"`;
45
+
44
46
  console.debug(`Electron path: ${electronPath}`);
45
47
 
46
48
  const e = spawn(electronPath, [".", projectDir], {
@@ -66,7 +68,7 @@ function startElectron(projectDir) {
66
68
  }
67
69
 
68
70
  // Prompt to upgrade to aws sdk v3
69
- async function promptV3(updates) {
71
+ async function promptV3(updates, updater) {
70
72
  if (updates.v3) {
71
73
  console.log("");
72
74
  console.log(
@@ -141,7 +143,7 @@ async function promptUpdates(updates) {
141
143
  check if upgrade or missing node_modules vs package.json
142
144
  check if missing node_modules
143
145
  */
144
- async function updater(projectDir) {
146
+ async function runUpdater(projectDir) {
145
147
  if (!projectDir) {
146
148
  console.debug("Project directory not provided, skipping upgrade check");
147
149
  return;
@@ -155,7 +157,7 @@ async function updater(projectDir) {
155
157
  delete updates.installs;
156
158
  }
157
159
 
158
- const v3 = await promptV3(updates);
160
+ const v3 = await promptV3(updates, updater);
159
161
  if (!v3) {
160
162
  delete updates.v3;
161
163
  }
@@ -177,7 +179,7 @@ exports.handler = async ({ project_directory }) => {
177
179
  const projectDir = project_directory
178
180
  ? path.resolve(project_directory)
179
181
  : undefined;
180
- await updater(projectDir);
182
+ await runUpdater(projectDir);
181
183
 
182
184
  startElectron(projectDir);
183
185
  };
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-beta1",
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>",
@@ -61,7 +61,7 @@
61
61
  "license-check": "npx license-checker --summary && npx license-compatibility-checker ",
62
62
  "license-report": "npx license-report --output=table"
63
63
  },
64
- "license": "Proprietary",
64
+ "license": "Apache-2.0",
65
65
  "dependencies": {
66
66
  "@apidevtools/swagger-parser": "^10.1.1",
67
67
  "@aws-sdk/client-api-gateway": "^3.556.0",
@@ -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-beta1",
87
+ "@kumologica/devkit": "3.6.3-beta1",
88
+ "@kumologica/runtime": "3.6.3-beta1",
89
89
  "adm-zip": "0.4.13",
90
90
  "ajv": "8.10.0",
91
91
  "archive-type": "^4.0.0",