azure-pipelines-task-lib 4.14.0 → 4.16.0
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.
- package/internal.js +7 -2
- package/package.json +2 -2
package/internal.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a, _b;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.isSigPipeError = exports._exposeCertSettings = exports._exposeProxySettings = exports._normalizeSeparators = exports._isRooted = exports._getDirectoryName = exports._ensureRooted = exports._isUncPath = exports._loadData = exports._ensurePatternRooted = exports._getFindInfoFromPattern = exports._cloneMatchOptions = exports._legacyFindFiles_convertPatternToRegExp = exports._which = exports._checkPath = exports._exist = exports._debug = exports._error = exports._warning = exports._command = exports._getVariableKey = exports._getVariable = exports._loc = exports._setResourcePath = exports._setErrStream = exports._setStdStream = exports._writeLine = exports._truncateBeforeSensitiveKeyword = exports._endsWith = exports._startsWith = exports.IssueAuditAction = exports.IssueSource = exports._vault = exports._knownVariableMap = void 0;
|
|
4
5
|
var fs = require("fs");
|
|
@@ -173,7 +174,6 @@ function _setResourcePath(path, ignoreWarnings) {
|
|
|
173
174
|
}
|
|
174
175
|
else {
|
|
175
176
|
if (ignoreWarnings) {
|
|
176
|
-
_debug(_loc('LIB_ResourceFileAlreadySet', path));
|
|
177
177
|
}
|
|
178
178
|
else {
|
|
179
179
|
_warning(_loc('LIB_ResourceFileAlreadySet', path), IssueSource.TaskInternal);
|
|
@@ -293,8 +293,13 @@ function _error(message, source, auditAction) {
|
|
|
293
293
|
}, message);
|
|
294
294
|
}
|
|
295
295
|
exports._error = _error;
|
|
296
|
+
var debugMode = ((_a = _getVariable('system.debug')) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === 'true';
|
|
297
|
+
var shouldCheckDebugMode = ((_b = _getVariable('DistributedTask.Tasks.Node.SkipDebugLogsWhenDebugModeOff')) === null || _b === void 0 ? void 0 : _b.toLowerCase()) === 'true';
|
|
296
298
|
function _debug(message) {
|
|
297
|
-
|
|
299
|
+
if (!shouldCheckDebugMode
|
|
300
|
+
|| (shouldCheckDebugMode && debugMode)) {
|
|
301
|
+
_command('task.debug', null, message);
|
|
302
|
+
}
|
|
298
303
|
}
|
|
299
304
|
exports._debug = _debug;
|
|
300
305
|
// //-----------------------------------------------------
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "azure-pipelines-task-lib",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.0",
|
|
4
4
|
"description": "Azure Pipelines Task SDK",
|
|
5
5
|
"main": "./task.js",
|
|
6
6
|
"typings": "./task.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"minimatch": "3.0.5",
|
|
32
32
|
"nodejs-file-downloader": "^4.11.1",
|
|
33
33
|
"q": "^1.5.1",
|
|
34
|
-
"semver": "^5.
|
|
34
|
+
"semver": "^5.7.2",
|
|
35
35
|
"shelljs": "^0.8.5",
|
|
36
36
|
"uuid": "^3.0.1"
|
|
37
37
|
},
|