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.
@@ -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', '/s', '/c', windowsCommandLine('npm.cmd', args)]
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
- return `"${String(value).replace(/"/g, '\\"')}"`;
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
@@ -1,5 +1,5 @@
1
1
  export const PACKAGE_NAME = 'gpteam';
2
- export const PACKAGE_VERSION = '0.1.16';
2
+ export const PACKAGE_VERSION = '0.1.17';
3
3
 
4
4
  export function getHelpText() {
5
5
  return [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gpteam",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "GPTeam API interactive client configurator and ingress benchmark CLI.",
5
5
  "type": "module",
6
6
  "bin": {