azure-pipelines-task-lib
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -60,2 +60,3 @@ "use strict"; | ||
module.exports.getInput = task.getInput; | ||
module.exports.getInputRequired = task.getInputRequired; | ||
module.exports.getBoolInput = task.getBoolInput; | ||
@@ -74,2 +75,6 @@ module.exports.getDelimitedInput = task.getDelimitedInput; | ||
module.exports.getPathInput = getPathInput; | ||
function getPathInputRequired(name, check) { | ||
return getPathInput(name, true, check); | ||
} | ||
module.exports.getPathInputRequired = getPathInputRequired; | ||
//----------------------------------------------------- | ||
@@ -79,5 +84,9 @@ // Endpoint Helpers | ||
module.exports.getEndpointUrl = task.getEndpointUrl; | ||
module.exports.getEndpointUrlRequired = task.getEndpointUrlRequired; | ||
module.exports.getEndpointDataParameter = task.getEndpointDataParameter; | ||
module.exports.getEndpointDataParameterRequired = task.getEndpointDataParameterRequired; | ||
module.exports.getEndpointAuthorizationScheme = task.getEndpointAuthorizationScheme; | ||
module.exports.getEndpointAuthorizationSchemeRequired = task.getEndpointAuthorizationSchemeRequired; | ||
module.exports.getEndpointAuthorizationParameter = task.getEndpointAuthorizationParameter; | ||
module.exports.getEndpointAuthorizationParameterRequired = task.getEndpointAuthorizationParameterRequired; | ||
module.exports.getEndpointAuthorization = task.getEndpointAuthorization; | ||
@@ -84,0 +93,0 @@ //----------------------------------------------------- |
{ | ||
"name": "azure-pipelines-task-lib", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "Azure Pipelines Task SDK", | ||
@@ -5,0 +5,0 @@ "main": "./task.js", |
@@ -112,2 +112,10 @@ /// <reference types="node" /> | ||
/** | ||
* Gets the value of an input. | ||
* If the value is not set, it will throw. | ||
* | ||
* @param name name of the input to get | ||
* @returns string | ||
*/ | ||
export declare function getInputRequired(name: string): string; | ||
/** | ||
* Gets the value of an input and converts to a bool. Convenience. | ||
@@ -158,2 +166,13 @@ * If required is true and the value is not set, it will throw. | ||
/** | ||
* Gets the value of a path input | ||
* It will be quoted for you if it isn't already and contains spaces | ||
* If the value is not set, it will throw. | ||
* If check is true and the path does not exist, it will throw. | ||
* | ||
* @param name name of the input to get | ||
* @param check whether path is checked. optional, defaults to false | ||
* @returns string | ||
*/ | ||
export declare function getPathInputRequired(name: string, check?: boolean): string; | ||
/** | ||
* Gets the url for a service endpoint | ||
@@ -167,3 +186,12 @@ * If the url was not set and is not optional, it will throw. | ||
export declare function getEndpointUrl(id: string, optional: boolean): string | undefined; | ||
/** | ||
* Gets the url for a service endpoint | ||
* If the url was not set, it will throw. | ||
* | ||
* @param id name of the service endpoint | ||
* @returns string | ||
*/ | ||
export declare function getEndpointUrlRequired(id: string): string; | ||
export declare function getEndpointDataParameter(id: string, key: string, optional: boolean): string | undefined; | ||
export declare function getEndpointDataParameterRequired(id: string, key: string): string; | ||
/** | ||
@@ -179,2 +207,10 @@ * Gets the endpoint authorization scheme for a service endpoint | ||
/** | ||
* Gets the endpoint authorization scheme for a service endpoint | ||
* If the endpoint authorization scheme is not set, it will throw. | ||
* | ||
* @param id name of the service endpoint | ||
* @returns {string} value of the endpoint authorization scheme | ||
*/ | ||
export declare function getEndpointAuthorizationSchemeRequired(id: string): string; | ||
/** | ||
* Gets the endpoint authorization parameter value for a service endpoint with specified key | ||
@@ -190,2 +226,11 @@ * If the endpoint authorization parameter is not set and is not optional, it will throw. | ||
/** | ||
* Gets the endpoint authorization parameter value for a service endpoint with specified key | ||
* If the endpoint authorization parameter is not set, it will throw. | ||
* | ||
* @param id name of the service endpoint | ||
* @param key key to find the endpoint authorization parameter | ||
* @returns {string} value of the endpoint authorization parameter value | ||
*/ | ||
export declare function getEndpointAuthorizationParameterRequired(id: string, key: string): string; | ||
/** | ||
* Interface for EndpointAuthorization | ||
@@ -192,0 +237,0 @@ * Contains a schema and a string/string dictionary of auth data |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
385708
6507
5