@azure/identity 3.1.2 → 3.1.3-alpha.20221213.2

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.

Potentially problematic release.


This version of @azure/identity might be problematic. Click here for more details.

package/dist/index.js CHANGED
@@ -256,7 +256,7 @@ function credentialLogger(title, log = logger$l) {
256
256
  /**
257
257
  * Current version of the `@azure/identity` package.
258
258
  */
259
- const SDK_VERSION = `3.1.2`;
259
+ const SDK_VERSION = `3.1.3`;
260
260
  /**
261
261
  * The default client ID for authentication
262
262
  * @internal
@@ -2202,7 +2202,7 @@ class ManagedIdentityCredential {
2202
2202
  const appTokenParameters = {
2203
2203
  correlationId: this.identityClient.getCorrelationId(),
2204
2204
  tenantId: (options === null || options === void 0 ? void 0 : options.tenantId) || "organizations",
2205
- scopes: [...scopes],
2205
+ scopes: Array.isArray(scopes) ? scopes : [scopes],
2206
2206
  claims: options === null || options === void 0 ? void 0 : options.claims,
2207
2207
  };
2208
2208
  this.confidentialApp.SetAppTokenProvider(async (appTokenProviderParameters = appTokenParameters) => {
@@ -2714,10 +2714,6 @@ class ChainedTokenCredential {
2714
2714
  * ```
2715
2715
  */
2716
2716
  constructor(...sources) {
2717
- /**
2718
- * The message to use when the chained token fails to get a token
2719
- */
2720
- this.UnavailableMessage = "ChainedTokenCredential => failed to retrieve a token from the included credentials";
2721
2717
  this._sources = [];
2722
2718
  this._sources = sources;
2723
2719
  }
@@ -3243,8 +3239,6 @@ const defaultCredentials = [
3243
3239
  class DefaultAzureCredential extends ChainedTokenCredential {
3244
3240
  constructor(options) {
3245
3241
  super(...defaultCredentials.map((ctor) => new ctor(options)));
3246
- this.UnavailableMessage =
3247
- "DefaultAzureCredential => failed to retrieve a token from the included credentials. To troubleshoot, visit https://aka.ms/azsdk/js/identity/defaultazurecredential/troubleshoot.";
3248
3242
  }
3249
3243
  }
3250
3244