azure-pipelines-task-lib
Advanced tools
Comparing version 4.16.0 to 4.17.0
{ | ||
"name": "azure-pipelines-task-lib", | ||
"version": "4.16.0", | ||
"version": "4.17.0", | ||
"description": "Azure Pipelines Task SDK", | ||
@@ -5,0 +5,0 @@ "main": "./task.js", |
@@ -170,3 +170,3 @@ /// <reference types="node" /> | ||
*/ | ||
killChildProcess(): void; | ||
killChildProcess(signal?: number | NodeJS.Signals): void; | ||
} |
@@ -581,3 +581,3 @@ "use strict"; | ||
(_a = cpFirst.stdout) === null || _a === void 0 ? void 0 : _a.on('data', function (data) { | ||
var _a; | ||
var _a, _b; | ||
try { | ||
@@ -587,3 +587,5 @@ if (fileStream) { | ||
} | ||
(_a = cp.stdin) === null || _a === void 0 ? void 0 : _a.write(data); | ||
if (!((_a = cp.stdin) === null || _a === void 0 ? void 0 : _a.destroyed)) { | ||
(_b = cp.stdin) === null || _b === void 0 ? void 0 : _b.write(data); | ||
} | ||
} | ||
@@ -1043,3 +1045,3 @@ catch (err) { | ||
state.processExited = true; | ||
_this._debug("Exit code " + code + " received from tool '" + _this.toolPath + "'"); | ||
_this._debug("STDIO streams have closed and received exit code " + code + " and signal " + signal + " for tool '" + _this.toolPath + "'"); | ||
state.CheckComplete(); | ||
@@ -1051,3 +1053,3 @@ }); | ||
state.processClosed = true; | ||
_this._debug("STDIO streams have closed for tool '" + _this.toolPath + "'"); | ||
_this._debug("STDIO streams have closed and received exit code " + code + " and signal " + signal + " for tool '" + _this.toolPath + "'"); | ||
state.CheckComplete(); | ||
@@ -1156,3 +1158,3 @@ }); | ||
state.processExited = true; | ||
_this._debug("Exit code " + code + " received from tool '" + _this.toolPath + "'"); | ||
_this._debug("STDIO streams have closed and received exit code " + code + " and signal " + signal + " for tool '" + _this.toolPath + "'"); | ||
state.CheckComplete(); | ||
@@ -1164,3 +1166,3 @@ }); | ||
state.processClosed = true; | ||
_this._debug("STDIO streams have closed for tool '" + _this.toolPath + "'"); | ||
_this._debug("STDIO streams have closed and received exit code " + code + " and signal " + signal + " for tool '" + _this.toolPath + "'"); | ||
state.CheckComplete(); | ||
@@ -1208,5 +1210,7 @@ }); | ||
*/ | ||
ToolRunner.prototype.killChildProcess = function () { | ||
ToolRunner.prototype.killChildProcess = function (signal) { | ||
if (signal === void 0) { signal = "SIGTERM"; } | ||
if (this.childProcess) { | ||
this.childProcess.kill(); | ||
this._debug("[killChildProcess] Signal " + signal + " received"); | ||
this.childProcess.kill(signal); | ||
} | ||
@@ -1213,0 +1217,0 @@ }; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
426686
7570