azure-pipelines-task-lib
Advanced tools
Comparing version 3.0.1-preview to 3.0.3-preview
@@ -23,7 +23,7 @@ import vm = require('./vault'); | ||
* Call once at the beginning of the script before any calls to loc. | ||
* | ||
* @param path Full path to the json. | ||
* @param ignoreWarnings Won't throw warnings if path already set. | ||
* @returns void | ||
*/ | ||
export declare function _setResourcePath(path: string): void; | ||
export declare function _setResourcePath(path: string, ignoreWarnings?: boolean): void; | ||
/** | ||
@@ -30,0 +30,0 @@ * Gets the localized string from the json resource file. Optionally formats with additional params. |
@@ -126,7 +126,8 @@ "use strict"; | ||
* Call once at the beginning of the script before any calls to loc. | ||
* | ||
* @param path Full path to the json. | ||
* @param ignoreWarnings Won't throw warnings if path already set. | ||
* @returns void | ||
*/ | ||
function _setResourcePath(path) { | ||
function _setResourcePath(path, ignoreWarnings) { | ||
if (ignoreWarnings === void 0) { ignoreWarnings = false; } | ||
if (process.env['TASKLIB_INPROC_UNITS']) { | ||
@@ -150,3 +151,8 @@ _resourceFiles = {}; | ||
else { | ||
_warning(_loc('LIB_ResourceFileAlreadySet', path)); | ||
if (ignoreWarnings) { | ||
_debug(_loc('LIB_ResourceFileAlreadySet', path)); | ||
} | ||
else { | ||
_warning(_loc('LIB_ResourceFileAlreadySet', path)); | ||
} | ||
} | ||
@@ -153,0 +159,0 @@ } |
@@ -164,3 +164,5 @@ "use strict"; | ||
var nodeVersionFound = false; | ||
var execution = taskJson['execution']; | ||
var execution = (taskJson['execution'] | ||
|| taskJson['prejobexecution'] | ||
|| taskJson['postjobexecution']); | ||
var keys = Object.keys(execution); | ||
@@ -167,0 +169,0 @@ for (var i = 0; i < keys.length; i++) { |
{ | ||
"name": "azure-pipelines-task-lib", | ||
"version": "3.0.1-preview", | ||
"version": "3.0.3-preview", | ||
"description": "Azure Pipelines Task SDK", | ||
@@ -5,0 +5,0 @@ "main": "./task.js", |
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
366631
6245