@universal-packages/sub-process
Advanced tools
Comparing version 1.13.0 to 1.14.0
{ | ||
"name": "@universal-packages/sub-process", | ||
"version": "1.13.0", | ||
"version": "1.14.0", | ||
"description": "Process encapsulation for different exec technics", | ||
@@ -5,0 +5,0 @@ "author": "David De Anda <david@universal-packages.com> (https://github.com/universal-packages)", |
@@ -89,2 +89,11 @@ "use strict"; | ||
break; | ||
case 'failure': | ||
testProcess.emit('stderr', Buffer.from(args[0] || 'Command failed')); | ||
if (killWithSignal) { | ||
testProcess.emit('killed', killWithSignal); | ||
} | ||
else { | ||
testProcess.emit('failure', 1); | ||
} | ||
return; | ||
} | ||
@@ -91,0 +100,0 @@ if (killWithSignal) { |
Sorry, the diff of this file is not supported yet
69977
894