@azure/msal-common 14.12.1-alpha.1 → 14.12.1-alpha.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.
Files changed (76) hide show
  1. package/dist/account/AccountInfo.mjs +1 -1
  2. package/dist/account/AuthToken.mjs +1 -1
  3. package/dist/account/CcsCredential.mjs +1 -1
  4. package/dist/account/ClientInfo.mjs +1 -1
  5. package/dist/account/TokenClaims.mjs +1 -1
  6. package/dist/authority/Authority.mjs +1 -1
  7. package/dist/authority/AuthorityFactory.mjs +1 -1
  8. package/dist/authority/AuthorityMetadata.mjs +1 -1
  9. package/dist/authority/AuthorityOptions.mjs +1 -1
  10. package/dist/authority/AuthorityType.mjs +1 -1
  11. package/dist/authority/CloudInstanceDiscoveryErrorResponse.mjs +1 -1
  12. package/dist/authority/CloudInstanceDiscoveryResponse.mjs +1 -1
  13. package/dist/authority/OpenIdConfigResponse.mjs +1 -1
  14. package/dist/authority/ProtocolMode.mjs +1 -1
  15. package/dist/authority/RegionDiscovery.mjs +1 -1
  16. package/dist/cache/CacheManager.mjs +1 -1
  17. package/dist/cache/entities/AccountEntity.mjs +1 -1
  18. package/dist/cache/persistence/TokenCacheContext.mjs +1 -1
  19. package/dist/cache/utils/CacheHelpers.mjs +1 -1
  20. package/dist/client/AuthorizationCodeClient.mjs +1 -1
  21. package/dist/client/BaseClient.mjs +1 -1
  22. package/dist/client/RefreshTokenClient.mjs +1 -1
  23. package/dist/client/SilentFlowClient.mjs +1 -1
  24. package/dist/config/ClientConfiguration.mjs +1 -1
  25. package/dist/constants/AADServerParamKeys.mjs +1 -1
  26. package/dist/crypto/ICrypto.mjs +1 -1
  27. package/dist/crypto/JoseHeader.mjs +1 -1
  28. package/dist/crypto/PopTokenGenerator.mjs +1 -1
  29. package/dist/error/AuthError.mjs +1 -1
  30. package/dist/error/AuthErrorCodes.mjs +1 -1
  31. package/dist/error/CacheError.mjs +1 -1
  32. package/dist/error/CacheErrorCodes.mjs +1 -1
  33. package/dist/error/ClientAuthError.mjs +1 -1
  34. package/dist/error/ClientAuthErrorCodes.mjs +1 -1
  35. package/dist/error/ClientConfigurationError.mjs +1 -1
  36. package/dist/error/ClientConfigurationErrorCodes.mjs +1 -1
  37. package/dist/error/InteractionRequiredAuthError.mjs +1 -1
  38. package/dist/error/InteractionRequiredAuthErrorCodes.mjs +1 -1
  39. package/dist/error/JoseHeaderError.mjs +1 -1
  40. package/dist/error/JoseHeaderErrorCodes.mjs +1 -1
  41. package/dist/error/ServerError.d.ts +5 -1
  42. package/dist/error/ServerError.d.ts.map +1 -1
  43. package/dist/error/ServerError.mjs +3 -2
  44. package/dist/error/ServerError.mjs.map +1 -1
  45. package/dist/index.cjs +5 -4
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.mjs +1 -1
  48. package/dist/logger/Logger.mjs +1 -1
  49. package/dist/network/INetworkModule.mjs +1 -1
  50. package/dist/network/NetworkManager.mjs +1 -1
  51. package/dist/network/ThrottlingUtils.mjs +1 -1
  52. package/dist/packageMetadata.d.ts +1 -1
  53. package/dist/packageMetadata.mjs +2 -2
  54. package/dist/request/AuthenticationHeaderParser.mjs +1 -1
  55. package/dist/request/RequestParameterBuilder.mjs +1 -1
  56. package/dist/request/RequestValidator.mjs +1 -1
  57. package/dist/request/ScopeSet.mjs +1 -1
  58. package/dist/response/ResponseHandler.d.ts.map +1 -1
  59. package/dist/response/ResponseHandler.mjs +2 -2
  60. package/dist/response/ResponseHandler.mjs.map +1 -1
  61. package/dist/telemetry/performance/PerformanceClient.mjs +1 -1
  62. package/dist/telemetry/performance/PerformanceEvent.mjs +1 -1
  63. package/dist/telemetry/performance/StubPerformanceClient.mjs +1 -1
  64. package/dist/telemetry/server/ServerTelemetryManager.mjs +1 -1
  65. package/dist/url/UrlString.mjs +1 -1
  66. package/dist/utils/ClientAssertionUtils.mjs +1 -1
  67. package/dist/utils/Constants.mjs +1 -1
  68. package/dist/utils/FunctionWrappers.mjs +1 -1
  69. package/dist/utils/ProtocolUtils.mjs +1 -1
  70. package/dist/utils/StringUtils.mjs +1 -1
  71. package/dist/utils/TimeUtils.mjs +1 -1
  72. package/dist/utils/UrlUtils.mjs +1 -1
  73. package/package.json +1 -1
  74. package/src/error/ServerError.ts +8 -1
  75. package/src/packageMetadata.ts +1 -1
  76. package/src/response/ResponseHandler.ts +2 -1
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
4
4
  import { tokenParsingError, nullOrEmptyToken, maxAgeTranspired } from '../error/ClientAuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
