gpteam 0.1.16 → 0.1.17
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/lib/client-install.js +4 -2
- package/lib/help.js +1 -1
- package/package.json +1 -1
package/lib/client-install.js
CHANGED
|
@@ -89,7 +89,7 @@ export function resolveSpawnInvocation(command, args, platform = process.platfor
|
|
|
89
89
|
if (platform === 'win32' && command === 'npm') {
|
|
90
90
|
return {
|
|
91
91
|
command: 'cmd.exe',
|
|
92
|
-
args: ['/d', '/
|
|
92
|
+
args: ['/d', '/c', windowsCommandLine('npm.cmd', args)]
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
return { command, args };
|
|
@@ -123,7 +123,9 @@ function windowsCommandLine(command, args) {
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
function windowsQuoteArg(value) {
|
|
126
|
-
|
|
126
|
+
const text = String(value);
|
|
127
|
+
if (!/[\s&()^|<>"]/.test(text)) return text;
|
|
128
|
+
return `"${text.replace(/"/g, '\\"')}"`;
|
|
127
129
|
}
|
|
128
130
|
|
|
129
131
|
function shellQuote(value) {
|
package/lib/help.js
CHANGED