@azure/identity 4.1.0-alpha.20240126.4 → 4.1.0-alpha.20240131.3

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
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var msalCommon = require('@azure/msal-node');
6
6
  var logger$q = require('@azure/logger');
7
- var abortController = require('@azure/abort-controller');
8
7
  var coreUtil = require('@azure/core-util');
8
+ var abortController = require('@azure/abort-controller');
9
9
  var coreClient = require('@azure/core-client');
10
10
  var coreRestPipeline = require('@azure/core-rest-pipeline');
11
11
  var coreTracing = require('@azure/core-tracing');
@@ -404,6 +404,16 @@ function getMSALLogLevel(logLevel) {
404
404
  return msalCommon__namespace.LogLevel.Info;
405
405
  }
406
406
  }
407
+ /**
408
+ * Wraps core-util's randomUUID in order to allow for mocking in tests.
409
+ * This prepares the library for the upcoming core-util update to ESM.
410
+ *
411
+ * @internal
412
+ * @returns A string containing a random UUID
413
+ */
414
+ function randomUUID() {
415
+ return coreUtil.randomUUID();
416
+ }
407
417
  /**
408
418
  * Handles MSAL errors.
409
419
  */
@@ -1299,7 +1309,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
1299
1309
  const tenantId = processMultiTenantRequest(this.tenantId, options, this.additionallyAllowedTenantIds) ||
1300
1310
  this.tenantId;
1301
1311
  options.authority = getAuthority(tenantId, this.authorityHost);
1302
- options.correlationId = (options === null || options === void 0 ? void 0 : options.correlationId) || coreUtil.randomUUID();
1312
+ options.correlationId = (options === null || options === void 0 ? void 0 : options.correlationId) || randomUUID();
1303
1313
  await this.init(options);
1304
1314
  try {
1305
1315
  // MSAL now caches tokens based on their claims,