4
4
  import { Separators, Constants } from '../utils/Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { AuthorityType } from './AuthorityType.mjs';
4
4
  import { isOpenIdConfigResponse } from './OpenIdConfigResponse.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { Authority, formatAuthorityUri } from './Authority.mjs';
4
4
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { UrlString } from '../url/UrlString.mjs';
4
4
  import { AuthorityMetadataSource } from '../utils/Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { Constants, ResponseCodes, RegionDiscoverySources } from '../utils/Constants.mjs';
4
4
  import { PerformanceEvents } from '../telemetry/performance/PerformanceEvent.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { Separators, CredentialType, AuthenticationScheme, THE_FAMILY_ID, APP_METADATA, AUTHORITY_METADATA_CONSTANTS } from '../utils/Constants.mjs';
4
4
  import { generateCredentialKey } from './utils/CacheHelpers.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { Separators, CacheAccountType } from '../../utils/Constants.mjs';
4
4
  import { buildClientInfo } from '../../account/ClientInfo.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { extractTokenClaims } from '../../account/AuthToken.mjs';
4
4
  import { createClientAuthError } from '../../error/ClientAuthError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { BaseClient } from './BaseClient.mjs';
4
4
  import { RequestParameterBuilder } from '../request/RequestParameterBuilder.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { buildClientConfiguration } from '../config/ClientConfiguration.mjs';
4
4
  import { NetworkManager } from '../network/NetworkManager.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { isOidcProtocolMode } from '../config/ClientConfiguration.mjs';
4
4
  import { BaseClient } from './BaseClient.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { BaseClient } from './BaseClient.mjs';
4
4
  import { wasClockTurnedBack, isTokenExpired } from '../utils/TimeUtils.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { DEFAULT_CRYPTO_IMPLEMENTATION } from '../crypto/ICrypto.mjs';
4
4
  import { Logger, LogLevel } from '../logger/Logger.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { createClientAuthError } from '../error/ClientAuthError.mjs';
4
4
  import { methodNotImplemented } from '../error/ClientAuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { createJoseHeaderError } from '../error/JoseHeaderError.mjs';
4
4
  import { JsonWebTokenTypes } from '../utils/Constants.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { nowSeconds } from '../utils/TimeUtils.mjs';
4
4
  import { UrlString } from '../url/UrlString.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { Constants } from '../utils/Constants.mjs';
4
4
  import { unexpectedError, postRequestFailed } from './AuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { cacheUnknownErrorCode, cacheQuotaExceededErrorCode } from './CacheErrorCodes.mjs';
4
4
  import * as CacheErrorCodes from './CacheErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { AuthError } from './AuthError.mjs';
4
4
  import { clientInfoDecodingError, clientInfoEmptyError, tokenParsingError, nullOrEmptyToken, endpointResolutionError, networkError, openIdConfigError, hashNotDeserialized, invalidState, stateMismatch, stateNotFound, nonceMismatch, authTimeNotFound, maxAgeTranspired, multipleMatchingTokens, multipleMatchingAccounts, multipleMatchingAppMetadata, requestCannotBeMade, cannotRemoveEmptyScope, cannotAppendScopeSet, emptyInputScopeSet, deviceCodePollingCancelled, deviceCodeExpired, deviceCodeUnknownError, noAccountInSilentRequest, invalidCacheRecord, invalidCacheEnvironment, noAccountFound, noCryptoObject, unexpectedCredentialType, invalidAssertion, invalidClientCredential, tokenRefreshRequired, userTimeoutReached, tokenClaimsCnfRequiredForSignedJwt, authorizationCodeMissingFromServerResponse, bindingKeyNotRemoved, endSessionEndpointNotSupported, keyIdMissing, noNetworkConnectivity, userCanceled, missingTenantIdError, nestedAppAuthBridgeDisabled, methodNotImplemented } from './ClientAuthErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { AuthError } from './AuthError.mjs';
4
4
  import { redirectUriEmpty, claimsRequestParsingError, authorityUriInsecure, urlParseError, urlEmptyError, emptyInputScopesError, invalidPromptValue, invalidClaims, tokenRequestEmpty, logoutRequestEmpty, invalidCodeChallengeMethod, pkceParamsMissing, invalidCloudDiscoveryMetadata, invalidAuthorityMetadata, untrustedAuthority, missingSshJwk, missingSshKid, missingNonceAuthenticationHeader, invalidAuthenticationHeader, cannotSetOIDCOptions, cannotAllowNativeBroker, authorityMismatch } from './ClientConfigurationErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { Constants } from '../utils/Constants.mjs';
