@azure/msal-common 9.1.0 → 9.1.1

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.
Files changed (74) hide show
  1. package/dist/_virtual/_tslib.js +1 -1
  2. package/dist/account/AuthToken.js +1 -1
  3. package/dist/account/CcsCredential.js +1 -1
  4. package/dist/account/ClientInfo.js +1 -1
  5. package/dist/authority/Authority.js +1 -1
  6. package/dist/authority/AuthorityFactory.js +1 -1
  7. package/dist/authority/AuthorityMetadata.js +1 -1
  8. package/dist/authority/AuthorityOptions.js +1 -1
  9. package/dist/authority/AuthorityType.js +1 -1
  10. package/dist/authority/CloudInstanceDiscoveryErrorResponse.js +1 -1
  11. package/dist/authority/CloudInstanceDiscoveryResponse.js +1 -1
  12. package/dist/authority/OpenIdConfigResponse.js +1 -1
  13. package/dist/authority/ProtocolMode.js +1 -1
  14. package/dist/authority/RegionDiscovery.js +1 -1
  15. package/dist/cache/CacheManager.js +1 -1
  16. package/dist/cache/entities/AccessTokenEntity.js +1 -1
  17. package/dist/cache/entities/AccountEntity.js +1 -1
  18. package/dist/cache/entities/AppMetadataEntity.js +1 -1
  19. package/dist/cache/entities/AuthorityMetadataEntity.js +1 -1
  20. package/dist/cache/entities/CacheRecord.js +1 -1
  21. package/dist/cache/entities/CredentialEntity.js +1 -1
  22. package/dist/cache/entities/IdTokenEntity.js +1 -1
  23. package/dist/cache/entities/RefreshTokenEntity.js +1 -1
  24. package/dist/cache/entities/ServerTelemetryEntity.js +1 -1
  25. package/dist/cache/entities/ThrottlingEntity.js +1 -1
  26. package/dist/cache/persistence/TokenCacheContext.js +1 -1
  27. package/dist/client/AuthorizationCodeClient.js +1 -1
  28. package/dist/client/BaseClient.js +1 -1
  29. package/dist/client/ClientCredentialClient.js +1 -1
  30. package/dist/client/DeviceCodeClient.js +1 -1
  31. package/dist/client/OnBehalfOfClient.js +1 -1
  32. package/dist/client/RefreshTokenClient.js +1 -1
  33. package/dist/client/SilentFlowClient.js +1 -1
  34. package/dist/client/UsernamePasswordClient.js +1 -1
  35. package/dist/config/ClientConfiguration.js +1 -1
  36. package/dist/crypto/ICrypto.js +1 -1
  37. package/dist/crypto/JoseHeader.js +1 -1
  38. package/dist/crypto/PopTokenGenerator.js +1 -1
  39. package/dist/error/AuthError.js +1 -1
  40. package/dist/error/ClientAuthError.js +1 -1
  41. package/dist/error/ClientConfigurationError.js +1 -1
  42. package/dist/error/InteractionRequiredAuthError.js +1 -1
  43. package/dist/error/JoseHeaderError.js +1 -1
  44. package/dist/error/ServerError.js +1 -1
  45. package/dist/index.cjs.js +16 -6
  46. package/dist/index.cjs.js.map +1 -1
  47. package/dist/index.js +1 -1
  48. package/dist/logger/Logger.js +1 -1
  49. package/dist/network/INetworkModule.js +1 -1
  50. package/dist/network/NetworkManager.js +1 -1
  51. package/dist/network/ThrottlingUtils.js +1 -1
  52. package/dist/packageMetadata.d.ts +1 -1
  53. package/dist/packageMetadata.js +2 -2
  54. package/dist/packageMetadata.js.map +1 -1
  55. package/dist/request/AuthenticationHeaderParser.js +1 -1
  56. package/dist/request/RequestParameterBuilder.js +1 -1
  57. package/dist/request/RequestValidator.js +1 -1
  58. package/dist/request/ScopeSet.js +1 -1
  59. package/dist/response/ResponseHandler.js +1 -1
  60. package/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -1
  61. package/dist/telemetry/performance/PerformanceClient.js +15 -5
  62. package/dist/telemetry/performance/PerformanceClient.js.map +1 -1
  63. package/dist/telemetry/performance/PerformanceEvent.d.ts +4 -0
  64. package/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -1
  65. package/dist/telemetry/performance/PerformanceEvent.js +1 -1
  66. package/dist/telemetry/performance/PerformanceEvent.js.map +1 -1
  67. package/dist/telemetry/performance/StubPerformanceClient.js +1 -1
  68. package/dist/telemetry/server/ServerTelemetryManager.js +1 -1
  69. package/dist/url/UrlString.js +1 -1
  70. package/dist/utils/Constants.js +1 -1
  71. package/dist/utils/ProtocolUtils.js +1 -1
  72. package/dist/utils/StringUtils.js +1 -1
  73. package/dist/utils/TimeUtils.js +1 -1
  74. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*! *****************************************************************************
4
4
  Copyright (c) Microsoft Corporation.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { ClientAuthError } from '../error/ClientAuthError.js';
4
4
  import { StringUtils } from '../utils/StringUtils.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { ClientAuthError } from '../error/ClientAuthError.js';
4
4
  import { StringUtils } from '../utils/StringUtils.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';
4
4
  import { AuthorityType } from './AuthorityType.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { Authority } from './Authority.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { RegionDiscoverySources, ResponseCodes, Constants } from '../utils/Constants.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator, __extends } from '../_virtual/_tslib.js';
