initial commit of actions
This commit is contained in:
commit
949ece5785
44660 changed files with 12034344 additions and 0 deletions
21
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/LICENSE
generated
vendored
Normal file
21
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
78
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/README.md
generated
vendored
Normal file
78
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,78 @@
|
|||
# Azure Core Authentication client library for JavaScript
|
||||
|
||||
The `@azure/core-auth` package provides core interfaces and helper methods for authenticating with Azure services using Azure Active Directory and other authentication schemes common across the Azure SDK. As a "core" library, it shouldn't need to be added as a dependency to any user code, only other Azure SDK libraries.
|
||||
|
||||
## Getting started
|
||||
|
||||
### Installation
|
||||
|
||||
Install this library using npm as follows
|
||||
|
||||
```
|
||||
npm install @azure/core-auth
|
||||
```
|
||||
|
||||
## Key Concepts
|
||||
|
||||
The `TokenCredential` interface represents a credential capable of providing an authentication token. The `@azure/identity` package contains various credentials that implement the `TokenCredential` interface.
|
||||
|
||||
The `AzureKeyCredential` is a static key-based credential that supports key rotation via the `update` method. Use this when a single secret value is needed for authentication, e.g. when using a shared access key.
|
||||
|
||||
The `AzureNamedKeyCredential` is a static name/key-based credential that supports name and key rotation via the `update` method. Use this when both a secret value and a label are needed, e.g. when using a shared access key and shared access key name.
|
||||
|
||||
The `AzureSASCredential` is a static signature-based credential that supports updating the signature value via the `update` method. Use this when using a shared access signature.
|
||||
|
||||
## Examples
|
||||
|
||||
### AzureKeyCredential
|
||||
|
||||
```js
|
||||
const { AzureKeyCredential } = require("@azure/core-auth");
|
||||
|
||||
const credential = new AzureKeyCredential("secret value");
|
||||
// prints: "secret value"
|
||||
console.log(credential.key);
|
||||
credential.update("other secret value");
|
||||
// prints: "other secret value"
|
||||
console.log(credential.key);
|
||||
```
|
||||
|
||||
### AzureNamedKeyCredential
|
||||
|
||||
```js
|
||||
const { AzureNamedKeyCredential } = require("@azure/core-auth");
|
||||
|
||||
const credential = new AzureNamedKeyCredential("ManagedPolicy", "secret value");
|
||||
// prints: "ManagedPolicy, secret value"
|
||||
console.log(`${credential.name}, ${credential.key}`);
|
||||
credential.update("OtherManagedPolicy", "other secret value");
|
||||
// prints: "OtherManagedPolicy, other secret value"
|
||||
console.log(`${credential.name}, ${credential.key}`);
|
||||
```
|
||||
|
||||
### AzureSASCredential
|
||||
|
||||
```js
|
||||
const { AzureSASCredential } = require("@azure/core-auth");
|
||||
|
||||
const credential = new AzureSASCredential("signature1");
|
||||
// prints: "signature1"
|
||||
console.log(credential.signature);
|
||||
credential.update("signature2");
|
||||
// prints: "signature2"
|
||||
console.log(credential.signature);
|
||||
```
|
||||
|
||||
## Next steps
|
||||
|
||||
You can build and run the tests locally by executing `rushx test`. Explore the `test` folder to see advanced usage and behavior of the public classes.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
If you run into issues while using this library, please feel free to [file an issue](https://github.com/Azure/azure-sdk-for-js/issues/new).
|
||||
|
||||
## Contributing
|
||||
|
||||
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
|
||||
|
||||

|
||||
38
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureKeyCredential.js
generated
vendored
Normal file
38
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureKeyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export class AzureKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key) {
|
||||
if (!key) {
|
||||
throw new Error("key must be a non-empty string");
|
||||
}
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey) {
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=azureKeyCredential.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureKeyCredential.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureKeyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureKeyCredential.js","sourceRoot":"","sources":["../../src/azureKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAG7B;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,YAAY,GAAW;QACrB,IAAI,CAAC,GAAG,EAAE,CAAC;YACT,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QACpD,CAAC;QAED,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,MAAc;QAC1B,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { KeyCredential } from \"./keyCredential\";\n\n/**\n * A static-key-based credential that supports updating\n * the underlying key value.\n */\nexport class AzureKeyCredential implements KeyCredential {\n private _key: string;\n\n /**\n * The value of the key to be used in authentication\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * Create an instance of an AzureKeyCredential for use\n * with a service client.\n *\n * @param key - The initial value of the key to use in authentication\n */\n constructor(key: string) {\n if (!key) {\n throw new Error(\"key must be a non-empty string\");\n }\n\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newKey - The new key value to be used\n */\n public update(newKey: string): void {\n this._key = newKey;\n }\n}\n"]}
|
||||
62
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureNamedKeyCredential.js
generated
vendored
Normal file
62
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureNamedKeyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export class AzureNamedKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name() {
|
||||
return this._name;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name, key) {
|
||||
if (!name || !key) {
|
||||
throw new TypeError("name and key must be non-empty strings");
|
||||
}
|
||||
this._name = name;
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName, newKey) {
|
||||
if (!newName || !newKey) {
|
||||
throw new TypeError("newName and newKey must be non-empty strings");
|
||||
}
|
||||
this._name = newName;
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export function isNamedKeyCredential(credential) {
|
||||
return (isObjectWithProperties(credential, ["name", "key"]) &&
|
||||
typeof credential.key === "string" &&
|
||||
typeof credential.name === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureNamedKeyCredential.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureNamedKeyCredential.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureNamedKeyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureNamedKeyCredential.js","sourceRoot":"","sources":["../../src/azureNamedKeyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAgB1D;;;GAGG;AACH,MAAM,OAAO,uBAAuB;IAIlC;;OAEG;IACH,IAAW,GAAG;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAED;;OAEG;IACH,IAAW,IAAI;QACb,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;IAED;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,GAAW;QACnC,IAAI,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YAClB,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAED;;;;;;;;OAQG;IACI,MAAM,CAAC,OAAe,EAAE,MAAc;QAC3C,IAAI,CAAC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;YACxB,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;QACtE,CAAC;QAED,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC;IACrB,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,UAAmB;IACtD,OAAO,CACL,sBAAsB,CAAC,UAAU,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACnD,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ;QAClC,OAAO,UAAU,CAAC,IAAI,KAAK,QAAQ,CACpC,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static API name and key.\n */\nexport interface NamedKeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n /**\n * The value of the API name represented as a string.\n */\n readonly name: string;\n}\n\n/**\n * A static name/key-based credential that supports updating\n * the underlying name and key values.\n */\nexport class AzureNamedKeyCredential implements NamedKeyCredential {\n private _key: string;\n private _name: string;\n\n /**\n * The value of the key to be used in authentication.\n */\n public get key(): string {\n return this._key;\n }\n\n /**\n * The value of the name to be used in authentication.\n */\n public get name(): string {\n return this._name;\n }\n\n /**\n * Create an instance of an AzureNamedKeyCredential for use\n * with a service client.\n *\n * @param name - The initial value of the name to use in authentication.\n * @param key - The initial value of the key to use in authentication.\n */\n constructor(name: string, key: string) {\n if (!name || !key) {\n throw new TypeError(\"name and key must be non-empty strings\");\n }\n\n this._name = name;\n this._key = key;\n }\n\n /**\n * Change the value of the key.\n *\n * Updates will take effect upon the next request after\n * updating the key value.\n *\n * @param newName - The new name value to be used.\n * @param newKey - The new key value to be used.\n */\n public update(newName: string, newKey: string): void {\n if (!newName || !newKey) {\n throw new TypeError(\"newName and newKey must be non-empty strings\");\n }\n\n this._name = newName;\n this._key = newKey;\n }\n}\n\n/**\n * Tests an object to determine whether it implements NamedKeyCredential.\n *\n * @param credential - The assumed NamedKeyCredential to be tested.\n */\nexport function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential {\n return (\n isObjectWithProperties(credential, [\"name\", \"key\"]) &&\n typeof credential.key === \"string\" &&\n typeof credential.name === \"string\"\n );\n}\n"]}
|
||||
50
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureSASCredential.js
generated
vendored
Normal file
50
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureSASCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export class AzureSASCredential {
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature() {
|
||||
return this._signature;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature) {
|
||||
if (!signature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = signature;
|
||||
}
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature) {
|
||||
if (!newSignature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = newSignature;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export function isSASCredential(credential) {
|
||||
return (isObjectWithProperties(credential, ["signature"]) && typeof credential.signature === "string");
|
||||
}
|
||||
//# sourceMappingURL=azureSASCredential.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureSASCredential.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/azureSASCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"azureSASCredential.js","sourceRoot":"","sources":["../../src/azureSASCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAY1D;;;GAGG;AACH,MAAM,OAAO,kBAAkB;IAG7B;;OAEG;IACH,IAAW,SAAS;QAClB,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED;;;;;OAKG;IACH,YAAY,SAAiB;QAC3B,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED;;;;;;;OAOG;IACI,MAAM,CAAC,YAAoB;QAChC,IAAI,CAAC,YAAY,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;QACxE,CAAC;QAED,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC;IACjC,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,UAAmB;IACjD,OAAO,CACL,sBAAsB,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,SAAS,KAAK,QAAQ,CAC9F,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static shared access signature.\n */\nexport interface SASCredential {\n /**\n * The value of the shared access signature represented as a string\n */\n readonly signature: string;\n}\n\n/**\n * A static-signature-based credential that supports updating\n * the underlying signature value.\n */\nexport class AzureSASCredential implements SASCredential {\n private _signature: string;\n\n /**\n * The value of the shared access signature to be used in authentication\n */\n public get signature(): string {\n return this._signature;\n }\n\n /**\n * Create an instance of an AzureSASCredential for use\n * with a service client.\n *\n * @param signature - The initial value of the shared access signature to use in authentication\n */\n constructor(signature: string) {\n if (!signature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = signature;\n }\n\n /**\n * Change the value of the signature.\n *\n * Updates will take effect upon the next request after\n * updating the signature value.\n *\n * @param newSignature - The new shared access signature value to be used\n */\n public update(newSignature: string): void {\n if (!newSignature) {\n throw new Error(\"shared access signature must be a non-empty string\");\n }\n\n this._signature = newSignature;\n }\n}\n\n/**\n * Tests an object to determine whether it implements SASCredential.\n *\n * @param credential - The assumed SASCredential to be tested.\n */\nexport function isSASCredential(credential: unknown): credential is SASCredential {\n return (\n isObjectWithProperties(credential, [\"signature\"]) && typeof credential.signature === \"string\"\n );\n}\n"]}
|
||||
8
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/index.js
generated
vendored
Normal file
8
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
export { AzureKeyCredential } from "./azureKeyCredential";
|
||||
export { isKeyCredential } from "./keyCredential";
|
||||
export { AzureNamedKeyCredential, isNamedKeyCredential, } from "./azureNamedKeyCredential";
|
||||
export { AzureSASCredential, isSASCredential } from "./azureSASCredential";
|
||||
export { isTokenCredential, } from "./tokenCredential";
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/index.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/index.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAiB,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,uBAAuB,EAEvB,oBAAoB,GACrB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,kBAAkB,EAAiB,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE1F,OAAO,EAIL,iBAAiB,GAClB,MAAM,mBAAmB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { AzureKeyCredential } from \"./azureKeyCredential\";\nexport { KeyCredential, isKeyCredential } from \"./keyCredential\";\nexport {\n AzureNamedKeyCredential,\n NamedKeyCredential,\n isNamedKeyCredential,\n} from \"./azureNamedKeyCredential\";\nexport { AzureSASCredential, SASCredential, isSASCredential } from \"./azureSASCredential\";\n\nexport {\n TokenCredential,\n GetTokenOptions,\n AccessToken,\n isTokenCredential,\n} from \"./tokenCredential\";\n\nexport { TracingContext } from \"./tracing\";\n"]}
|
||||
12
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/keyCredential.js
generated
vendored
Normal file
12
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/keyCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
import { isObjectWithProperties } from "@azure/core-util";
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
export function isKeyCredential(credential) {
|
||||
return isObjectWithProperties(credential, ["key"]) && typeof credential.key === "string";
|
||||
}
|
||||
//# sourceMappingURL=keyCredential.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/keyCredential.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/keyCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"keyCredential.js","sourceRoot":"","sources":["../../src/keyCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAY1D;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,UAAmB;IACjD,OAAO,sBAAsB,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,CAAC,IAAI,OAAO,UAAU,CAAC,GAAG,KAAK,QAAQ,CAAC;AAC3F,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { isObjectWithProperties } from \"@azure/core-util\";\n\n/**\n * Represents a credential defined by a static API key.\n */\nexport interface KeyCredential {\n /**\n * The value of the API key represented as a string\n */\n readonly key: string;\n}\n\n/**\n * Tests an object to determine whether it implements KeyCredential.\n *\n * @param credential - The assumed KeyCredential to be tested.\n */\nexport function isKeyCredential(credential: unknown): credential is KeyCredential {\n return isObjectWithProperties(credential, [\"key\"]) && typeof credential.key === \"string\";\n}\n"]}
|
||||
19
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/tokenCredential.js
generated
vendored
Normal file
19
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/tokenCredential.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export function isTokenCredential(credential) {
|
||||
// Check for an object with a 'getToken' function and possibly with
|
||||
// a 'signRequest' function. We do this check to make sure that
|
||||
// a ServiceClientCredentials implementor (like TokenClientCredentials
|
||||
// in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if
|
||||
// it doesn't actually implement TokenCredential also.
|
||||
const castCredential = credential;
|
||||
return (castCredential &&
|
||||
typeof castCredential.getToken === "function" &&
|
||||
(castCredential.signRequest === undefined || castCredential.getToken.length > 0));
|
||||
}
|
||||
//# sourceMappingURL=tokenCredential.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/tokenCredential.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/tokenCredential.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenCredential.js","sourceRoot":"","sources":["../../src/tokenCredential.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA6ElC;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAAC,UAAmB;IACnD,mEAAmE;IACnE,gEAAgE;IAChE,sEAAsE;IACtE,qEAAqE;IACrE,sDAAsD;IACtD,MAAM,cAAc,GAAG,UAGtB,CAAC;IACF,OAAO,CACL,cAAc;QACd,OAAO,cAAc,CAAC,QAAQ,KAAK,UAAU;QAC7C,CAAC,cAAc,CAAC,WAAW,KAAK,SAAS,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { TracingContext } from \"./tracing\";\n\n/**\n * Represents a credential capable of providing an authentication token.\n */\nexport interface TokenCredential {\n /**\n * Gets the token provided by this credential.\n *\n * This method is called automatically by Azure SDK client libraries. You may call this method\n * directly, but you must also handle token caching and token refreshing.\n *\n * @param scopes - The list of scopes for which the token will have access.\n * @param options - The options used to configure any requests this\n * TokenCredential implementation might make.\n */\n getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;\n}\n\n/**\n * Defines options for TokenCredential.getToken.\n */\nexport interface GetTokenOptions {\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /**\n * Options used when creating and sending HTTP requests for this operation.\n */\n requestOptions?: {\n /**\n * The number of milliseconds a request can take before automatically being terminated.\n */\n timeout?: number;\n };\n /**\n * Options used when tracing is enabled.\n */\n tracingOptions?: {\n /**\n * Tracing Context for the current request.\n */\n tracingContext?: TracingContext;\n };\n /**\n * Claim details to perform the Continuous Access Evaluation authentication flow\n */\n claims?: string;\n /**\n * Indicates whether to enable the Continuous Access Evaluation authentication flow\n */\n enableCae?: boolean;\n /**\n * Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.\n */\n tenantId?: string;\n}\n\n/**\n * Represents an access token with an expiration time.\n */\nexport interface AccessToken {\n /**\n * The access token returned by the authentication service.\n */\n token: string;\n\n /**\n * The access token's expiration timestamp in milliseconds, UNIX epoch time.\n */\n expiresOnTimestamp: number;\n}\n\n/**\n * Tests an object to determine whether it implements TokenCredential.\n *\n * @param credential - The assumed TokenCredential to be tested.\n */\nexport function isTokenCredential(credential: unknown): credential is TokenCredential {\n // Check for an object with a 'getToken' function and possibly with\n // a 'signRequest' function. We do this check to make sure that\n // a ServiceClientCredentials implementor (like TokenClientCredentials\n // in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if\n // it doesn't actually implement TokenCredential also.\n const castCredential = credential as {\n getToken: unknown;\n signRequest: unknown;\n };\n return (\n castCredential &&\n typeof castCredential.getToken === \"function\" &&\n (castCredential.signRequest === undefined || castCredential.getToken.length > 0)\n );\n}\n"]}
|
||||
4
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/tracing.js
generated
vendored
Normal file
4
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/tracing.js
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
export {};
|
||||
//# sourceMappingURL=tracing.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/tracing.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist-esm/src/tracing.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tracing.js","sourceRoot":"","sources":["../../src/tracing.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n// The interfaces in this file should be kept in sync with those\n// found in the `@azure/core-tracing` package.\n\n/**\n * An interface structurally compatible with OpenTelemetry.\n */\nexport interface TracingContext {\n /**\n * Get a value from the context.\n *\n * @param key - key which identifies a context value\n */\n getValue(key: symbol): unknown;\n /**\n * Create a new context which inherits from this context and has\n * the given key set to the given value.\n *\n * @param key - context key for which to set the value\n * @param value - value to set for the given key\n */\n setValue(key: symbol, value: unknown): TracingContext;\n /**\n * Return a new context which inherits from this context but does\n * not contain a value for the given key.\n *\n * @param key - context key for which to clear a value\n */\n deleteValue(key: symbol): TracingContext;\n}\n"]}
|
||||
192
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist/index.js
generated
vendored
Normal file
192
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,192 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var coreUtil = require('@azure/core-util');
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
class AzureKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key) {
|
||||
if (!key) {
|
||||
throw new Error("key must be a non-empty string");
|
||||
}
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey) {
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
function isKeyCredential(credential) {
|
||||
return coreUtil.isObjectWithProperties(credential, ["key"]) && typeof credential.key === "string";
|
||||
}
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
class AzureNamedKeyCredential {
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key() {
|
||||
return this._key;
|
||||
}
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name() {
|
||||
return this._name;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name, key) {
|
||||
if (!name || !key) {
|
||||
throw new TypeError("name and key must be non-empty strings");
|
||||
}
|
||||
this._name = name;
|
||||
this._key = key;
|
||||
}
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName, newKey) {
|
||||
if (!newName || !newKey) {
|
||||
throw new TypeError("newName and newKey must be non-empty strings");
|
||||
}
|
||||
this._name = newName;
|
||||
this._key = newKey;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
function isNamedKeyCredential(credential) {
|
||||
return (coreUtil.isObjectWithProperties(credential, ["name", "key"]) &&
|
||||
typeof credential.key === "string" &&
|
||||
typeof credential.name === "string");
|
||||
}
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
class AzureSASCredential {
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature() {
|
||||
return this._signature;
|
||||
}
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature) {
|
||||
if (!signature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = signature;
|
||||
}
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature) {
|
||||
if (!newSignature) {
|
||||
throw new Error("shared access signature must be a non-empty string");
|
||||
}
|
||||
this._signature = newSignature;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
function isSASCredential(credential) {
|
||||
return (coreUtil.isObjectWithProperties(credential, ["signature"]) && typeof credential.signature === "string");
|
||||
}
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
function isTokenCredential(credential) {
|
||||
// Check for an object with a 'getToken' function and possibly with
|
||||
// a 'signRequest' function. We do this check to make sure that
|
||||
// a ServiceClientCredentials implementor (like TokenClientCredentials
|
||||
// in ms-rest-nodeauth) doesn't get mistaken for a TokenCredential if
|
||||
// it doesn't actually implement TokenCredential also.
|
||||
const castCredential = credential;
|
||||
return (castCredential &&
|
||||
typeof castCredential.getToken === "function" &&
|
||||
(castCredential.signRequest === undefined || castCredential.getToken.length > 0));
|
||||
}
|
||||
|
||||
exports.AzureKeyCredential = AzureKeyCredential;
|
||||
exports.AzureNamedKeyCredential = AzureNamedKeyCredential;
|
||||
exports.AzureSASCredential = AzureSASCredential;
|
||||
exports.isKeyCredential = isKeyCredential;
|
||||
exports.isNamedKeyCredential = isNamedKeyCredential;
|
||||
exports.isSASCredential = isSASCredential;
|
||||
exports.isTokenCredential = isTokenCredential;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist/index.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/dist/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
21
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/LICENSE
generated
vendored
Normal file
21
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/LICENSE
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2020 Microsoft
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
110
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/README.md
generated
vendored
Normal file
110
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
# Azure Abort Controller client library for JavaScript
|
||||
|
||||
The `@azure/abort-controller` package provides `AbortController` and `AbortSignal` classes. These classes are compatible
|
||||
with the [AbortController](https://developer.mozilla.org/docs/Web/API/AbortController) built into modern browsers
|
||||
and the `AbortSignal` used by [fetch](https://developer.mozilla.org/docs/Web/API/Fetch_API).
|
||||
Use the `AbortController` class to create an instance of the `AbortSignal` class that can be used to cancel an operation
|
||||
in an Azure SDK that accept a parameter of type `AbortSignalLike`.
|
||||
|
||||
Key links:
|
||||
|
||||
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/abort-controller)
|
||||
- [Package (npm)](https://www.npmjs.com/package/@azure/abort-controller)
|
||||
- [API Reference Documentation](https://docs.microsoft.com/javascript/api/overview/azure/abort-controller-readme)
|
||||
|
||||
## Getting started
|
||||
|
||||
### Installation
|
||||
|
||||
Install this library using npm as follows
|
||||
|
||||
```
|
||||
npm install @azure/abort-controller
|
||||
```
|
||||
|
||||
## Key Concepts
|
||||
|
||||
Use the `AbortController` to create an `AbortSignal` which can then be passed to Azure SDK operations to cancel
|
||||
pending work. The `AbortSignal` can be accessed via the `signal` property on an instantiated `AbortController`.
|
||||
An `AbortSignal` can also be returned directly from a static method, e.g. `AbortController.timeout(100)`.
|
||||
that is cancelled after 100 milliseconds.
|
||||
|
||||
Calling `abort()` on the instantiated `AbortController` invokes the registered `abort`
|
||||
event listeners on the associated `AbortSignal`.
|
||||
Any subsequent calls to `abort()` on the same controller will have no effect.
|
||||
|
||||
The `AbortSignal.none` static property returns an `AbortSignal` that can not be aborted.
|
||||
|
||||
Multiple instances of an `AbortSignal` can be linked so that calling `abort()` on the parent signal,
|
||||
aborts all linked signals.
|
||||
This linkage is one-way, meaning that a parent signal can affect a linked signal, but not the other way around.
|
||||
To link `AbortSignals` together, pass in the parent signals to the `AbortController` constructor.
|
||||
|
||||
## Examples
|
||||
|
||||
The below examples assume that `doAsyncWork` is a function that takes a bag of properties, one of which is
|
||||
of the abort signal.
|
||||
|
||||
### Example 1 - basic usage
|
||||
|
||||
```js
|
||||
import { AbortController } from "@azure/abort-controller";
|
||||
|
||||
const controller = new AbortController();
|
||||
doAsyncWork({ abortSignal: controller.signal });
|
||||
|
||||
// at some point later
|
||||
controller.abort();
|
||||
```
|
||||
|
||||
### Example 2 - Aborting with timeout
|
||||
|
||||
```js
|
||||
import { AbortController } from "@azure/abort-controller";
|
||||
|
||||
const signal = AbortController.timeout(1000);
|
||||
doAsyncWork({ abortSignal: signal });
|
||||
```
|
||||
|
||||
### Example 3 - Aborting sub-tasks
|
||||
|
||||
```js
|
||||
import { AbortController } from "@azure/abort-controller";
|
||||
|
||||
const allTasksController = new AbortController();
|
||||
|
||||
const subTask1 = new AbortController(allTasksController.signal);
|
||||
const subtask2 = new AbortController(allTasksController.signal);
|
||||
|
||||
allTasksController.abort(); // aborts allTasksSignal, subTask1, subTask2
|
||||
subTask1.abort(); // aborts only subTask1
|
||||
```
|
||||
|
||||
### Example 4 - Aborting with parent signal or timeout
|
||||
|
||||
```js
|
||||
import { AbortController } from "@azure/abort-controller";
|
||||
|
||||
const allTasksController = new AbortController();
|
||||
|
||||
// create a subtask controller that can be aborted manually,
|
||||
// or when either the parent task aborts or the timeout is reached.
|
||||
const subTask = new AbortController(allTasksController.signal, AbortController.timeout(100));
|
||||
|
||||
allTasksController.abort(); // aborts allTasksSignal, subTask
|
||||
subTask.abort(); // aborts only subTask
|
||||
```
|
||||
|
||||
## Next steps
|
||||
|
||||
You can build and run the tests locally by executing `rushx test`. Explore the `test` folder to see advanced usage and behavior of the public classes.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
If you run into issues while using this library, please feel free to [file an issue](https://github.com/Azure/azure-sdk-for-js/issues/new).
|
||||
|
||||
## Contributing
|
||||
|
||||
If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
|
||||
|
||||

|
||||
27
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist-esm/src/AbortError.js
generated
vendored
Normal file
27
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist-esm/src/AbortError.js
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* This error is thrown when an asynchronous operation has been aborted.
|
||||
* Check for this error by testing the `name` that the name property of the
|
||||
* error matches `"AbortError"`.
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* const controller = new AbortController();
|
||||
* controller.abort();
|
||||
* try {
|
||||
* doAsyncWork(controller.signal)
|
||||
* } catch (e) {
|
||||
* if (e.name === 'AbortError') {
|
||||
* // handle abort error here.
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export class AbortError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "AbortError";
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=AbortError.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"AbortError.js","sourceRoot":"","sources":["../../src/AbortError.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,UAAW,SAAQ,KAAK;IACnC,YAAY,OAAgB;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC3B,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * This error is thrown when an asynchronous operation has been aborted.\n * Check for this error by testing the `name` that the name property of the\n * error matches `\"AbortError\"`.\n *\n * @example\n * ```ts\n * const controller = new AbortController();\n * controller.abort();\n * try {\n * doAsyncWork(controller.signal)\n * } catch (e) {\n * if (e.name === 'AbortError') {\n * // handle abort error here.\n * }\n * }\n * ```\n */\nexport class AbortError extends Error {\n constructor(message?: string) {\n super(message);\n this.name = \"AbortError\";\n }\n}\n"]}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
export {};
|
||||
//# sourceMappingURL=AbortSignalLike.js.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"AbortSignalLike.js","sourceRoot":"","sources":["../../src/AbortSignalLike.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * Allows the request to be aborted upon firing of the \"abort\" event.\n * Compatible with the browser built-in AbortSignal and common polyfills.\n */\nexport interface AbortSignalLike {\n /**\n * Indicates if the signal has already been aborted.\n */\n readonly aborted: boolean;\n /**\n * Add new \"abort\" event listener, only support \"abort\" event.\n */\n addEventListener(\n type: \"abort\",\n listener: (this: AbortSignalLike, ev: any) => any,\n options?: any,\n ): void;\n /**\n * Remove \"abort\" event listener, only support \"abort\" event.\n */\n removeEventListener(\n type: \"abort\",\n listener: (this: AbortSignalLike, ev: any) => any,\n options?: any,\n ): void;\n}\n"]}
|
||||
4
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist-esm/src/index.js
generated
vendored
Normal file
4
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist-esm/src/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
export { AbortError } from "./AbortError";
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist-esm/src/index.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist-esm/src/index.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport { AbortError } from \"./AbortError\";\nexport { AbortSignalLike } from \"./AbortSignalLike\";\n"]}
|
||||
33
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist/index.js
generated
vendored
Normal file
33
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
/**
|
||||
* This error is thrown when an asynchronous operation has been aborted.
|
||||
* Check for this error by testing the `name` that the name property of the
|
||||
* error matches `"AbortError"`.
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* const controller = new AbortController();
|
||||
* controller.abort();
|
||||
* try {
|
||||
* doAsyncWork(controller.signal)
|
||||
* } catch (e) {
|
||||
* if (e.name === 'AbortError') {
|
||||
* // handle abort error here.
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
class AbortError extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "AbortError";
|
||||
}
|
||||
}
|
||||
|
||||
exports.AbortError = AbortError;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist/index.js.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/dist/index.js.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sources":["../src/AbortError.ts"],"sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/**\n * This error is thrown when an asynchronous operation has been aborted.\n * Check for this error by testing the `name` that the name property of the\n * error matches `\"AbortError\"`.\n *\n * @example\n * ```ts\n * const controller = new AbortController();\n * controller.abort();\n * try {\n * doAsyncWork(controller.signal)\n * } catch (e) {\n * if (e.name === 'AbortError') {\n * // handle abort error here.\n * }\n * }\n * ```\n */\nexport class AbortError extends Error {\n constructor(message?: string) {\n super(message);\n this.name = \"AbortError\";\n }\n}\n"],"names":[],"mappings":";;;;AAAA;AACA;AAEA;;;;;;;;;;;;;;;;;AAiBG;AACG,MAAO,UAAW,SAAQ,KAAK,CAAA;AACnC,IAAA,WAAA,CAAY,OAAgB,EAAA;QAC1B,KAAK,CAAC,OAAO,CAAC,CAAC;AACf,QAAA,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;KAC1B;AACF;;;;"}
|
||||
92
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/package.json
generated
vendored
Normal file
92
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,92 @@
|
|||
{
|
||||
"name": "@azure/abort-controller",
|
||||
"sdk-type": "client",
|
||||
"version": "2.0.0",
|
||||
"description": "Microsoft Azure SDK for JavaScript - Aborter",
|
||||
"main": "./dist/index.js",
|
||||
"module": "dist-esm/src/index.js",
|
||||
"scripts": {
|
||||
"build:samples": "echo Obsolete",
|
||||
"build:test": "tsc -p . && dev-tool run bundle",
|
||||
"build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local",
|
||||
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* temp types *.tgz *.log",
|
||||
"execute:samples": "echo skipped",
|
||||
"extract-api": "tsc -p . && api-extractor run --local",
|
||||
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
||||
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
|
||||
"lint": "eslint package.json api-extractor.json src test --ext .ts",
|
||||
"pack": "npm pack 2>&1",
|
||||
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
||||
"test:node": "npm run clean && tsc -p . && npm run unit-test:node && npm run integration-test:node",
|
||||
"test": "npm run clean && tsc -p . && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
|
||||
"unit-test:browser": "karma start --single-run",
|
||||
"unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true",
|
||||
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
|
||||
},
|
||||
"types": "./types/src/index.d.ts",
|
||||
"files": [
|
||||
"dist/",
|
||||
"dist-esm/src/",
|
||||
"shims-public.d.ts",
|
||||
"types/src",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"repository": "github:Azure/azure-sdk-for-js",
|
||||
"keywords": [
|
||||
"azure",
|
||||
"aborter",
|
||||
"abortsignal",
|
||||
"cancellation",
|
||||
"node.js",
|
||||
"typescript",
|
||||
"javascript",
|
||||
"browser",
|
||||
"cloud"
|
||||
],
|
||||
"author": "Microsoft Corporation",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/abort-controller/README.md",
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"tslib": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@azure/dev-tool": "^1.0.0",
|
||||
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
||||
"@microsoft/api-extractor": "^7.31.1",
|
||||
"@types/chai": "^4.1.6",
|
||||
"@types/mocha": "^10.0.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"chai": "^4.2.0",
|
||||
"cross-env": "^7.0.2",
|
||||
"eslint": "^8.0.0",
|
||||
"karma": "^6.2.0",
|
||||
"karma-chrome-launcher": "^3.0.0",
|
||||
"karma-coverage": "^2.0.0",
|
||||
"karma-env-preprocessor": "^0.1.1",
|
||||
"karma-firefox-launcher": "^1.1.0",
|
||||
"karma-junit-reporter": "^2.0.1",
|
||||
"karma-mocha": "^2.0.1",
|
||||
"karma-mocha-reporter": "^2.2.5",
|
||||
"karma-sourcemap-loader": "^0.3.8",
|
||||
"mocha": "^10.0.0",
|
||||
"c8": "^8.0.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"ts-node": "^10.0.0",
|
||||
"typescript": "~5.2.0"
|
||||
},
|
||||
"//metadata": {
|
||||
"migrationDate": "2023-03-08T18:36:03.000Z"
|
||||
}
|
||||
}
|
||||
5
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/shims-public.d.ts
generated
vendored
Normal file
5
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/shims-public.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Copyright (c) Microsoft Corporation.
|
||||
// Licensed under the MIT license.
|
||||
|
||||
// forward declaration of Event in case DOM libs are not present.
|
||||
interface Event {}
|
||||
22
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/AbortError.d.ts
generated
vendored
Normal file
22
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/AbortError.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/**
|
||||
* This error is thrown when an asynchronous operation has been aborted.
|
||||
* Check for this error by testing the `name` that the name property of the
|
||||
* error matches `"AbortError"`.
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
* const controller = new AbortController();
|
||||
* controller.abort();
|
||||
* try {
|
||||
* doAsyncWork(controller.signal)
|
||||
* } catch (e) {
|
||||
* if (e.name === 'AbortError') {
|
||||
* // handle abort error here.
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export declare class AbortError extends Error {
|
||||
constructor(message?: string);
|
||||
}
|
||||
//# sourceMappingURL=AbortError.d.ts.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/AbortError.d.ts.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/AbortError.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"AbortError.d.ts","sourceRoot":"","sources":["../../src/AbortError.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,UAAW,SAAQ,KAAK;gBACvB,OAAO,CAAC,EAAE,MAAM;CAI7B"}
|
||||
19
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/AbortSignalLike.d.ts
generated
vendored
Normal file
19
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/AbortSignalLike.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* Allows the request to be aborted upon firing of the "abort" event.
|
||||
* Compatible with the browser built-in AbortSignal and common polyfills.
|
||||
*/
|
||||
export interface AbortSignalLike {
|
||||
/**
|
||||
* Indicates if the signal has already been aborted.
|
||||
*/
|
||||
readonly aborted: boolean;
|
||||
/**
|
||||
* Add new "abort" event listener, only support "abort" event.
|
||||
*/
|
||||
addEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any): void;
|
||||
/**
|
||||
* Remove "abort" event listener, only support "abort" event.
|
||||
*/
|
||||
removeEventListener(type: "abort", listener: (this: AbortSignalLike, ev: any) => any, options?: any): void;
|
||||
}
|
||||
//# sourceMappingURL=AbortSignalLike.d.ts.map
|
||||
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"AbortSignalLike.d.ts","sourceRoot":"","sources":["../../src/AbortSignalLike.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B;;OAEG;IACH,gBAAgB,CACd,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,GAAG,KAAK,GAAG,EACjD,OAAO,CAAC,EAAE,GAAG,GACZ,IAAI,CAAC;IACR;;OAEG;IACH,mBAAmB,CACjB,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,CAAC,IAAI,EAAE,eAAe,EAAE,EAAE,EAAE,GAAG,KAAK,GAAG,EACjD,OAAO,CAAC,EAAE,GAAG,GACZ,IAAI,CAAC;CACT"}
|
||||
3
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/index.d.ts
generated
vendored
Normal file
3
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/index.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export { AbortError } from "./AbortError";
|
||||
export { AbortSignalLike } from "./AbortSignalLike";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/index.d.ts.map
generated
vendored
Normal file
1
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/index.d.ts.map
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
||||
11
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/tsdoc-metadata.json
generated
vendored
Normal file
11
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/node_modules/@azure/abort-controller/types/src/tsdoc-metadata.json
generated
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
||||
// It should be published with your NPM package. It should not be tracked by Git.
|
||||
{
|
||||
"tsdocVersion": "0.12",
|
||||
"toolPackages": [
|
||||
{
|
||||
"packageName": "@microsoft/api-extractor",
|
||||
"packageVersion": "7.39.0"
|
||||
}
|
||||
]
|
||||
}
|
||||
79
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/package.json
generated
vendored
Normal file
79
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/package.json
generated
vendored
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
{
|
||||
"name": "@azure/core-auth",
|
||||
"version": "1.6.0",
|
||||
"description": "Provides low-level interfaces and helper methods for authentication in Azure SDK",
|
||||
"sdk-type": "client",
|
||||
"main": "dist/index.js",
|
||||
"module": "dist-esm/src/index.js",
|
||||
"types": "./types/latest/core-auth.d.ts",
|
||||
"scripts": {
|
||||
"build:samples": "echo Obsolete",
|
||||
"build:test": "tsc -p . && dev-tool run bundle",
|
||||
"build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local",
|
||||
"check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"clean": "rimraf dist dist-* temp types *.tgz *.log",
|
||||
"execute:samples": "echo skipped",
|
||||
"extract-api": "tsc -p . && api-extractor run --local",
|
||||
"format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
||||
"integration-test:browser": "echo skipped",
|
||||
"integration-test:node": "echo skipped",
|
||||
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
||||
"lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]",
|
||||
"lint": "eslint package.json api-extractor.json src test --ext .ts",
|
||||
"pack": "npm pack 2>&1",
|
||||
"test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
|
||||
"test:node": "npm run clean && tsc -p . && npm run unit-test:node && npm run integration-test:node",
|
||||
"test": "npm run clean && tsc -p . && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
|
||||
"unit-test:browser": "echo skipped",
|
||||
"unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true",
|
||||
"unit-test": "npm run unit-test:node && npm run unit-test:browser"
|
||||
},
|
||||
"files": [
|
||||
"dist/",
|
||||
"dist-esm/src/",
|
||||
"types/latest/core-auth.d.ts",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"repository": "github:Azure/azure-sdk-for-js",
|
||||
"keywords": [
|
||||
"azure",
|
||||
"authentication",
|
||||
"cloud"
|
||||
],
|
||||
"author": "Microsoft Corporation",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"homepage": "https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/core/core-auth/README.md",
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@azure/abort-controller": "^2.0.0",
|
||||
"@azure/core-util": "^1.1.0",
|
||||
"tslib": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@azure/dev-tool": "^1.0.0",
|
||||
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
|
||||
"@microsoft/api-extractor": "^7.31.1",
|
||||
"@types/chai": "^4.1.6",
|
||||
"@types/mocha": "^10.0.0",
|
||||
"@types/node": "^18.0.0",
|
||||
"chai": "^4.2.0",
|
||||
"cross-env": "^7.0.2",
|
||||
"eslint": "^8.0.0",
|
||||
"inherits": "^2.0.3",
|
||||
"mocha": "^10.0.0",
|
||||
"rimraf": "^3.0.0",
|
||||
"typescript": "~5.3.3",
|
||||
"util": "^0.12.1",
|
||||
"ts-node": "^10.0.0"
|
||||
},
|
||||
"//metadata": {
|
||||
"migrationDate": "2023-03-08T18:36:03.000Z"
|
||||
}
|
||||
}
|
||||
254
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/types/latest/core-auth.d.ts
generated
vendored
Normal file
254
dawidd6/action-download-artifact-v3/node_modules/@azure/core-auth/types/latest/core-auth.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,254 @@
|
|||
import { AbortSignalLike } from '@azure/abort-controller';
|
||||
|
||||
/**
|
||||
* Represents an access token with an expiration time.
|
||||
*/
|
||||
export declare interface AccessToken {
|
||||
/**
|
||||
* The access token returned by the authentication service.
|
||||
*/
|
||||
token: string;
|
||||
/**
|
||||
* The access token's expiration timestamp in milliseconds, UNIX epoch time.
|
||||
*/
|
||||
expiresOnTimestamp: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* A static-key-based credential that supports updating
|
||||
* the underlying key value.
|
||||
*/
|
||||
export declare class AzureKeyCredential implements KeyCredential {
|
||||
private _key;
|
||||
/**
|
||||
* The value of the key to be used in authentication
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* Create an instance of an AzureKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param key - The initial value of the key to use in authentication
|
||||
*/
|
||||
constructor(key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newKey - The new key value to be used
|
||||
*/
|
||||
update(newKey: string): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* A static name/key-based credential that supports updating
|
||||
* the underlying name and key values.
|
||||
*/
|
||||
export declare class AzureNamedKeyCredential implements NamedKeyCredential {
|
||||
private _key;
|
||||
private _name;
|
||||
/**
|
||||
* The value of the key to be used in authentication.
|
||||
*/
|
||||
get key(): string;
|
||||
/**
|
||||
* The value of the name to be used in authentication.
|
||||
*/
|
||||
get name(): string;
|
||||
/**
|
||||
* Create an instance of an AzureNamedKeyCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param name - The initial value of the name to use in authentication.
|
||||
* @param key - The initial value of the key to use in authentication.
|
||||
*/
|
||||
constructor(name: string, key: string);
|
||||
/**
|
||||
* Change the value of the key.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the key value.
|
||||
*
|
||||
* @param newName - The new name value to be used.
|
||||
* @param newKey - The new key value to be used.
|
||||
*/
|
||||
update(newName: string, newKey: string): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* A static-signature-based credential that supports updating
|
||||
* the underlying signature value.
|
||||
*/
|
||||
export declare class AzureSASCredential implements SASCredential {
|
||||
private _signature;
|
||||
/**
|
||||
* The value of the shared access signature to be used in authentication
|
||||
*/
|
||||
get signature(): string;
|
||||
/**
|
||||
* Create an instance of an AzureSASCredential for use
|
||||
* with a service client.
|
||||
*
|
||||
* @param signature - The initial value of the shared access signature to use in authentication
|
||||
*/
|
||||
constructor(signature: string);
|
||||
/**
|
||||
* Change the value of the signature.
|
||||
*
|
||||
* Updates will take effect upon the next request after
|
||||
* updating the signature value.
|
||||
*
|
||||
* @param newSignature - The new shared access signature value to be used
|
||||
*/
|
||||
update(newSignature: string): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines options for TokenCredential.getToken.
|
||||
*/
|
||||
export declare interface GetTokenOptions {
|
||||
/**
|
||||
* The signal which can be used to abort requests.
|
||||
*/
|
||||
abortSignal?: AbortSignalLike;
|
||||
/**
|
||||
* Options used when creating and sending HTTP requests for this operation.
|
||||
*/
|
||||
requestOptions?: {
|
||||
/**
|
||||
* The number of milliseconds a request can take before automatically being terminated.
|
||||
*/
|
||||
timeout?: number;
|
||||
};
|
||||
/**
|
||||
* Options used when tracing is enabled.
|
||||
*/
|
||||
tracingOptions?: {
|
||||
/**
|
||||
* Tracing Context for the current request.
|
||||
*/
|
||||
tracingContext?: TracingContext;
|
||||
};
|
||||
/**
|
||||
* Claim details to perform the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
claims?: string;
|
||||
/**
|
||||
* Indicates whether to enable the Continuous Access Evaluation authentication flow
|
||||
*/
|
||||
enableCae?: boolean;
|
||||
/**
|
||||
* Allows specifying a tenantId. Useful to handle challenges that provide tenant Id hints.
|
||||
*/
|
||||
tenantId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests an object to determine whether it implements KeyCredential.
|
||||
*
|
||||
* @param credential - The assumed KeyCredential to be tested.
|
||||
*/
|
||||
export declare function isKeyCredential(credential: unknown): credential is KeyCredential;
|
||||
|
||||
/**
|
||||
* Tests an object to determine whether it implements NamedKeyCredential.
|
||||
*
|
||||
* @param credential - The assumed NamedKeyCredential to be tested.
|
||||
*/
|
||||
export declare function isNamedKeyCredential(credential: unknown): credential is NamedKeyCredential;
|
||||
|
||||
/**
|
||||
* Tests an object to determine whether it implements SASCredential.
|
||||
*
|
||||
* @param credential - The assumed SASCredential to be tested.
|
||||
*/
|
||||
export declare function isSASCredential(credential: unknown): credential is SASCredential;
|
||||
|
||||
/**
|
||||
* Tests an object to determine whether it implements TokenCredential.
|
||||
*
|
||||
* @param credential - The assumed TokenCredential to be tested.
|
||||
*/
|
||||
export declare function isTokenCredential(credential: unknown): credential is TokenCredential;
|
||||
|
||||
/**
|
||||
* Represents a credential defined by a static API key.
|
||||
*/
|
||||
export declare interface KeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a credential defined by a static API name and key.
|
||||
*/
|
||||
export declare interface NamedKeyCredential {
|
||||
/**
|
||||
* The value of the API key represented as a string
|
||||
*/
|
||||
readonly key: string;
|
||||
/**
|
||||
* The value of the API name represented as a string.
|
||||
*/
|
||||
readonly name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a credential defined by a static shared access signature.
|
||||
*/
|
||||
export declare interface SASCredential {
|
||||
/**
|
||||
* The value of the shared access signature represented as a string
|
||||
*/
|
||||
readonly signature: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a credential capable of providing an authentication token.
|
||||
*/
|
||||
export declare interface TokenCredential {
|
||||
/**
|
||||
* Gets the token provided by this credential.
|
||||
*
|
||||
* This method is called automatically by Azure SDK client libraries. You may call this method
|
||||
* directly, but you must also handle token caching and token refreshing.
|
||||
*
|
||||
* @param scopes - The list of scopes for which the token will have access.
|
||||
* @param options - The options used to configure any requests this
|
||||
* TokenCredential implementation might make.
|
||||
*/
|
||||
getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken | null>;
|
||||
}
|
||||
|
||||
/**
|
||||
* An interface structurally compatible with OpenTelemetry.
|
||||
*/
|
||||
export declare interface TracingContext {
|
||||
/**
|
||||
* Get a value from the context.
|
||||
*
|
||||
* @param key - key which identifies a context value
|
||||
*/
|
||||
getValue(key: symbol): unknown;
|
||||
/**
|
||||
* Create a new context which inherits from this context and has
|
||||
* the given key set to the given value.
|
||||
*
|
||||
* @param key - context key for which to set the value
|
||||
* @param value - value to set for the given key
|
||||
*/
|
||||
setValue(key: symbol, value: unknown): TracingContext;
|
||||
/**
|
||||
* Return a new context which inherits from this context but does
|
||||
* not contain a value for the given key.
|
||||
*
|
||||
* @param key - context key for which to clear a value
|
||||
*/
|
||||
deleteValue(key: symbol): TracingContext;
|
||||
}
|
||||
|
||||
export { }
|
||||
Loading…
Add table
Add a link
Reference in a new issue