4
4
  import { AuthError } from './AuthError.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { AuthError } from './AuthError.mjs';
4
4
  import { missingKidError, missingAlgError } from './JoseHeaderErrorCodes.mjs';
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  /*
4
4
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -7,6 +7,10 @@ export declare class ServerError extends AuthError {
7
7
  * Server error number;
8
8
  */
9
9
  readonly errorNo?: string;
10
- constructor(errorCode?: string, errorMessage?: string, subError?: string, errorNo?: string);
10
+ /**
11
+ * Http status number;
12
+ */
13
+ readonly status?: number;
14
+ constructor(errorCode?: string, errorMessage?: string, subError?: string, errorNo?: string, status?: number);
11
15
  }
12
16
  //# sourceMappingURL=ServerError.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/error/ServerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;gBAGtB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM;CAQvB"}
1
+ {"version":3,"file":"ServerError.d.ts","sourceRoot":"","sources":["../../src/error/ServerError.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;GAEG;AACH,qBAAa,WAAY,SAAQ,SAAS;IACtC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;gBAGrB,SAAS,CAAC,EAAE,MAAM,EAClB,YAAY,CAAC,EAAE,MAAM,EACrB,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM;CAStB"}
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  import { AuthError } from './AuthError.mjs';
4
4
 
@@ -10,10 +10,11 @@ import { AuthError } from './AuthError.mjs';
10
10
  * Error thrown when there is an error with the server code, for example, unavailability.
11
11
  */
12
12
  class ServerError extends AuthError {
13
- constructor(errorCode, errorMessage, subError, errorNo) {
13
+ constructor(errorCode, errorMessage, subError, errorNo, status) {
14
14
  super(errorCode, errorMessage, subError);
15
15
  this.name = "ServerError";
16
16
  this.errorNo = errorNo;
17
+ this.status = status;
17
18
  Object.setPrototypeOf(this, ServerError.prototype);
18
19
  }
19
20
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ServerError.mjs","sources":["../../src/error/ServerError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;AAEG;AACG,MAAO,WAAY,SAAQ,SAAS,CAAA;AAMtC,IAAA,WAAA,CACI,SAAkB,EAClB,YAAqB,EACrB,QAAiB,EACjB,OAAgB,EAAA;AAEhB,QAAA,KAAK,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AACzC,QAAA,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;AAC1B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;KACtD;AACJ;;;;"}
1
+ {"version":3,"file":"ServerError.mjs","sources":["../../src/error/ServerError.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;AAIH;;AAEG;AACG,MAAO,WAAY,SAAQ,SAAS,CAAA;IAWtC,WACI,CAAA,SAAkB,EAClB,YAAqB,EACrB,QAAiB,EACjB,OAAgB,EAChB,MAAe,EAAA;AAEf,QAAA,KAAK,CAAC,SAAS,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;AACzC,QAAA,IAAI,CAAC,IAAI,GAAG,aAAa,CAAC;AAC1B,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;AACvB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QAErB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;KACtD;AACJ;;;;"}
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! @azure/msal-common v14.12.1-alpha.1 2024-06-19 */
1
+ /*! @azure/msal-common v14.12.1-alpha.2 2024-06-25 */
2
2
  'use strict';
3
3
  'use strict';
4
4
 
@@ -3826,7 +3826,7 @@ class Logger {
3826
3826
 
3827
3827
  /* eslint-disable header/header */
3828
3828
  const name = "@azure/msal-common";
3829
- const version = "14.12.1-alpha.1";
3829
+ const version = "14.12.1-alpha.2";
3830
3830
 
3831
3831
  /*
3832
3832
  * Copyright (c) Microsoft Corporation. All rights reserved.
@@ -5786,10 +5786,11 @@ function isOidcProtocolMode(config) {
5786
5786
  * Error thrown when there is an error with the server code, for example, unavailability.
5787
5787
  */
5788
5788
  class ServerError extends AuthError {
5789
- constructor(errorCode, errorMessage, subError, errorNo) {
5789
+ constructor(errorCode, errorMessage, subError, errorNo, status) {
5790
5790
  super(errorCode, errorMessage, subError);
5791
5791
  this.name = "ServerError";
5792
5792
  this.errorNo = errorNo;
5793
+ this.status = status;
5793
5794
  Object.setPrototypeOf(this, ServerError.prototype);
5794
5795
  }
5795
5796
  }
@@ -6851,7 +6852,7 @@ class ResponseHandler {
6851
6852
  const serverErrorNo = serverResponse.error_codes?.length
6852
6853
  ? serverResponse.error_codes[0]
6853
6854
  : undefined;
6854
- const serverError = new ServerError(serverResponse.error, errString, serverResponse.suberror, serverErrorNo);
6855
+ const serverError = new ServerError(serverResponse.error, errString, serverResponse.suberror, serverErrorNo, serverResponse.status);
6855
6856
  // check if 500 error
6856
6857
  if (refreshAccessToken &&
6857
6858
  serverResponse.status &&