@azure/msal-browser 2.36.0 → 3.0.0-alpha.0
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/LICENSE +21 -21
- package/README.md +213 -213
- package/dist/app/IPublicClientApplication.d.ts.map +1 -1
- package/dist/app/IPublicClientApplication.js +33 -33
- package/dist/app/IPublicClientApplication.js.map +1 -1
- package/dist/app/PublicClientApplication.d.ts +198 -24
- package/dist/app/PublicClientApplication.d.ts.map +1 -1
- package/dist/app/PublicClientApplication.js +263 -220
- package/dist/app/PublicClientApplication.js.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts +5 -4
- package/dist/broker/nativeBroker/NativeMessageHandler.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeMessageHandler.js +118 -124
- package/dist/broker/nativeBroker/NativeMessageHandler.js.map +1 -1
- package/dist/broker/nativeBroker/NativeRequest.d.ts +4 -4
- package/dist/broker/nativeBroker/NativeRequest.d.ts.map +1 -1
- package/dist/broker/nativeBroker/NativeResponse.d.ts +4 -4
- package/dist/broker/nativeBroker/NativeResponse.d.ts.map +1 -1
- package/dist/cache/AsyncMemoryStorage.d.ts.map +1 -1
- package/dist/cache/AsyncMemoryStorage.js +83 -152
- package/dist/cache/AsyncMemoryStorage.js.map +1 -1
- package/dist/cache/BrowserCacheManager.d.ts.map +1 -1
- package/dist/cache/BrowserCacheManager.js +420 -412
- package/dist/cache/BrowserCacheManager.js.map +1 -1
- package/dist/cache/BrowserStorage.d.ts.map +1 -1
- package/dist/cache/BrowserStorage.js +19 -19
- package/dist/cache/BrowserStorage.js.map +1 -1
- package/dist/cache/CryptoKeyStore.d.ts.map +1 -1
- package/dist/cache/CryptoKeyStore.js +26 -36
- package/dist/cache/CryptoKeyStore.js.map +1 -1
- package/dist/cache/DatabaseStorage.d.ts.map +1 -1
- package/dist/cache/DatabaseStorage.js +127 -191
- package/dist/cache/DatabaseStorage.js.map +1 -1
- package/dist/cache/ITokenCache.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.d.ts.map +1 -1
- package/dist/cache/MemoryStorage.js +18 -19
- package/dist/cache/MemoryStorage.js.map +1 -1
- package/dist/cache/TokenCache.d.ts +1 -1
- package/dist/cache/TokenCache.d.ts.map +1 -1
- package/dist/cache/TokenCache.js +55 -49
- package/dist/cache/TokenCache.js.map +1 -1
- package/dist/config/Configuration.d.ts +8 -8
- package/dist/config/Configuration.d.ts.map +1 -1
- package/dist/config/Configuration.js +53 -31
- package/dist/config/Configuration.js.map +1 -1
- package/dist/controllers/ControllerFactory.d.ts +10 -0
- package/dist/controllers/ControllerFactory.d.ts.map +1 -0
- package/dist/controllers/ControllerFactory.js +47 -0
- package/dist/controllers/ControllerFactory.js.map +1 -0
- package/dist/controllers/IController.d.ts +67 -0
- package/dist/controllers/IController.d.ts.map +1 -0
- package/dist/{app/ClientApplication.d.ts → controllers/StandardController.d.ts} +96 -15
- package/dist/controllers/StandardController.d.ts.map +1 -0
- package/dist/controllers/StandardController.js +1299 -0
- package/dist/controllers/StandardController.js.map +1 -0
- package/dist/crypto/BrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/BrowserCrypto.js +36 -60
- package/dist/crypto/BrowserCrypto.js.map +1 -1
- package/dist/crypto/CryptoOps.d.ts +1 -1
- package/dist/crypto/CryptoOps.d.ts.map +1 -1
- package/dist/crypto/CryptoOps.js +93 -151
- package/dist/crypto/CryptoOps.js.map +1 -1
- package/dist/crypto/GuidGenerator.d.ts.map +1 -1
- package/dist/crypto/GuidGenerator.js +36 -25
- package/dist/crypto/GuidGenerator.js.map +1 -1
- package/dist/crypto/ISubtleCrypto.d.ts.map +1 -1
- package/dist/crypto/ModernBrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/ModernBrowserCrypto.js +20 -44
- package/dist/crypto/ModernBrowserCrypto.js.map +1 -1
- package/dist/crypto/MsBrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/MsBrowserCrypto.js +65 -89
- package/dist/crypto/MsBrowserCrypto.js.map +1 -1
- package/dist/crypto/MsrBrowserCrypto.d.ts.map +1 -1
- package/dist/crypto/MsrBrowserCrypto.js +23 -47
- package/dist/crypto/MsrBrowserCrypto.js.map +1 -1
- package/dist/crypto/PkceGenerator.d.ts.map +1 -1
- package/dist/crypto/PkceGenerator.js +28 -49
- package/dist/crypto/PkceGenerator.js.map +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts +1 -1
- package/dist/crypto/SignedHttpRequest.d.ts.map +1 -1
- package/dist/crypto/SignedHttpRequest.js +15 -37
- package/dist/crypto/SignedHttpRequest.js.map +1 -1
- package/dist/encode/Base64Decode.d.ts.map +1 -1
- package/dist/encode/Base64Decode.js +32 -33
- package/dist/encode/Base64Decode.js.map +1 -1
- package/dist/encode/Base64Encode.d.ts.map +1 -1
- package/dist/encode/Base64Encode.js +34 -35
- package/dist/encode/Base64Encode.js.map +1 -1
- package/dist/error/BrowserAuthError.d.ts +1 -1
- package/dist/error/BrowserAuthError.d.ts.map +1 -1
- package/dist/error/BrowserAuthError.js +161 -163
- package/dist/error/BrowserAuthError.js.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.d.ts.map +1 -1
- package/dist/error/BrowserConfigurationAuthError.js +32 -36
- package/dist/error/BrowserConfigurationAuthError.js.map +1 -1
- package/dist/error/NativeAuthError.d.ts +1 -1
- package/dist/error/NativeAuthError.d.ts.map +1 -1
- package/dist/error/NativeAuthError.js +26 -27
- package/dist/error/NativeAuthError.js.map +1 -1
- package/dist/event/EventHandler.d.ts.map +1 -1
- package/dist/event/EventHandler.js +33 -33
- package/dist/event/EventHandler.js.map +1 -1
- package/dist/event/EventMessage.d.ts +5 -5
- package/dist/event/EventMessage.d.ts.map +1 -1
- package/dist/event/EventMessage.js +18 -14
- package/dist/event/EventMessage.js.map +1 -1
- package/dist/event/EventType.js +1 -1
- package/dist/event/EventType.js.map +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/interaction_client/BaseInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/BaseInteractionClient.js +92 -123
- package/dist/interaction_client/BaseInteractionClient.js.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js +6 -10
- package/dist/interaction_client/HybridSpaAuthorizationCodeClient.js.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/NativeInteractionClient.js +336 -393
- package/dist/interaction_client/NativeInteractionClient.js.map +1 -1
- package/dist/interaction_client/PopupClient.d.ts +1 -1
- package/dist/interaction_client/PopupClient.d.ts.map +1 -1
- package/dist/interaction_client/PopupClient.js +224 -246
- package/dist/interaction_client/PopupClient.js.map +1 -1
- package/dist/interaction_client/RedirectClient.d.ts.map +1 -1
- package/dist/interaction_client/RedirectClient.js +244 -292
- package/dist/interaction_client/RedirectClient.js.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentAuthCodeClient.js +50 -63
- package/dist/interaction_client/SilentAuthCodeClient.js.map +1 -1
- package/dist/interaction_client/SilentCacheClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentCacheClient.js +50 -81
- package/dist/interaction_client/SilentCacheClient.js.map +1 -1
- package/dist/interaction_client/SilentIframeClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentIframeClient.js +107 -125
- package/dist/interaction_client/SilentIframeClient.js.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.d.ts.map +1 -1
- package/dist/interaction_client/SilentRefreshClient.js +44 -72
- package/dist/interaction_client/SilentRefreshClient.js.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.d.ts.map +1 -1
- package/dist/interaction_client/StandardInteractionClient.js +144 -180
- package/dist/interaction_client/StandardInteractionClient.js.map +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts +1 -1
- package/dist/interaction_handler/InteractionHandler.d.ts.map +1 -1
- package/dist/interaction_handler/InteractionHandler.js +84 -110
- package/dist/interaction_handler/InteractionHandler.js.map +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts +1 -1
- package/dist/interaction_handler/RedirectHandler.d.ts.map +1 -1
- package/dist/interaction_handler/RedirectHandler.js +105 -122
- package/dist/interaction_handler/RedirectHandler.js.map +1 -1
- package/dist/interaction_handler/SilentHandler.d.ts.map +1 -1
- package/dist/interaction_handler/SilentHandler.js +76 -65
- package/dist/interaction_handler/SilentHandler.js.map +1 -1
- package/dist/internals.js +1 -1
- package/dist/internals.js.map +1 -1
- package/dist/navigation/NavigationClient.d.ts.map +1 -1
- package/dist/navigation/NavigationClient.js +11 -14
- package/dist/navigation/NavigationClient.js.map +1 -1
- package/dist/navigation/NavigationOptions.d.ts +1 -1
- package/dist/navigation/NavigationOptions.d.ts.map +1 -1
- package/dist/network/FetchClient.d.ts.map +1 -1
- package/dist/network/FetchClient.js +66 -96
- package/dist/network/FetchClient.js.map +1 -1
- package/dist/network/XhrClient.d.ts.map +1 -1
- package/dist/network/XhrClient.js +38 -51
- package/dist/network/XhrClient.js.map +1 -1
- package/dist/operatingcontext/BaseOperatingContext.d.ts +41 -0
- package/dist/operatingcontext/BaseOperatingContext.d.ts.map +1 -0
- package/dist/operatingcontext/BaseOperatingContext.js +53 -0
- package/dist/operatingcontext/BaseOperatingContext.js.map +1 -0
- package/dist/operatingcontext/StandardOperatingContext.d.ts +26 -0
- package/dist/operatingcontext/StandardOperatingContext.d.ts.map +1 -0
- package/dist/operatingcontext/StandardOperatingContext.js +50 -0
- package/dist/operatingcontext/StandardOperatingContext.js.map +1 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts +26 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.d.ts.map +1 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.js +49 -0
- package/dist/operatingcontext/TeamsAppOperatingContext.js.map +1 -0
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.d.ts.map +1 -1
- package/dist/packageMetadata.js +3 -3
- package/dist/packageMetadata.js.map +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts +1 -1
- package/dist/request/AuthorizationCodeRequest.d.ts.map +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts +1 -1
- package/dist/request/AuthorizationUrlRequest.d.ts.map +1 -1
- package/dist/request/EndSessionPopupRequest.d.ts +1 -1
- package/dist/request/EndSessionPopupRequest.d.ts.map +1 -1
- package/dist/request/EndSessionRequest.d.ts +1 -1
- package/dist/request/EndSessionRequest.d.ts.map +1 -1
- package/dist/request/PopupRequest.d.ts +1 -1
- package/dist/request/PopupRequest.d.ts.map +1 -1
- package/dist/request/PopupWindowAttributes.d.ts +3 -3
- package/dist/request/PopupWindowAttributes.d.ts.map +1 -1
- package/dist/request/RedirectRequest.d.ts +1 -1
- package/dist/request/RedirectRequest.d.ts.map +1 -1
- package/dist/request/SilentRequest.d.ts +1 -1
- package/dist/request/SilentRequest.d.ts.map +1 -1
- package/dist/request/SsoSilentRequest.d.ts +1 -1
- package/dist/request/SsoSilentRequest.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts +1 -1
- package/dist/telemetry/BrowserPerformanceClient.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceClient.js +62 -57
- package/dist/telemetry/BrowserPerformanceClient.js.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.d.ts.map +1 -1
- package/dist/telemetry/BrowserPerformanceMeasurement.js +30 -31
- package/dist/telemetry/BrowserPerformanceMeasurement.js.map +1 -1
- package/dist/utils/BrowserConstants.d.ts.map +1 -1
- package/dist/utils/BrowserConstants.js +10 -10
- package/dist/utils/BrowserConstants.js.map +1 -1
- package/dist/utils/BrowserProtocolUtils.d.ts +1 -1
- package/dist/utils/BrowserProtocolUtils.d.ts.map +1 -1
- package/dist/utils/BrowserProtocolUtils.js +9 -12
- package/dist/utils/BrowserProtocolUtils.js.map +1 -1
- package/dist/utils/BrowserStringUtils.d.ts.map +1 -1
- package/dist/utils/BrowserStringUtils.js +83 -49
- package/dist/utils/BrowserStringUtils.js.map +1 -1
- package/dist/utils/BrowserUtils.d.ts.map +1 -1
- package/dist/utils/BrowserUtils.js +51 -49
- package/dist/utils/BrowserUtils.js.map +1 -1
- package/dist/utils/MathUtils.d.ts.map +1 -1
- package/dist/utils/MathUtils.js +6 -9
- package/dist/utils/MathUtils.js.map +1 -1
- package/node_modules/@azure/msal-common/LICENSE +21 -0
- package/node_modules/@azure/msal-common/README.md +62 -0
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts +32 -0
- package/node_modules/@azure/msal-common/dist/account/AccountInfo.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts +21 -0
- package/node_modules/@azure/msal-common/dist/account/AuthToken.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/AuthToken.js +56 -0
- package/node_modules/@azure/msal-common/dist/account/AuthToken.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts +9 -0
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.js +14 -0
- package/node_modules/@azure/msal-common/dist/account/CcsCredential.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts +15 -0
- package/node_modules/@azure/msal-common/dist/account/ClientCredentials.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.js +46 -0
- package/node_modules/@azure/msal-common/dist/account/ClientInfo.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts +9 -0
- package/node_modules/@azure/msal-common/dist/account/DecodedAuthToken.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts +66 -0
- package/node_modules/@azure/msal-common/dist/account/TokenClaims.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts +216 -0
- package/node_modules/@azure/msal-common/dist/authority/Authority.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/Authority.js +688 -0
- package/node_modules/@azure/msal-common/dist/authority/Authority.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts +31 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js +58 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityFactory.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts +623 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js +881 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityMetadata.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts +19 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js +24 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityOptions.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts +10 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js +19 -0
- package/node_modules/@azure/msal-common/dist/authority/AuthorityType.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts +2 -0
- package/node_modules/@azure/msal-common/dist/authority/AzureRegion.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/authority/AzureRegionConfiguration.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudDiscoveryMetadata.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js +13 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryErrorResponse.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts +10 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js +13 -0
- package/node_modules/@azure/msal-common/dist/authority/CloudInstanceDiscoveryResponse.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/authority/ImdsOptions.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts +12 -0
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js +15 -0
- package/node_modules/@azure/msal-common/dist/authority/OpenIdConfigResponse.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts +8 -0
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js +17 -0
- package/node_modules/@azure/msal-common/dist/authority/ProtocolMode.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts +31 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js +116 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscovery.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts +7 -0
- package/node_modules/@azure/msal-common/dist/authority/RegionDiscoveryMetadata.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts +16 -0
- package/node_modules/@azure/msal-common/dist/broker/nativeBroker/INativeBrokerPlugin.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts +444 -0
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.js +1024 -0
- package/node_modules/@azure/msal-common/dist/cache/CacheManager.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts +57 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js +123 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccessTokenEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts +100 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js +259 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AccountEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts +40 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js +73 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AppMetadataEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts +48 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js +85 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/AuthorityMetadataEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js +18 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CacheRecord.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts +89 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js +144 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/CredentialEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts +35 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js +64 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/IdTokenEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts +37 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js +67 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/RefreshTokenEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts +13 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js +34 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ServerTelemetryEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js +30 -0
- package/node_modules/@azure/msal-common/dist/cache/entities/ThrottlingEntity.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts +166 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ICacheManager.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ICachePlugin.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts +5 -0
- package/node_modules/@azure/msal-common/dist/cache/interface/ISerializableTokenCache.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts +24 -0
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js +30 -0
- package/node_modules/@azure/msal-common/dist/cache/persistence/TokenCacheContext.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts +63 -0
- package/node_modules/@azure/msal-common/dist/cache/utils/CacheTypes.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts +72 -0
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js +453 -0
- package/node_modules/@azure/msal-common/dist/client/AuthorizationCodeClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts +51 -0
- package/node_modules/@azure/msal-common/dist/client/BaseClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/BaseClient.js +107 -0
- package/node_modules/@azure/msal-common/dist/client/BaseClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts +35 -0
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js +260 -0
- package/node_modules/@azure/msal-common/dist/client/RefreshTokenClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts +25 -0
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js +108 -0
- package/node_modules/@azure/msal-common/dist/client/SilentFlowClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts +39 -0
- package/node_modules/@azure/msal-common/dist/config/AppTokenProvider.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts +134 -0
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js +101 -0
- package/node_modules/@azure/msal-common/dist/config/ClientConfiguration.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts +63 -0
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js +49 -0
- package/node_modules/@azure/msal-common/dist/crypto/ICrypto.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts +5 -0
- package/node_modules/@azure/msal-common/dist/crypto/IGuidGenerator.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts +22 -0
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js +44 -0
- package/node_modules/@azure/msal-common/dist/crypto/JoseHeader.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts +58 -0
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js +92 -0
- package/node_modules/@azure/msal-common/dist/crypto/PopTokenGenerator.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts +12 -0
- package/node_modules/@azure/msal-common/dist/crypto/SignedHttpRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts +48 -0
- package/node_modules/@azure/msal-common/dist/error/AuthError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/AuthError.js +58 -0
- package/node_modules/@azure/msal-common/dist/error/AuthError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts +413 -0
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js +526 -0
- package/node_modules/@azure/msal-common/dist/error/ClientAuthError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts +199 -0
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js +256 -0
- package/node_modules/@azure/msal-common/dist/error/ClientConfigurationError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts +60 -0
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js +86 -0
- package/node_modules/@azure/msal-common/dist/error/InteractionRequiredAuthError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts +29 -0
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js +46 -0
- package/node_modules/@azure/msal-common/dist/error/JoseHeaderError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts +8 -0
- package/node_modules/@azure/msal-common/dist/error/ServerError.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/error/ServerError.js +21 -0
- package/node_modules/@azure/msal-common/dist/error/ServerError.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/index.cjs.js +8975 -0
- package/node_modules/@azure/msal-common/dist/index.cjs.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/index.d.ts +94 -0
- package/node_modules/@azure/msal-common/dist/index.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/index.js +54 -0
- package/node_modules/@azure/msal-common/dist/index.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts +96 -0
- package/node_modules/@azure/msal-common/dist/logger/Logger.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/logger/Logger.js +205 -0
- package/node_modules/@azure/msal-common/dist/logger/Logger.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts +30 -0
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.js +21 -0
- package/node_modules/@azure/msal-common/dist/network/INetworkModule.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts +33 -0
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.js +42 -0
- package/node_modules/@azure/msal-common/dist/network/NetworkManager.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts +17 -0
- package/node_modules/@azure/msal-common/dist/network/RequestThumbprint.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts +42 -0
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js +102 -0
- package/node_modules/@azure/msal-common/dist/network/ThrottlingUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts +3 -0
- package/node_modules/@azure/msal-common/dist/packageMetadata.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/packageMetadata.js +8 -0
- package/node_modules/@azure/msal-common/dist/packageMetadata.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js +63 -0
- package/node_modules/@azure/msal-common/dist/request/AuthenticationHeaderParser.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts +38 -0
- package/node_modules/@azure/msal-common/dist/request/BaseAuthRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts +28 -0
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationCodeRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts +51 -0
- package/node_modules/@azure/msal-common/dist/request/CommonAuthorizationUrlRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts +18 -0
- package/node_modules/@azure/msal-common/dist/request/CommonClientCredentialRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts +22 -0
- package/node_modules/@azure/msal-common/dist/request/CommonDeviceCodeRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts +22 -0
- package/node_modules/@azure/msal-common/dist/request/CommonEndSessionRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/request/CommonOnBehalfOfRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/request/CommonRefreshTokenRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts +19 -0
- package/node_modules/@azure/msal-common/dist/request/CommonSilentFlowRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts +18 -0
- package/node_modules/@azure/msal-common/dist/request/CommonUsernamePasswordRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/request/NativeRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/request/NativeSignOutRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts +217 -0
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js +385 -0
- package/node_modules/@azure/msal-common/dist/request/RequestParameterBuilder.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts +34 -0
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.js +92 -0
- package/node_modules/@azure/msal-common/dist/request/RequestValidator.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts +89 -0
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.js +207 -0
- package/node_modules/@azure/msal-common/dist/request/ScopeSet.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts +40 -0
- package/node_modules/@azure/msal-common/dist/response/AuthenticationResult.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts +14 -0
- package/node_modules/@azure/msal-common/dist/response/AuthorizationCodePayload.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts +26 -0
- package/node_modules/@azure/msal-common/dist/response/DeviceCodeResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts +16 -0
- package/node_modules/@azure/msal-common/dist/response/ExternalTokenResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts +5 -0
- package/node_modules/@azure/msal-common/dist/response/IMDSBadResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts +73 -0
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js +325 -0
- package/node_modules/@azure/msal-common/dist/response/ResponseHandler.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts +26 -0
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationCodeResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts +45 -0
- package/node_modules/@azure/msal-common/dist/response/ServerAuthorizationTokenResponse.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts +43 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts +6 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/IPerformanceMeasurement.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts +190 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js +413 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts +440 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js +232 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/PerformanceEvent.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts +20 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js +43 -0
- package/node_modules/@azure/msal-common/dist/telemetry/performance/StubPerformanceClient.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts +66 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js +206 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryManager.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts +9 -0
- package/node_modules/@azure/msal-common/dist/telemetry/server/ServerTelemetryRequest.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/url/IUri.d.ts +13 -0
- package/node_modules/@azure/msal-common/dist/url/IUri.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts +71 -0
- package/node_modules/@azure/msal-common/dist/url/UrlString.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/url/UrlString.js +252 -0
- package/node_modules/@azure/msal-common/dist/url/UrlString.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts +332 -0
- package/node_modules/@azure/msal-common/dist/utils/Constants.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/Constants.js +378 -0
- package/node_modules/@azure/msal-common/dist/utils/Constants.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts +7 -0
- package/node_modules/@azure/msal-common/dist/utils/MsalTypes.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts +43 -0
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js +80 -0
- package/node_modules/@azure/msal-common/dist/utils/ProtocolUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts +54 -0
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.js +131 -0
- package/node_modules/@azure/msal-common/dist/utils/StringUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts +28 -0
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.d.ts.map +1 -0
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js +50 -0
- package/node_modules/@azure/msal-common/dist/utils/TimeUtils.js.map +1 -0
- package/node_modules/@azure/msal-common/package.json +79 -0
- package/package.json +99 -95
- package/dist/_virtual/_tslib.js +0 -117
- package/dist/_virtual/_tslib.js.map +0 -1
- package/dist/app/ClientApplication.d.ts.map +0 -1
- package/dist/app/ClientApplication.js +0 -1053
- package/dist/app/ClientApplication.js.map +0 -1
- package/dist/index.cjs.js +0 -18045
- package/dist/index.cjs.js.map +0 -1
- package/lib/msal-browser.js +0 -18051
- package/lib/msal-browser.js.map +0 -1
- package/lib/msal-browser.min.js +0 -70
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { ApplicationTelemetry } from "../../config/ClientConfiguration";
|
|
2
|
+
import { Logger } from "../../logger/Logger";
|
|
3
|
+
import { InProgressPerformanceEvent, IPerformanceClient, PerformanceCallbackFunction, QueueMeasurement } from "./IPerformanceClient";
|
|
4
|
+
import { IPerformanceMeasurement } from "./IPerformanceMeasurement";
|
|
5
|
+
import { Counters, PerformanceEvent, PerformanceEvents, StaticFields } from "./PerformanceEvent";
|
|
6
|
+
export interface PreQueueEvent {
|
|
7
|
+
name: PerformanceEvents;
|
|
8
|
+
time: number;
|
|
9
|
+
}
|
|
10
|
+
export declare abstract class PerformanceClient implements IPerformanceClient {
|
|
11
|
+
protected authority: string;
|
|
12
|
+
protected libraryName: string;
|
|
13
|
+
protected libraryVersion: string;
|
|
14
|
+
protected applicationTelemetry: ApplicationTelemetry;
|
|
15
|
+
protected clientId: string;
|
|
16
|
+
protected logger: Logger;
|
|
17
|
+
protected callbacks: Map<string, PerformanceCallbackFunction>;
|
|
18
|
+
/**
|
|
19
|
+
* Multiple events with the same correlation id.
|
|
20
|
+
* @protected
|
|
21
|
+
* @type {Map<string, PerformanceEvent>}
|
|
22
|
+
*/
|
|
23
|
+
protected eventsByCorrelationId: Map<string, PerformanceEvent>;
|
|
24
|
+
/**
|
|
25
|
+
* Map of pre-queue times by correlation Id
|
|
26
|
+
*
|
|
27
|
+
* @protected
|
|
28
|
+
* @type {Map<string, PreQueueEvent>}
|
|
29
|
+
*/
|
|
30
|
+
protected preQueueTimeByCorrelationId: Map<string, PreQueueEvent>;
|
|
31
|
+
/**
|
|
32
|
+
* Map of queue measurements by correlation Id
|
|
33
|
+
*
|
|
34
|
+
* @protected
|
|
35
|
+
* @type {Map<string, Array<QueueMeasurement>>}
|
|
36
|
+
*/
|
|
37
|
+
protected queueMeasurements: Map<string, Array<QueueMeasurement>>;
|
|
38
|
+
/**
|
|
39
|
+
* Creates an instance of PerformanceClient,
|
|
40
|
+
* an abstract class containing core performance telemetry logic.
|
|
41
|
+
*
|
|
42
|
+
* @constructor
|
|
43
|
+
* @param {string} clientId Client ID of the application
|
|
44
|
+
* @param {string} authority Authority used by the application
|
|
45
|
+
* @param {Logger} logger Logger used by the application
|
|
46
|
+
* @param {string} libraryName Name of the library
|
|
47
|
+
* @param {string} libraryVersion Version of the library
|
|
48
|
+
*/
|
|
49
|
+
constructor(clientId: string, authority: string, logger: Logger, libraryName: string, libraryVersion: string, applicationTelemetry: ApplicationTelemetry);
|
|
50
|
+
/**
|
|
51
|
+
* Generates and returns a unique id, typically a guid.
|
|
52
|
+
*
|
|
53
|
+
* @abstract
|
|
54
|
+
* @returns {string}
|
|
55
|
+
*/
|
|
56
|
+
abstract generateId(): string;
|
|
57
|
+
/**
|
|
58
|
+
* Starts and returns an platform-specific implementation of IPerformanceMeasurement.
|
|
59
|
+
* Note: this function can be changed to abstract at the next major version bump.
|
|
60
|
+
*
|
|
61
|
+
* @param {string} measureName
|
|
62
|
+
* @param {string} correlationId
|
|
63
|
+
* @returns {IPerformanceMeasurement}
|
|
64
|
+
*/
|
|
65
|
+
startPerformanceMeasurement(measureName: string, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
66
|
+
correlationId: string): IPerformanceMeasurement;
|
|
67
|
+
/**
|
|
68
|
+
* Sets pre-queue time by correlation Id
|
|
69
|
+
*
|
|
70
|
+
* @abstract
|
|
71
|
+
* @param {PerformanceEvents} eventName
|
|
72
|
+
* @param {string} correlationId
|
|
73
|
+
* @returns
|
|
74
|
+
*/
|
|
75
|
+
abstract setPreQueueTime(eventName: PerformanceEvents, correlationId?: string): void;
|
|
76
|
+
/**
|
|
77
|
+
* Get integral fields.
|
|
78
|
+
* Override to change the set.
|
|
79
|
+
*/
|
|
80
|
+
getIntFields(): ReadonlySet<string>;
|
|
81
|
+
/**
|
|
82
|
+
* Gets map of pre-queue times by correlation Id
|
|
83
|
+
*
|
|
84
|
+
* @param {PerformanceEvents} eventName
|
|
85
|
+
* @param {string} correlationId
|
|
86
|
+
* @returns {number}
|
|
87
|
+
*/
|
|
88
|
+
getPreQueueTime(eventName: PerformanceEvents, correlationId: string): number | void;
|
|
89
|
+
/**
|
|
90
|
+
* Calculates the difference between current time and time when function was queued.
|
|
91
|
+
* Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.
|
|
92
|
+
*
|
|
93
|
+
* @param {number} preQueueTime
|
|
94
|
+
* @param {number} currentTime
|
|
95
|
+
* @returns {number}
|
|
96
|
+
*/
|
|
97
|
+
calculateQueuedTime(preQueueTime: number, currentTime: number): number;
|
|
98
|
+
/**
|
|
99
|
+
* Adds queue measurement time to QueueMeasurements array for given correlation ID.
|
|
100
|
+
*
|
|
101
|
+
* @param {PerformanceEvents} eventName
|
|
102
|
+
* @param {?string} correlationId
|
|
103
|
+
* @param {?number} queueTime
|
|
104
|
+
* @param {?boolean} manuallyCompleted - indicator for manually completed queue measurements
|
|
105
|
+
* @returns
|
|
106
|
+
*/
|
|
107
|
+
addQueueMeasurement(eventName: PerformanceEvents, correlationId?: string, queueTime?: number, manuallyCompleted?: boolean): void;
|
|
108
|
+
/**
|
|
109
|
+
* Starts measuring performance for a given operation. Returns a function that should be used to end the measurement.
|
|
110
|
+
*
|
|
111
|
+
* @param {PerformanceEvents} measureName
|
|
112
|
+
* @param {?string} [correlationId]
|
|
113
|
+
* @returns {InProgressPerformanceEvent}
|
|
114
|
+
*/
|
|
115
|
+
startMeasurement(measureName: PerformanceEvents, correlationId?: string): InProgressPerformanceEvent;
|
|
116
|
+
/**
|
|
117
|
+
* Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes,
|
|
118
|
+
* as consumers should instead use the function returned by startMeasurement.
|
|
119
|
+
* Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event
|
|
120
|
+
* otherwise.
|
|
121
|
+
*
|
|
122
|
+
* @param {PerformanceEvent} event
|
|
123
|
+
* @param {IPerformanceMeasurement} measurement
|
|
124
|
+
* @returns {(PerformanceEvent | null)}
|
|
125
|
+
*/
|
|
126
|
+
endMeasurement(event: PerformanceEvent, measurement?: IPerformanceMeasurement): PerformanceEvent | null;
|
|
127
|
+
/**
|
|
128
|
+
* Saves extra information to be emitted when the measurements are flushed
|
|
129
|
+
* @param fields
|
|
130
|
+
* @param correlationId
|
|
131
|
+
*/
|
|
132
|
+
addStaticFields(fields: StaticFields, correlationId: string): void;
|
|
133
|
+
/**
|
|
134
|
+
* Increment counters to be emitted when the measurements are flushed
|
|
135
|
+
* @param counters {Counters}
|
|
136
|
+
* @param correlationId {string} correlation identifier
|
|
137
|
+
*/
|
|
138
|
+
increment(counters: Counters, correlationId: string): void;
|
|
139
|
+
/**
|
|
140
|
+
* Upserts event into event cache.
|
|
141
|
+
* First key is the correlation id, second key is the event id.
|
|
142
|
+
* Allows for events to be grouped by correlation id,
|
|
143
|
+
* and to easily allow for properties on them to be updated.
|
|
144
|
+
*
|
|
145
|
+
* @private
|
|
146
|
+
* @param {PerformanceEvent} event
|
|
147
|
+
*/
|
|
148
|
+
private cacheEventByCorrelationId;
|
|
149
|
+
private getQueueInfo;
|
|
150
|
+
/**
|
|
151
|
+
* Removes measurements for a given correlation id.
|
|
152
|
+
*
|
|
153
|
+
* @param {string} correlationId
|
|
154
|
+
*/
|
|
155
|
+
discardMeasurements(correlationId: string): void;
|
|
156
|
+
/**
|
|
157
|
+
* Removes cache for a given correlation id.
|
|
158
|
+
*
|
|
159
|
+
* @param {string} correlationId correlation identifier
|
|
160
|
+
*/
|
|
161
|
+
private discardCache;
|
|
162
|
+
/**
|
|
163
|
+
* Registers a callback function to receive performance events.
|
|
164
|
+
*
|
|
165
|
+
* @param {PerformanceCallbackFunction} callback
|
|
166
|
+
* @returns {string}
|
|
167
|
+
*/
|
|
168
|
+
addPerformanceCallback(callback: PerformanceCallbackFunction): string;
|
|
169
|
+
/**
|
|
170
|
+
* Removes a callback registered with addPerformanceCallback.
|
|
171
|
+
*
|
|
172
|
+
* @param {string} callbackId
|
|
173
|
+
* @returns {boolean}
|
|
174
|
+
*/
|
|
175
|
+
removePerformanceCallback(callbackId: string): boolean;
|
|
176
|
+
/**
|
|
177
|
+
* Emits events to all registered callbacks.
|
|
178
|
+
*
|
|
179
|
+
* @param {PerformanceEvent[]} events
|
|
180
|
+
* @param {?string} [correlationId]
|
|
181
|
+
*/
|
|
182
|
+
emitEvents(events: PerformanceEvent[], correlationId: string): void;
|
|
183
|
+
/**
|
|
184
|
+
* Enforce truncation of integral fields in performance event.
|
|
185
|
+
* @param {PerformanceEvent} event performance event to update.
|
|
186
|
+
* @param {Set<string>} intFields integral fields.
|
|
187
|
+
*/
|
|
188
|
+
private truncateIntegralFields;
|
|
189
|
+
}
|
|
190
|
+
//# sourceMappingURL=PerformanceClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PerformanceClient.d.ts","sourceRoot":"","sources":["../../../src/telemetry/performance/PerformanceClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EACH,0BAA0B,EAC1B,kBAAkB,EAClB,2BAA2B,EAC3B,gBAAgB,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACH,QAAQ,EAER,gBAAgB,EAChB,iBAAiB,EAEjB,YAAY,EACf,MAAM,oBAAoB,CAAC;AAE5B,MAAM,WAAW,aAAa;IAC1B,IAAI,EAAE,iBAAiB,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,8BAAsB,iBAAkB,YAAW,kBAAkB;IACjE,SAAS,CAAC,SAAS,EAAE,MAAM,CAAC;IAC5B,SAAS,CAAC,WAAW,EAAE,MAAM,CAAC;IAC9B,SAAS,CAAC,cAAc,EAAE,MAAM,CAAC;IACjC,SAAS,CAAC,oBAAoB,EAAE,oBAAoB,CAAC;IACrD,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,2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W,EAAE,iBAAiB,EAC9B,aAAa,CAAC,EAAE,MAAM,GACvB,0BAA0B;IAqE7B;;;;;;;;;OASG;IACH,cAAc,CACV,KAAK,EAAE,gBAAgB,EACvB,WAAW,CAAC,EAAE,uBAAuB,GACtC,gBAAgB,GAAG,IAAI;IAyE1B;;;;OAIG;IACH,eAAe,CAAC,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAgBlE;;;;OAIG;IACH,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAkB1D;;;;;;;;OAQG;IACH,OAAO,CAAC,yBAAyB;IAsBjC,OAAO,CAAC,YAAY;IA6BpB;;;;OAIG;IACH,mBAAmB,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAQhD;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAgBpB;;;;;OAKG;IACH,sBAAsB,CAAC,QAAQ,EAAE,2BAA2B,GAAG,MAAM;IAUrE;;;;;OAKG;IACH,yBAAyB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;IAgBtD;;;;;OAKG;IACH,UAAU,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAiBnE;;;;OAIG;IACH,OAAO,CAAC,sBAAsB;CAUjC"}
|
|
@@ -0,0 +1,413 @@
|
|
|
1
|
+
/*! @azure/msal-common v14.0.0 2023-05-03 */
|
|
2
|
+
'use strict';
|
|
3
|
+
import { IntFields, PerformanceEventStatus } from './PerformanceEvent.js';
|
|
4
|
+
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
7
|
+
* Licensed under the MIT License.
|
|
8
|
+
*/
|
|
9
|
+
class PerformanceClient {
|
|
10
|
+
/**
|
|
11
|
+
* Creates an instance of PerformanceClient,
|
|
12
|
+
* an abstract class containing core performance telemetry logic.
|
|
13
|
+
*
|
|
14
|
+
* @constructor
|
|
15
|
+
* @param {string} clientId Client ID of the application
|
|
16
|
+
* @param {string} authority Authority used by the application
|
|
17
|
+
* @param {Logger} logger Logger used by the application
|
|
18
|
+
* @param {string} libraryName Name of the library
|
|
19
|
+
* @param {string} libraryVersion Version of the library
|
|
20
|
+
*/
|
|
21
|
+
constructor(clientId, authority, logger, libraryName, libraryVersion, applicationTelemetry) {
|
|
22
|
+
this.authority = authority;
|
|
23
|
+
this.libraryName = libraryName;
|
|
24
|
+
this.libraryVersion = libraryVersion;
|
|
25
|
+
this.applicationTelemetry = applicationTelemetry;
|
|
26
|
+
this.clientId = clientId;
|
|
27
|
+
this.logger = logger;
|
|
28
|
+
this.callbacks = new Map();
|
|
29
|
+
this.eventsByCorrelationId = new Map();
|
|
30
|
+
this.queueMeasurements = new Map();
|
|
31
|
+
this.preQueueTimeByCorrelationId = new Map();
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Starts and returns an platform-specific implementation of IPerformanceMeasurement.
|
|
35
|
+
* Note: this function can be changed to abstract at the next major version bump.
|
|
36
|
+
*
|
|
37
|
+
* @param {string} measureName
|
|
38
|
+
* @param {string} correlationId
|
|
39
|
+
* @returns {IPerformanceMeasurement}
|
|
40
|
+
*/
|
|
41
|
+
startPerformanceMeasurement(measureName, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
42
|
+
correlationId // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
43
|
+
) {
|
|
44
|
+
return {};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get integral fields.
|
|
48
|
+
* Override to change the set.
|
|
49
|
+
*/
|
|
50
|
+
getIntFields() {
|
|
51
|
+
return IntFields;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Gets map of pre-queue times by correlation Id
|
|
55
|
+
*
|
|
56
|
+
* @param {PerformanceEvents} eventName
|
|
57
|
+
* @param {string} correlationId
|
|
58
|
+
* @returns {number}
|
|
59
|
+
*/
|
|
60
|
+
getPreQueueTime(eventName, correlationId) {
|
|
61
|
+
const preQueueEvent = this.preQueueTimeByCorrelationId.get(correlationId);
|
|
62
|
+
if (!preQueueEvent) {
|
|
63
|
+
this.logger.trace(`PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: ${correlationId}, unable to add queue measurement`);
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
else if (preQueueEvent.name !== eventName) {
|
|
67
|
+
this.logger.trace(`PerformanceClient.getPreQueueTime: no pre-queue time found for ${eventName}, unable to add queue measurement`);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
return preQueueEvent.time;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Calculates the difference between current time and time when function was queued.
|
|
74
|
+
* Note: It is possible to have 0 as the queue time if the current time and the queued time was the same.
|
|
75
|
+
*
|
|
76
|
+
* @param {number} preQueueTime
|
|
77
|
+
* @param {number} currentTime
|
|
78
|
+
* @returns {number}
|
|
79
|
+
*/
|
|
80
|
+
calculateQueuedTime(preQueueTime, currentTime) {
|
|
81
|
+
if (preQueueTime < 1) {
|
|
82
|
+
this.logger.trace(`PerformanceClient: preQueueTime should be a positive integer and not ${preQueueTime}`);
|
|
83
|
+
return 0;
|
|
84
|
+
}
|
|
85
|
+
if (currentTime < 1) {
|
|
86
|
+
this.logger.trace(`PerformanceClient: currentTime should be a positive integer and not ${currentTime}`);
|
|
87
|
+
return 0;
|
|
88
|
+
}
|
|
89
|
+
if (currentTime < preQueueTime) {
|
|
90
|
+
this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved");
|
|
91
|
+
return 0;
|
|
92
|
+
}
|
|
93
|
+
return currentTime - preQueueTime;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Adds queue measurement time to QueueMeasurements array for given correlation ID.
|
|
97
|
+
*
|
|
98
|
+
* @param {PerformanceEvents} eventName
|
|
99
|
+
* @param {?string} correlationId
|
|
100
|
+
* @param {?number} queueTime
|
|
101
|
+
* @param {?boolean} manuallyCompleted - indicator for manually completed queue measurements
|
|
102
|
+
* @returns
|
|
103
|
+
*/
|
|
104
|
+
addQueueMeasurement(eventName, correlationId, queueTime, manuallyCompleted) {
|
|
105
|
+
if (!correlationId) {
|
|
106
|
+
this.logger.trace(`PerformanceClient.addQueueMeasurement: correlationId not provided for ${eventName}, cannot add queue measurement`);
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
if (queueTime === 0) {
|
|
110
|
+
// Possible for there to be no queue time after calculation
|
|
111
|
+
this.logger.trace(`PerformanceClient.addQueueMeasurement: queue time provided for ${eventName} is ${queueTime}`);
|
|
112
|
+
}
|
|
113
|
+
else if (!queueTime) {
|
|
114
|
+
this.logger.trace(`PerformanceClient.addQueueMeasurement: no queue time provided for ${eventName}`);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
const queueMeasurement = {
|
|
118
|
+
eventName,
|
|
119
|
+
queueTime,
|
|
120
|
+
manuallyCompleted,
|
|
121
|
+
};
|
|
122
|
+
// Adds to existing correlation Id if present in queueMeasurements
|
|
123
|
+
const existingMeasurements = this.queueMeasurements.get(correlationId);
|
|
124
|
+
if (existingMeasurements) {
|
|
125
|
+
existingMeasurements.push(queueMeasurement);
|
|
126
|
+
this.queueMeasurements.set(correlationId, existingMeasurements);
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
// Sets new correlation Id if not present in queueMeasurements
|
|
130
|
+
this.logger.trace(`PerformanceClient.addQueueMeasurement: adding correlationId ${correlationId} to queue measurements`);
|
|
131
|
+
const measurementArray = [queueMeasurement];
|
|
132
|
+
this.queueMeasurements.set(correlationId, measurementArray);
|
|
133
|
+
}
|
|
134
|
+
// Delete processed pre-queue event.
|
|
135
|
+
this.preQueueTimeByCorrelationId.delete(correlationId);
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Starts measuring performance for a given operation. Returns a function that should be used to end the measurement.
|
|
139
|
+
*
|
|
140
|
+
* @param {PerformanceEvents} measureName
|
|
141
|
+
* @param {?string} [correlationId]
|
|
142
|
+
* @returns {InProgressPerformanceEvent}
|
|
143
|
+
*/
|
|
144
|
+
startMeasurement(measureName, correlationId) {
|
|
145
|
+
// Generate a placeholder correlation if the request does not provide one
|
|
146
|
+
const eventCorrelationId = correlationId || this.generateId();
|
|
147
|
+
if (!correlationId) {
|
|
148
|
+
this.logger.info(`PerformanceClient: No correlation id provided for ${measureName}, generating`, eventCorrelationId);
|
|
149
|
+
}
|
|
150
|
+
this.logger.trace(`PerformanceClient: Performance measurement started for ${measureName}`, eventCorrelationId);
|
|
151
|
+
const performanceMeasurement = this.startPerformanceMeasurement(measureName, eventCorrelationId);
|
|
152
|
+
performanceMeasurement.startMeasurement();
|
|
153
|
+
const inProgressEvent = {
|
|
154
|
+
eventId: this.generateId(),
|
|
155
|
+
status: PerformanceEventStatus.InProgress,
|
|
156
|
+
authority: this.authority,
|
|
157
|
+
libraryName: this.libraryName,
|
|
158
|
+
libraryVersion: this.libraryVersion,
|
|
159
|
+
clientId: this.clientId,
|
|
160
|
+
name: measureName,
|
|
161
|
+
startTimeMs: Date.now(),
|
|
162
|
+
correlationId: eventCorrelationId,
|
|
163
|
+
appName: this.applicationTelemetry?.appName,
|
|
164
|
+
appVersion: this.applicationTelemetry?.appVersion,
|
|
165
|
+
};
|
|
166
|
+
// Store in progress events so they can be discarded if not ended properly
|
|
167
|
+
this.cacheEventByCorrelationId(inProgressEvent);
|
|
168
|
+
// Return the event and functions the caller can use to properly end/flush the measurement
|
|
169
|
+
return {
|
|
170
|
+
endMeasurement: (event) => {
|
|
171
|
+
return this.endMeasurement({
|
|
172
|
+
// Initial set of event properties
|
|
173
|
+
...inProgressEvent,
|
|
174
|
+
// Properties set when event ends
|
|
175
|
+
...event,
|
|
176
|
+
}, performanceMeasurement);
|
|
177
|
+
},
|
|
178
|
+
discardMeasurement: () => {
|
|
179
|
+
return this.discardMeasurements(inProgressEvent.correlationId);
|
|
180
|
+
},
|
|
181
|
+
addStaticFields: (fields) => {
|
|
182
|
+
return this.addStaticFields(fields, inProgressEvent.correlationId);
|
|
183
|
+
},
|
|
184
|
+
increment: (counters) => {
|
|
185
|
+
return this.increment(counters, inProgressEvent.correlationId);
|
|
186
|
+
},
|
|
187
|
+
measurement: performanceMeasurement,
|
|
188
|
+
event: inProgressEvent,
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Stops measuring the performance for an operation. Should only be called directly by PerformanceClient classes,
|
|
193
|
+
* as consumers should instead use the function returned by startMeasurement.
|
|
194
|
+
* Adds a new field named as "[event name]DurationMs" for sub-measurements, completes and emits an event
|
|
195
|
+
* otherwise.
|
|
196
|
+
*
|
|
197
|
+
* @param {PerformanceEvent} event
|
|
198
|
+
* @param {IPerformanceMeasurement} measurement
|
|
199
|
+
* @returns {(PerformanceEvent | null)}
|
|
200
|
+
*/
|
|
201
|
+
endMeasurement(event, measurement) {
|
|
202
|
+
const rootEvent = this.eventsByCorrelationId.get(event.correlationId);
|
|
203
|
+
if (!rootEvent) {
|
|
204
|
+
this.logger.trace(`PerformanceClient: Measurement not found for ${event.eventId}`, event.correlationId);
|
|
205
|
+
return null;
|
|
206
|
+
}
|
|
207
|
+
const isRoot = event.eventId === rootEvent.eventId;
|
|
208
|
+
let queueInfo = {
|
|
209
|
+
totalQueueTime: 0,
|
|
210
|
+
totalQueueCount: 0,
|
|
211
|
+
manuallyCompletedCount: 0,
|
|
212
|
+
};
|
|
213
|
+
if (isRoot) {
|
|
214
|
+
queueInfo = this.getQueueInfo(event.correlationId);
|
|
215
|
+
this.discardCache(rootEvent.correlationId);
|
|
216
|
+
}
|
|
217
|
+
else {
|
|
218
|
+
rootEvent.incompleteSubMeasurements?.delete(event.eventId);
|
|
219
|
+
}
|
|
220
|
+
measurement?.endMeasurement();
|
|
221
|
+
const durationMs = measurement?.flushMeasurement();
|
|
222
|
+
// null indicates no measurement was taken (e.g. needed performance APIs not present)
|
|
223
|
+
if (!durationMs) {
|
|
224
|
+
this.logger.trace("PerformanceClient: Performance measurement not taken", rootEvent.correlationId);
|
|
225
|
+
return null;
|
|
226
|
+
}
|
|
227
|
+
this.logger.trace(`PerformanceClient: Performance measurement ended for ${event.name}: ${durationMs} ms`, event.correlationId);
|
|
228
|
+
// Add sub-measurement attribute to root event.
|
|
229
|
+
if (!isRoot) {
|
|
230
|
+
rootEvent[event.name + "DurationMs"] = Math.floor(durationMs);
|
|
231
|
+
return { ...rootEvent };
|
|
232
|
+
}
|
|
233
|
+
let finalEvent = { ...rootEvent, ...event };
|
|
234
|
+
let incompleteSubsCount = 0;
|
|
235
|
+
// Incomplete sub-measurements are discarded. They are likely an instrumentation bug that should be fixed.
|
|
236
|
+
finalEvent.incompleteSubMeasurements?.forEach((subMeasurement) => {
|
|
237
|
+
this.logger.trace(`PerformanceClient: Incomplete submeasurement ${subMeasurement.name} found for ${event.name}`, finalEvent.correlationId);
|
|
238
|
+
incompleteSubsCount++;
|
|
239
|
+
});
|
|
240
|
+
finalEvent.incompleteSubMeasurements = undefined;
|
|
241
|
+
finalEvent = {
|
|
242
|
+
...finalEvent,
|
|
243
|
+
durationMs: Math.round(durationMs),
|
|
244
|
+
queuedTimeMs: queueInfo.totalQueueTime,
|
|
245
|
+
queuedCount: queueInfo.totalQueueCount,
|
|
246
|
+
queuedManuallyCompletedCount: queueInfo.manuallyCompletedCount,
|
|
247
|
+
status: PerformanceEventStatus.Completed,
|
|
248
|
+
incompleteSubsCount,
|
|
249
|
+
};
|
|
250
|
+
this.truncateIntegralFields(finalEvent, this.getIntFields());
|
|
251
|
+
this.emitEvents([finalEvent], event.correlationId);
|
|
252
|
+
return finalEvent;
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Saves extra information to be emitted when the measurements are flushed
|
|
256
|
+
* @param fields
|
|
257
|
+
* @param correlationId
|
|
258
|
+
*/
|
|
259
|
+
addStaticFields(fields, correlationId) {
|
|
260
|
+
this.logger.trace("PerformanceClient: Updating static fields");
|
|
261
|
+
const event = this.eventsByCorrelationId.get(correlationId);
|
|
262
|
+
if (event) {
|
|
263
|
+
this.eventsByCorrelationId.set(correlationId, {
|
|
264
|
+
...event,
|
|
265
|
+
...fields,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
this.logger.trace("PerformanceClient: Event not found for", correlationId);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* Increment counters to be emitted when the measurements are flushed
|
|
274
|
+
* @param counters {Counters}
|
|
275
|
+
* @param correlationId {string} correlation identifier
|
|
276
|
+
*/
|
|
277
|
+
increment(counters, correlationId) {
|
|
278
|
+
this.logger.trace("PerformanceClient: Updating counters");
|
|
279
|
+
const event = this.eventsByCorrelationId.get(correlationId);
|
|
280
|
+
if (event) {
|
|
281
|
+
for (const counter in counters) {
|
|
282
|
+
if (!event.hasOwnProperty(counter)) {
|
|
283
|
+
event[counter] = 0;
|
|
284
|
+
}
|
|
285
|
+
event[counter] += counters[counter];
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
else {
|
|
289
|
+
this.logger.trace("PerformanceClient: Event not found for", correlationId);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Upserts event into event cache.
|
|
294
|
+
* First key is the correlation id, second key is the event id.
|
|
295
|
+
* Allows for events to be grouped by correlation id,
|
|
296
|
+
* and to easily allow for properties on them to be updated.
|
|
297
|
+
*
|
|
298
|
+
* @private
|
|
299
|
+
* @param {PerformanceEvent} event
|
|
300
|
+
*/
|
|
301
|
+
cacheEventByCorrelationId(event) {
|
|
302
|
+
const rootEvent = this.eventsByCorrelationId.get(event.correlationId);
|
|
303
|
+
if (rootEvent) {
|
|
304
|
+
this.logger.trace(`PerformanceClient: Performance measurement for ${event.name} added/updated`, event.correlationId);
|
|
305
|
+
rootEvent.incompleteSubMeasurements =
|
|
306
|
+
rootEvent.incompleteSubMeasurements || new Map();
|
|
307
|
+
rootEvent.incompleteSubMeasurements.set(event.eventId, {
|
|
308
|
+
name: event.name,
|
|
309
|
+
startTimeMs: event.startTimeMs,
|
|
310
|
+
});
|
|
311
|
+
}
|
|
312
|
+
else {
|
|
313
|
+
this.logger.trace(`PerformanceClient: Performance measurement for ${event.name} started`, event.correlationId);
|
|
314
|
+
this.eventsByCorrelationId.set(event.correlationId, { ...event });
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
getQueueInfo(correlationId) {
|
|
318
|
+
const queueMeasurementForCorrelationId = this.queueMeasurements.get(correlationId);
|
|
319
|
+
if (!queueMeasurementForCorrelationId) {
|
|
320
|
+
this.logger.trace(`PerformanceClient: no queue measurements found for for correlationId: ${correlationId}`);
|
|
321
|
+
}
|
|
322
|
+
let totalQueueTime = 0;
|
|
323
|
+
let totalQueueCount = 0;
|
|
324
|
+
let manuallyCompletedCount = 0;
|
|
325
|
+
queueMeasurementForCorrelationId?.forEach((measurement) => {
|
|
326
|
+
totalQueueTime += measurement.queueTime;
|
|
327
|
+
totalQueueCount++;
|
|
328
|
+
manuallyCompletedCount += measurement.manuallyCompleted ? 1 : 0;
|
|
329
|
+
});
|
|
330
|
+
return {
|
|
331
|
+
totalQueueTime,
|
|
332
|
+
totalQueueCount,
|
|
333
|
+
manuallyCompletedCount,
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* Removes measurements for a given correlation id.
|
|
338
|
+
*
|
|
339
|
+
* @param {string} correlationId
|
|
340
|
+
*/
|
|
341
|
+
discardMeasurements(correlationId) {
|
|
342
|
+
this.logger.trace("PerformanceClient: Performance measurements discarded", correlationId);
|
|
343
|
+
this.eventsByCorrelationId.delete(correlationId);
|
|
344
|
+
}
|
|
345
|
+
/**
|
|
346
|
+
* Removes cache for a given correlation id.
|
|
347
|
+
*
|
|
348
|
+
* @param {string} correlationId correlation identifier
|
|
349
|
+
*/
|
|
350
|
+
discardCache(correlationId) {
|
|
351
|
+
this.discardMeasurements(correlationId);
|
|
352
|
+
this.logger.trace("PerformanceClient: QueueMeasurements discarded", correlationId);
|
|
353
|
+
this.queueMeasurements.delete(correlationId);
|
|
354
|
+
this.logger.trace("PerformanceClient: Pre-queue times discarded", correlationId);
|
|
355
|
+
this.preQueueTimeByCorrelationId.delete(correlationId);
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* Registers a callback function to receive performance events.
|
|
359
|
+
*
|
|
360
|
+
* @param {PerformanceCallbackFunction} callback
|
|
361
|
+
* @returns {string}
|
|
362
|
+
*/
|
|
363
|
+
addPerformanceCallback(callback) {
|
|
364
|
+
const callbackId = this.generateId();
|
|
365
|
+
this.callbacks.set(callbackId, callback);
|
|
366
|
+
this.logger.verbose(`PerformanceClient: Performance callback registered with id: ${callbackId}`);
|
|
367
|
+
return callbackId;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Removes a callback registered with addPerformanceCallback.
|
|
371
|
+
*
|
|
372
|
+
* @param {string} callbackId
|
|
373
|
+
* @returns {boolean}
|
|
374
|
+
*/
|
|
375
|
+
removePerformanceCallback(callbackId) {
|
|
376
|
+
const result = this.callbacks.delete(callbackId);
|
|
377
|
+
if (result) {
|
|
378
|
+
this.logger.verbose(`PerformanceClient: Performance callback ${callbackId} removed.`);
|
|
379
|
+
}
|
|
380
|
+
else {
|
|
381
|
+
this.logger.verbose(`PerformanceClient: Performance callback ${callbackId} not removed.`);
|
|
382
|
+
}
|
|
383
|
+
return result;
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Emits events to all registered callbacks.
|
|
387
|
+
*
|
|
388
|
+
* @param {PerformanceEvent[]} events
|
|
389
|
+
* @param {?string} [correlationId]
|
|
390
|
+
*/
|
|
391
|
+
emitEvents(events, correlationId) {
|
|
392
|
+
this.logger.verbose("PerformanceClient: Emitting performance events", correlationId);
|
|
393
|
+
this.callbacks.forEach((callback, callbackId) => {
|
|
394
|
+
this.logger.trace(`PerformanceClient: Emitting event to callback ${callbackId}`, correlationId);
|
|
395
|
+
callback.apply(null, [events]);
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Enforce truncation of integral fields in performance event.
|
|
400
|
+
* @param {PerformanceEvent} event performance event to update.
|
|
401
|
+
* @param {Set<string>} intFields integral fields.
|
|
402
|
+
*/
|
|
403
|
+
truncateIntegralFields(event, intFields) {
|
|
404
|
+
intFields.forEach((key) => {
|
|
405
|
+
if (key in event && typeof event[key] === "number") {
|
|
406
|
+
event[key] = Math.floor(event[key]);
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export { PerformanceClient };
|
|
413
|
+
//# sourceMappingURL=PerformanceClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PerformanceClient.js","sources":["../../../src/telemetry/performance/PerformanceClient.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAAA;;;AAGG;MAyBmB,iBAAiB,CAAA;AAgCnC;;;;;;;;;;AAUG;IACH,WACI,CAAA,QAAgB,EAChB,SAAiB,EACjB,MAAc,EACd,WAAmB,EACnB,cAAsB,EACtB,oBAA0C,EAAA;AAE1C,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC3B,QAAA,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;AAC/B,QAAA,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;AACrC,QAAA,IAAI,CAAC,oBAAoB,GAAG,oBAAoB,CAAC;AACjD,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACzB,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;AACrB,QAAA,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CAAC;AAC3B,QAAA,IAAI,CAAC,qBAAqB,GAAG,IAAI,GAAG,EAAE,CAAC;AACvC,QAAA,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;AAC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