azure-pipelines-task-lib
Advanced tools
Comparing version 2.11.1 to 2.11.2
@@ -25,5 +25,6 @@ import vm = require('./vault'); | ||
* @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 +31,0 @@ * Gets the localized string from the json resource file. Optionally formats with additional params. |
@@ -127,5 +127,7 @@ "use strict"; | ||
* @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']) { | ||
@@ -149,3 +151,8 @@ _resourceFiles = {}; | ||
else { | ||
_warning(_loc('LIB_ResourceFileAlreadySet', path)); | ||
if (ignoreWarnings) { | ||
_debug(_loc('LIB_ResourceFileAlreadySet', path)); | ||
} | ||
else { | ||
_warning(_loc('LIB_ResourceFileAlreadySet', path)); | ||
} | ||
} | ||
@@ -152,0 +159,0 @@ } |
{ | ||
"name": "azure-pipelines-task-lib", | ||
"version": "2.11.1", | ||
"version": "2.11.2", | ||
"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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
361417
6224
4