@azure/msal-browser 3.0.0-alpha.0 → 3.0.0-alpha.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.
- package/dist/app/IPublicClientApplication.js +1 -1
- package/dist/app/PublicClientApplication.js +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +1 -1
- package/dist/cache/AsyncMemoryStorage.js +1 -1
- package/dist/cache/BrowserCacheManager.js +1 -1
- package/dist/cache/BrowserStorage.js +1 -1
- package/dist/cache/CryptoKeyStore.js +1 -1
- package/dist/cache/DatabaseStorage.js +1 -1
- package/dist/cache/MemoryStorage.js +1 -1
- package/dist/cache/TokenCache.js +1 -1
- package/dist/config/Configuration.js +1 -1
- package/dist/controllers/ControllerFactory.js +1 -1
- package/dist/controllers/StandardController.js +1 -1
- package/dist/crypto/BrowserCrypto.js +1 -1
- package/dist/crypto/CryptoOps.js +1 -1
- package/dist/crypto/GuidGenerator.js +1 -1
- package/dist/crypto/ModernBrowserCrypto.js +1 -1
- package/dist/crypto/MsBrowserCrypto.js +1 -1
- package/dist/crypto/MsrBrowserCrypto.js +1 -1
- package/dist/crypto/PkceGenerator.js +1 -1
- package/dist/crypto/SignedHttpRequest.js +1 -1
- package/dist/encode/Base64Decode.js +1 -1
- package/dist/encode/Base64Encode.js +1 -1
- package/dist/error/BrowserAuthError.js +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +1 -1
- package/dist/error/NativeAuthError.js +1 -1
- package/dist/event/EventHandler.js +1 -1
- package/dist/event/EventMessage.js +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +1 -1
- package/dist/interaction_client/PopupClient.js +1 -1
- package/dist/interaction_client/RedirectClient.js +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +1 -1
- package/dist/interaction_client/SilentCacheClient.js +1 -1
- package/dist/interaction_client/SilentIframeClient.js +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +1 -1
- package/dist/interaction_handler/InteractionHandler.js +1 -1
- package/dist/interaction_handler/RedirectHandler.js +1 -1
- package/dist/interaction_handler/SilentHandler.js +1 -1
- package/dist/internals.js +1 -1
- package/dist/navigation/NavigationClient.js +1 -1
- package/dist/network/FetchClient.js +1 -1
- package/dist/network/XhrClient.js +1 -1
- package/dist/operatingcontext/BaseOperatingContext.js +1 -1
- package/dist/operatingcontext/StandardOperatingContext.js +1 -1
- package/dist/operatingcontext/TeamsAppOperatingContext.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/telemetry/BrowserPerformanceClient.js +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +1 -1
- package/dist/utils/BrowserConstants.js +1 -1
- package/dist/utils/BrowserProtocolUtils.js +1 -1
- package/dist/utils/BrowserStringUtils.js +1 -1
- package/dist/utils/BrowserUtils.js +1 -1
- package/dist/utils/MathUtils.js +1 -1
- package/package.json +5 -8
- package/node_modules/@azure/msal-common/LICENSE +0 -21
- package/node_modules/@azure/msal-common/README.md +0 -62
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts +0 -32
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts +0 -21
- package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/AuthToken.js +0 -56
- package/node_modules/@azure/msal-common/dist/account/AuthToken.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts +0 -9
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.js +0 -14
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts +0 -15
- package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.js +0 -46
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +0 -9
- package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts +0 -66
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +0 -216
- package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/Authority.js +0 -688
- package/node_modules/@azure/msal-common/dist/authority/Authority.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +0 -31
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js +0 -58
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +0 -623
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js +0 -881
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +0 -19
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js +0 -24
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts +0 -10
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js +0 -19
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts +0 -2
- package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js +0 -13
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +0 -10
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +0 -13
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +0 -12
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +0 -15
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts +0 -8
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js +0 -17
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +0 -31
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js +0 -116
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +0 -7
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +0 -16
- package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +0 -444
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.js +0 -1024
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +0 -57
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +0 -123
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +0 -100
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js +0 -259
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +0 -40
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +0 -73
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +0 -48
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +0 -85
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js +0 -18
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +0 -89
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js +0 -144
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +0 -35
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +0 -64
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +0 -37
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +0 -67
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +0 -13
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +0 -34
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +0 -30
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +0 -166
- package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +0 -5
- package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +0 -24
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +0 -30
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +0 -63
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +0 -72
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js +0 -453
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +0 -51
- package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/BaseClient.js +0 -107
- package/node_modules/@azure/msal-common/dist/client/BaseClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +0 -35
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js +0 -260
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts +0 -25
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js +0 -108
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts +0 -39
- package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts +0 -134
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js +0 -101
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts +0 -63
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js +0 -49
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +0 -5
- package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts +0 -22
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js +0 -44
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +0 -58
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js +0 -92
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +0 -12
- package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts +0 -48
- package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/AuthError.js +0 -58
- package/node_modules/@azure/msal-common/dist/error/AuthError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts +0 -413
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js +0 -526
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +0 -199
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js +0 -256
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +0 -60
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +0 -86
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts +0 -29
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js +0 -46
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts +0 -8
- package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/error/ServerError.js +0 -21
- package/node_modules/@azure/msal-common/dist/error/ServerError.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/index.cjs.js +0 -8975
- package/node_modules/@azure/msal-common/dist/index.cjs.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/index.d.ts +0 -94
- package/node_modules/@azure/msal-common/dist/index.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/index.js +0 -54
- package/node_modules/@azure/msal-common/dist/index.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts +0 -96
- package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/logger/Logger.js +0 -205
- package/node_modules/@azure/msal-common/dist/logger/Logger.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts +0 -30
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.js +0 -21
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts +0 -33
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.js +0 -42
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts +0 -17
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +0 -42
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js +0 -102
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts +0 -3
- package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/packageMetadata.js +0 -8
- package/node_modules/@azure/msal-common/dist/packageMetadata.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +0 -63
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +0 -38
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +0 -28
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +0 -51
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +0 -18
- package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +0 -22
- package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +0 -22
- package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +0 -19
- package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +0 -18
- package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +0 -217
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js +0 -385
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts +0 -34
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.js +0 -92
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts +0 -89
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.js +0 -207
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts +0 -40
- package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +0 -14
- package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +0 -26
- package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +0 -16
- package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +0 -5
- package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +0 -73
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js +0 -325
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +0 -26
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +0 -45
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +0 -43
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +0 -6
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +0 -190
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +0 -413
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +0 -440
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +0 -232
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +0 -20
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +0 -43
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +0 -66
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +0 -206
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +0 -9
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/url/IUri.d.ts +0 -13
- package/node_modules/@azure/msal-common/dist/url/IUri.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts +0 -71
- package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/url/UrlString.js +0 -252
- package/node_modules/@azure/msal-common/dist/url/UrlString.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts +0 -332
- package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/Constants.js +0 -378
- package/node_modules/@azure/msal-common/dist/utils/Constants.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts +0 -7
- package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +0 -43
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js +0 -80
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts +0 -54
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.js +0 -131
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.js.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts +0 -28
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +0 -1
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js +0 -50
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js.map +0 -1
- package/node_modules/@azure/msal-common/package.json +0 -79
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
-
'use strict';
|
|
3
|
-
import { ClientAuthError } from '../error/ClientAuthError.js';
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
-
* Licensed under the MIT License.
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @hidden
|
|
11
|
-
*/
|
|
12
|
-
class StringUtils {
|
|
13
|
-
/**
|
|
14
|
-
* decode a JWT
|
|
15
|
-
*
|
|
16
|
-
* @param authToken
|
|
17
|
-
*/
|
|
18
|
-
static decodeAuthToken(authToken) {
|
|
19
|
-
if (StringUtils.isEmpty(authToken)) {
|
|
20
|
-
throw ClientAuthError.createTokenNullOrEmptyError(authToken);
|
|
21
|
-
}
|
|
22
|
-
const tokenPartsRegex = /^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/;
|
|
23
|
-
const matches = tokenPartsRegex.exec(authToken);
|
|
24
|
-
if (!matches || matches.length < 4) {
|
|
25
|
-
throw ClientAuthError.createTokenParsingError(`Given token is malformed: ${JSON.stringify(authToken)}`);
|
|
26
|
-
}
|
|
27
|
-
const crackedToken = {
|
|
28
|
-
header: matches[1],
|
|
29
|
-
JWSPayload: matches[2],
|
|
30
|
-
JWSSig: matches[3],
|
|
31
|
-
};
|
|
32
|
-
return crackedToken;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Check if a string is empty.
|
|
36
|
-
*
|
|
37
|
-
* @param str
|
|
38
|
-
*/
|
|
39
|
-
static isEmpty(str) {
|
|
40
|
-
return typeof str === "undefined" || !str || 0 === str.length;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Check if stringified object is empty
|
|
44
|
-
* @param strObj
|
|
45
|
-
*/
|
|
46
|
-
static isEmptyObj(strObj) {
|
|
47
|
-
if (strObj && !StringUtils.isEmpty(strObj)) {
|
|
48
|
-
try {
|
|
49
|
-
const obj = JSON.parse(strObj);
|
|
50
|
-
return Object.keys(obj).length === 0;
|
|
51
|
-
}
|
|
52
|
-
catch (e) { }
|
|
53
|
-
}
|
|
54
|
-
return true;
|
|
55
|
-
}
|
|
56
|
-
static startsWith(str, search) {
|
|
57
|
-
return str.indexOf(search) === 0;
|
|
58
|
-
}
|
|
59
|
-
static endsWith(str, search) {
|
|
60
|
-
return (str.length >= search.length &&
|
|
61
|
-
str.lastIndexOf(search) === str.length - search.length);
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Parses string into an object.
|
|
65
|
-
*
|
|
66
|
-
* @param query
|
|
67
|
-
*/
|
|
68
|
-
static queryStringToObject(query) {
|
|
69
|
-
const obj = {};
|
|
70
|
-
const params = query.split("&");
|
|
71
|
-
const decode = (s) => decodeURIComponent(s.replace(/\+/g, " "));
|
|
72
|
-
params.forEach((pair) => {
|
|
73
|
-
if (pair.trim()) {
|
|
74
|
-
const [key, value] = pair.split(/=(.+)/g, 2); // Split on the first occurence of the '=' character
|
|
75
|
-
if (key && value) {
|
|
76
|
-
obj[decode(key)] = decode(value);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
return obj;
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Trims entries in an array.
|
|
84
|
-
*
|
|
85
|
-
* @param arr
|
|
86
|
-
*/
|
|
87
|
-
static trimArrayEntries(arr) {
|
|
88
|
-
return arr.map((entry) => entry.trim());
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Removes empty strings from array
|
|
92
|
-
* @param arr
|
|
93
|
-
*/
|
|
94
|
-
static removeEmptyStringsFromArray(arr) {
|
|
95
|
-
return arr.filter((entry) => {
|
|
96
|
-
return !StringUtils.isEmpty(entry);
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Attempts to parse a string into JSON
|
|
101
|
-
* @param str
|
|
102
|
-
*/
|
|
103
|
-
static jsonParseHelper(str) {
|
|
104
|
-
try {
|
|
105
|
-
return JSON.parse(str);
|
|
106
|
-
}
|
|
107
|
-
catch (e) {
|
|
108
|
-
return null;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Tests if a given string matches a given pattern, with support for wildcards and queries.
|
|
113
|
-
* @param pattern Wildcard pattern to string match. Supports "*" for wildcards and "?" for queries
|
|
114
|
-
* @param input String to match against
|
|
115
|
-
*/
|
|
116
|
-
static matchPattern(pattern, input) {
|
|
117
|
-
/**
|
|
118
|
-
* Wildcard support: https://stackoverflow.com/a/3117248/4888559
|
|
119
|
-
* Queries: replaces "?" in string with escaped "\?" for regex test
|
|
120
|
-
*/
|
|
121
|
-
// eslint-disable-next-line security/detect-non-literal-regexp
|
|
122
|
-
const regex = new RegExp(pattern
|
|
123
|
-
.replace(/\\/g, "\\\\")
|
|
124
|
-
.replace(/\*/g, "[^ ]*")
|
|
125
|
-
.replace(/\?/g, "\\?"));
|
|
126
|
-
return regex.test(input);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export { StringUtils };
|
|
131
|
-
//# sourceMappingURL=StringUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StringUtils.js","sources":["../../src/utils/StringUtils.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility class which exposes functions for managing date and time operations.
|
|
3
|
-
*/
|
|
4
|
-
export declare class TimeUtils {
|
|
5
|
-
/**
|
|
6
|
-
* return the current time in Unix time (seconds).
|
|
7
|
-
*/
|
|
8
|
-
static nowSeconds(): number;
|
|
9
|
-
/**
|
|
10
|
-
* check if a token is expired based on given UTC time in seconds.
|
|
11
|
-
* @param expiresOn
|
|
12
|
-
*/
|
|
13
|
-
static isTokenExpired(expiresOn: string, offset: number): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* If the current time is earlier than the time that a token was cached at, we must discard the token
|
|
16
|
-
* i.e. The system clock was turned back after acquiring the cached token
|
|
17
|
-
* @param cachedAt
|
|
18
|
-
* @param offset
|
|
19
|
-
*/
|
|
20
|
-
static wasClockTurnedBack(cachedAt: string): boolean;
|
|
21
|
-
/**
|
|
22
|
-
* Waits for t number of milliseconds
|
|
23
|
-
* @param t number
|
|
24
|
-
* @param value T
|
|
25
|
-
*/
|
|
26
|
-
static delay<T>(t: number, value?: T): Promise<T | void>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=TimeUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/TimeUtils.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,qBAAa,SAAS;IAClB;;OAEG;IACH,MAAM,CAAC,UAAU,IAAI,MAAM;IAK3B;;;OAGG;IACH,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;IASjE;;;;;OAKG;IACH,MAAM,CAAC,kBAAkB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO;IAMpD;;;;OAIG;IACH,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC;CAG3D"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
-
'use strict';
|
|
3
|
-
/*
|
|
4
|
-
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
5
|
-
* Licensed under the MIT License.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Utility class which exposes functions for managing date and time operations.
|
|
9
|
-
*/
|
|
10
|
-
class TimeUtils {
|
|
11
|
-
/**
|
|
12
|
-
* return the current time in Unix time (seconds).
|
|
13
|
-
*/
|
|
14
|
-
static nowSeconds() {
|
|
15
|
-
// Date.getTime() returns in milliseconds.
|
|
16
|
-
return Math.round(new Date().getTime() / 1000.0);
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* check if a token is expired based on given UTC time in seconds.
|
|
20
|
-
* @param expiresOn
|
|
21
|
-
*/
|
|
22
|
-
static isTokenExpired(expiresOn, offset) {
|
|
23
|
-
// check for access token expiry
|
|
24
|
-
const expirationSec = Number(expiresOn) || 0;
|
|
25
|
-
const offsetCurrentTimeSec = TimeUtils.nowSeconds() + offset;
|
|
26
|
-
// If current time + offset is greater than token expiration time, then token is expired.
|
|
27
|
-
return offsetCurrentTimeSec > expirationSec;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* If the current time is earlier than the time that a token was cached at, we must discard the token
|
|
31
|
-
* i.e. The system clock was turned back after acquiring the cached token
|
|
32
|
-
* @param cachedAt
|
|
33
|
-
* @param offset
|
|
34
|
-
*/
|
|
35
|
-
static wasClockTurnedBack(cachedAt) {
|
|
36
|
-
const cachedAtSec = Number(cachedAt);
|
|
37
|
-
return cachedAtSec > TimeUtils.nowSeconds();
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Waits for t number of milliseconds
|
|
41
|
-
* @param t number
|
|
42
|
-
* @param value T
|
|
43
|
-
*/
|
|
44
|
-
static delay(t, value) {
|
|
45
|
-
return new Promise((resolve) => setTimeout(() => resolve(value), t));
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export { TimeUtils };
|
|
50
|
-
//# sourceMappingURL=TimeUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TimeUtils.js","sources":["../../src/utils/TimeUtils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;AAGG;AAEH;;AAEG;MACU,SAAS,CAAA;AAClB;;AAEG;AACH,IAAA,OAAO,UAAU,GAAA;;AAEb,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,MAAM,CAAC,CAAC;KACpD;AAED;;;AAGG;AACH,IAAA,OAAO,cAAc,CAAC,SAAiB,EAAE,MAAc,EAAA;;QAEnD,MAAM,aAAa,GAAG,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QAC7C,MAAM,oBAAoB,GAAG,SAAS,CAAC,UAAU,EAAE,GAAG,MAAM,CAAC;;QAG7D,OAAO,oBAAoB,GAAG,aAAa,CAAC;KAC/C;AAED;;;;;AAKG;IACH,OAAO,kBAAkB,CAAC,QAAgB,EAAA;AACtC,QAAA,MAAM,WAAW,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;AAErC,QAAA,OAAO,WAAW,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KAC/C;AAED;;;;AAIG;AACH,IAAA,OAAO,KAAK,CAAI,CAAS,EAAE,KAAS,EAAA;QAChC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,KAAK,UAAU,CAAC,MAAM,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;KACxE;AACJ;;;;"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@azure/msal-common",
|
|
3
|
-
"author": {
|
|
4
|
-
"name": "Microsoft",
|
|
5
|
-
"email": "nugetaad@microsoft.com",
|
|
6
|
-
"url": "https://www.microsoft.com"
|
|
7
|
-
},
|
|
8
|
-
"license": "MIT",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/AzureAD/microsoft-authentication-library-for-js.git"
|
|
12
|
-
},
|
|
13
|
-
"version": "14.0.0",
|
|
14
|
-
"description": "Microsoft Authentication Library for js",
|
|
15
|
-
"keywords": [
|
|
16
|
-
"implicit",
|
|
17
|
-
"authorization code",
|
|
18
|
-
"PKCE",
|
|
19
|
-
"js",
|
|
20
|
-
"AAD",
|
|
21
|
-
"msal",
|
|
22
|
-
"oauth"
|
|
23
|
-
],
|
|
24
|
-
"sideEffects": false,
|
|
25
|
-
"main": "./dist/index.cjs.js",
|
|
26
|
-
"module": "./dist/index.js",
|
|
27
|
-
"types": "./dist/index.d.ts",
|
|
28
|
-
"engines": {
|
|
29
|
-
"node": ">=0.8.0"
|
|
30
|
-
},
|
|
31
|
-
"directories": {
|
|
32
|
-
"test": "test"
|
|
33
|
-
},
|
|
34
|
-
"files": [
|
|
35
|
-
"dist"
|
|
36
|
-
],
|
|
37
|
-
"scripts": {
|
|
38
|
-
"clean": "shx rm -rf dist lib",
|
|
39
|
-
"clean:coverage": "rimraf ../../.nyc_output/*",
|
|
40
|
-
"lint": "cd ../../ && npm run lint:common",
|
|
41
|
-
"lint:fix": "npm run lint -- -- --fix",
|
|
42
|
-
"test": "jest",
|
|
43
|
-
"test:coverage": "jest --coverage",
|
|
44
|
-
"test:coverage:only": "npm run clean:coverage && npm run test:coverage",
|
|
45
|
-
"build:modules": "rollup -c --strictDeprecations --bundleConfigAsCjs",
|
|
46
|
-
"build:modules:watch": "rollup -cw --bundleConfigAsCjs",
|
|
47
|
-
"build": "npm run clean && npm run build:modules",
|
|
48
|
-
"build:all": "npm run build",
|
|
49
|
-
"prepack": "npm run build",
|
|
50
|
-
"metadata:check": "npx ts-node scripts/metadata.ts",
|
|
51
|
-
"format:check": "npx prettier --ignore-path .gitignore --check src test",
|
|
52
|
-
"format:fix": "npx prettier --ignore-path .gitignore --write src test"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@babel/core": "^7.7.2",
|
|
56
|
-
"@babel/plugin-proposal-class-properties": "^7.7.0",
|
|
57
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
|
|
58
|
-
"@babel/preset-env": "^7.7.1",
|
|
59
|
-
"@babel/preset-typescript": "^7.7.2",
|
|
60
|
-
"@rollup/plugin-typescript": "^11.0.0",
|
|
61
|
-
"@types/debug": "^4.1.5",
|
|
62
|
-
"@types/jest": "^27.0.0",
|
|
63
|
-
"@types/lodash": "^4.14.182",
|
|
64
|
-
"@types/sinon": "^7.5.0",
|
|
65
|
-
"husky": "^3.0.9",
|
|
66
|
-
"jest": "^27.0.4",
|
|
67
|
-
"lodash": "^4.17.21",
|
|
68
|
-
"prettier": "2.8.7",
|
|
69
|
-
"rimraf": "^3.0.2",
|
|
70
|
-
"rollup": "^3.14.0",
|
|
71
|
-
"shx": "^0.3.2",
|
|
72
|
-
"sinon": "^7.5.0",
|
|
73
|
-
"ts-jest": "^27.1.5",
|
|
74
|
-
"tslib": "^1.10.0",
|
|
75
|
-
"tslint": "^5.20.0",
|
|
76
|
-
"typescript": "^4.9.5",
|
|
77
|
-
"yargs": "^17.5.1"
|
|
78
|
-
}
|
|
79
|
-
}
|