4
4
  import { Constants, CredentialType, AuthenticationScheme, CacheSchemaType, THE_FAMILY_ID, APP_METADATA, AUTHORITY_METADATA_CONSTANTS } from '../utils/Constants.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../../_virtual/_tslib.js';
4
4
  import { CredentialEntity } from './CredentialEntity.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { Separators, CacheAccountType, CacheType, Constants } from '../../utils/Constants.js';
4
4
  import { buildClientInfo } from '../../account/ClientInfo.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { Separators, APP_METADATA } from '../../utils/Constants.js';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { AUTHORITY_METADATA_CONSTANTS } from '../../utils/Constants.js';
4
4
  import { TimeUtils } from '../../utils/TimeUtils.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { CredentialType, CacheType, Constants, Separators, AuthenticationScheme } from '../../utils/Constants.js';
4
4
  import { ClientAuthError } from '../../error/ClientAuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../../_virtual/_tslib.js';
4
4
  import { CredentialEntity } from './CredentialEntity.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../../_virtual/_tslib.js';
4
4
  import { CredentialEntity } from './CredentialEntity.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { SERVER_TELEM_CONSTANTS } from '../../utils/Constants.js';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { ThrottlingConstants } from '../../utils/Constants.js';
4
4
 
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends, __awaiter, __generator, __assign, __spreadArrays } from '../_virtual/_tslib.js';
4
4
  import { BaseClient } from './BaseClient.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { buildClientConfiguration } from '../config/ClientConfiguration.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { BaseClient } from './BaseClient.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { BaseClient } from './BaseClient.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { BaseClient } from './BaseClient.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends, __awaiter, __generator, __assign } from '../_virtual/_tslib.js';
4
4
  import { BaseClient } from './BaseClient.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { BaseClient } from './BaseClient.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends, __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { BaseClient } from './BaseClient.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __assign, __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { DEFAULT_CRYPTO_IMPLEMENTATION } from '../crypto/ICrypto.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from '../error/AuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { JoseHeaderError } from '../error/JoseHeaderError.js';
4
4
  import { JsonTypes } from '../utils/Constants.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __awaiter, __generator, __assign } from '../_virtual/_tslib.js';
4
4
  import { TimeUtils } from '../utils/TimeUtils.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { Constants } from '../utils/Constants.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from './AuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { ClientAuthError } from './ClientAuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from './AuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from './AuthError.js';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  import { __extends } from '../_virtual/_tslib.js';
4
4
  import { AuthError } from './AuthError.js';
package/dist/index.cjs.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v9.1.0 2023-01-18 */
1
+ /*! @azure/msal-common v9.1.1 2023-01-19 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -1422,7 +1422,7 @@ var Logger = /** @class */ (function () {
1422
1422
 
1423
1423
  /* eslint-disable header/header */
1424
1424
  var name = "@azure/msal-common";
1425
- var version = "9.1.0";
1425
+ var version = "9.1.1";
1426
1426
 
1427
1427
  /*
1428
1428
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -8419,9 +8419,19 @@ var PerformanceClient = /** @class */ (function () {
8419
8419
  if (!correlationId) {
8420
8420
  this.logger.info("PerformanceClient: No correlation id provided for " + measureName + ", generating", eventCorrelationId);
8421
8421
  }
8422
+ // Duplicate code to address spelling error will be removed at the next major version bump.
8422
8423
  this.logger.trace("PerformanceClient: Performance measurement started for " + measureName, eventCorrelationId);
8423
- var performanceMeasurement = this.startPerformanceMeasuremeant(measureName, eventCorrelationId);
8424
- performanceMeasurement.startMeasurement();
8424
+ var validMeasurement;
8425
+ var performanceMeasuremeant = this.startPerformanceMeasuremeant(measureName, eventCorrelationId);
8426
+ if (performanceMeasuremeant.startMeasurement) {
8427
+ performanceMeasuremeant.startMeasurement();
8428
+ validMeasurement = performanceMeasuremeant;
8429
+ }
8430
+ else {
8431
+ var performanceMeasurement = this.startPerformanceMeasurement(measureName, eventCorrelationId);
8432
+ performanceMeasurement.startMeasurement();
8433
+ validMeasurement = performanceMeasurement;
8434
+ }
8425
8435
  var inProgressEvent = {
8426
8436
  eventId: this.generateId(),
8427
8437
  status: exports.PerformanceEventStatus.InProgress,
@@ -8440,7 +8450,7 @@ var PerformanceClient = /** @class */ (function () {
8440
8450
  appVersion: (_b = this.applicationTelemetry) === null || _b === void 0 ? void 0 : _b.appVersion,
8441
8451
  };
8442
8452
  this.addStaticFields(staticFields, eventCorrelationId);
8443
- this.cacheMeasurement(inProgressEvent, performanceMeasurement);
8453
+ this.cacheMeasurement(inProgressEvent, validMeasurement);
8444
8454
  // Return the event and functions the caller can use to properly end/flush the measurement
8445
8455
  return {
8446
8456
  endMeasurement: function (event) {
@@ -8463,7 +8473,7 @@ var PerformanceClient = /** @class */ (function () {
8463
8473
  increment: function (counters) {
8464
8474
  return _this.increment(counters, inProgressEvent.correlationId);
8465
8475
  },
8466
- measurement: performanceMeasurement,
8476
+ measurement: validMeasurement,
8467
8477
  event: inProgressEvent
8468
8478
  };
8469
8479
  };