lowdefy 4.2.2 → 4.3.1

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.
@@ -26,6 +26,8 @@ async function runDevServer({ context, directory }) {
26
26
  }),
27
27
  processOptions: {
28
28
  cwd: directory,
29
+ // https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2#command-injection-via-args-parameter-of-child_processspawn-without-shell-option-enabled-on-windows-cve-2024-27980---high
30
+ shell: process.platform === 'win32',
29
31
  env: {
30
32
  ...process.env,
31
33
  LOWDEFY_BUILD_REF_RESOLVER: context.options.refResolver,
@@ -26,6 +26,8 @@ async function runStart({ context, directory }) {
26
26
  }),
27
27
  processOptions: {
28
28
  cwd: directory,
29
+ // https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2#command-injection-via-args-parameter-of-child_processspawn-without-shell-option-enabled-on-windows-cve-2024-27980---high
30
+ shell: process.platform === 'win32',
29
31
  env: {
30
32
  ...process.env,
31
33
  LOWDEFY_LOG_LEVEL: context.options.logLevel,
@@ -24,7 +24,9 @@ async function installServer({ context, directory }) {
24
24
  ],
25
25
  stdOutLineHandler: (line)=>context.print.debug(line),
26
26
  processOptions: {
27
- cwd: directory
27
+ cwd: directory,
28
+ // https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2#command-injection-via-args-parameter-of-child_processspawn-without-shell-option-enabled-on-windows-cve-2024-27980---high
29
+ shell: process.platform === 'win32'
28
30
  }
29
31
  });
30
32
  } catch (error) {
@@ -28,6 +28,8 @@ async function runLowdefyBuild({ context, directory }) {
28
28
  }),
29
29
  processOptions: {
30
30
  cwd: directory,
31
+ // https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2#command-injection-via-args-parameter-of-child_processspawn-without-shell-option-enabled-on-windows-cve-2024-27980---high
32
+ shell: process.platform === 'win32',
31
33
  env: {
32
34
  ...process.env,
33
35
  LOWDEFY_BUILD_REF_RESOLVER: context.options.refResolver,
@@ -37,6 +37,8 @@ async function runNextBuild({ context, directory }) {
37
37
  context
38
38
  }),
39
39
  processOptions: {
40
+ // https://nodejs.org/en/blog/vulnerability/april-2024-security-releases-2#command-injection-via-args-parameter-of-child_processspawn-without-shell-option-enabled-on-windows-cve-2024-27980---high
41
+ shell: process.platform === 'win32',
40
42
  cwd: directory
41
43
  },
42
44
  env: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lowdefy",
3
- "version": "4.2.2",
3
+ "version": "4.3.1",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Lowdefy CLI",
6
6
  "homepage": "https://lowdefy.com",
@@ -32,8 +32,8 @@
32
32
  ],
33
33
  "exports": "./dist/index.js",
34
34
  "dependencies": {
35
- "@lowdefy/helpers": "4.2.2",
36
- "@lowdefy/node-utils": "4.2.2",
35
+ "@lowdefy/helpers": "4.3.1",
36
+ "@lowdefy/node-utils": "4.3.1",
37
37
  "axios": "1.6.2",
38
38
  "commander": "11.1.0",
39
39
  "decompress": "4.2.1",