Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2021-03-18 20:16:51 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-03-18 20:19:42 +0300
commit91662305643509eebd2f79ed7e3ff01562aa4968 (patch)
tree58e2e664f32e9e274870bb4dbf2058cb22470d52 /node_modules/@npmcli
parentaf7eaac5018ed821d72d43d08f1d7e49e7491453 (diff)
@npmcli/run-script@1.8.4
Diffstat (limited to 'node_modules/@npmcli')
-rw-r--r--node_modules/@npmcli/run-script/lib/make-spawn-args.js20
-rw-r--r--node_modules/@npmcli/run-script/package.json3
2 files changed, 2 insertions, 21 deletions
diff --git a/node_modules/@npmcli/run-script/lib/make-spawn-args.js b/node_modules/@npmcli/run-script/lib/make-spawn-args.js
index 4c38b9401..8ee24c06d 100644
--- a/node_modules/@npmcli/run-script/lib/make-spawn-args.js
+++ b/node_modules/@npmcli/run-script/lib/make-spawn-args.js
@@ -3,24 +3,6 @@ const isWindows = require('./is-windows.js')
const setPATH = require('./set-path.js')
const {resolve} = require('path')
const npm_config_node_gyp = require.resolve('node-gyp/bin/node-gyp.js')
-const { quoteForShell, ShellString, ShellStringText, ShellStringUnquoted } = require('puka')
-
-const escapeCmd = cmd => {
- const result = []
- const parsed = ShellString.sh([cmd])
- for (const child of parsed.children) {
- if (child instanceof ShellStringText) {
- const children = child.contents.filter(segment => segment !== null).map(segment => quoteForShell(segment, false, isWindows && 'win32'))
- result.push(...children)
- } else if (child instanceof ShellStringUnquoted) {
- result.push(child.value)
- } else {
- result.push(isWindows ? '&' : ';')
- }
- }
-
- return result.join('')
-}
const makeSpawnArgs = options => {
const {
@@ -34,7 +16,7 @@ const makeSpawnArgs = options => {
} = options
const isCmd = /(?:^|\\)cmd(?:\.exe)?$/i.test(scriptShell)
- const args = isCmd ? ['/d', '/s', '/c', escapeCmd(cmd)] : ['-c', cmd]
+ const args = isCmd ? ['/d', '/s', '/c', cmd] : ['-c', cmd]
const spawnOpts = {
env: setPATH(path, {
diff --git a/node_modules/@npmcli/run-script/package.json b/node_modules/@npmcli/run-script/package.json
index 9df5b3117..7e0e5255d 100644
--- a/node_modules/@npmcli/run-script/package.json
+++ b/node_modules/@npmcli/run-script/package.json
@@ -1,6 +1,6 @@
{
"name": "@npmcli/run-script",
- "version": "1.8.3",
+ "version": "1.8.4",
"description": "Run a lifecycle script for a package (descendant of npm-lifecycle)",
"author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
"license": "ISC",
@@ -32,7 +32,6 @@
"@npmcli/promise-spawn": "^1.3.2",
"infer-owner": "^1.0.4",
"node-gyp": "^7.1.0",
- "puka": "^1.0.1",
"read-package-json-fast": "^2.0.1"
},
"files": [