Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tinyspawn

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinyspawn - npm Package Compare versions

Comparing version 1.1.4 to 1.1.5

2

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/Kikobeats/tinyspawn",
"version": "1.1.4",
"version": "1.1.5",
"main": "src/index.js",

@@ -8,0 +8,0 @@ "author": {

@@ -22,3 +22,2 @@ 'use strict'

childProcess = spawn(cmd, args, opts)
const stdout = eos(childProcess, 'stdout')

@@ -33,7 +32,9 @@ const stderr = eos(childProcess, 'stderr')

if (code === 0) return resolve(childProcess)
let command = `The command spawned as:${EOL}${EOL}`
command += ` ${cmd} ${args.join(' ')}${EOL}${EOL}`
command += `exited with \`{ code: ${code} }\` and the following trace:${EOL}${EOL}`
command += String(stderr).split(EOL).map(line => ` ${line}`).join(EOL)
const error = new Error(command)
const command = `${cmd} ${args.join(' ')}`
let message = `The command spawned as:${EOL}${EOL}`
message += ` ${command}${EOL}${EOL}`
message += `exited with \`{ code: ${code} }\` and the following trace:${EOL}${EOL}`
message += String(stderr).split(EOL).map(line => ` ${line}`).join(EOL)
const error = new Error(message)
error.command = command
error.name = 'ChildProcessError'

@@ -40,0 +41,0 @@ Object.keys(childProcess).forEach(key => { error[key] = childProcess[key] })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc