Skip to content

Commit ed15df4

Browse files
author
Kaspar Lyngsie
committed
fix: actually bump shescape
1 parent e3b3fd0 commit ed15df4

3 files changed

Lines changed: 39 additions & 14 deletions

File tree

lib/sub-process.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as childProcess from "child_process";
2-
import { quoteAll } from "shescape";
2+
import { quoteAll } from "shescape/stateless";
33

44
export { execute, CmdOutput };
55
interface CmdOutput {
@@ -16,7 +16,7 @@ function execute(
1616
if (options && options.cwd) {
1717
spawnOptions.cwd = options.cwd;
1818
}
19-
args = quoteAll(args, spawnOptions);
19+
args = quoteAll(args, { ...spawnOptions, flagProtection: false });
2020

2121
// Before spawning an external process, we look if we need to restore the system proxy configuration,
2222
// which overrides the cli internal proxy configuration.

package-lock.json

Lines changed: 36 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"mkdirp": "^1.0.4",
4646
"packageurl-js": "1.2.0",
4747
"semver": "^7.6.3",
48-
"shescape": "^1.7.4",
48+
"shescape": "2.1.0",
4949
"snyk-nodejs-lockfile-parser": "^2.0.0",
5050
"snyk-poetry-lockfile-parser": "^1.4.0",
5151
"snyk-resolve-deps": "^4.7.1",

0 commit comments

Comments
 (0)