@openobserve/browser-core 0.2.11-rc1 → 0.2.12-beta.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/package.json +6 -5
- package/src/boot/displayAlreadyInitializedError.ts +8 -0
- package/src/boot/init.ts +29 -15
- package/src/browser/addEventListener.ts +13 -10
- package/src/browser/{types.ts → browser.types.ts} +42 -0
- package/src/browser/cookie.ts +49 -14
- package/src/browser/fetchObservable.ts +80 -21
- package/src/browser/{pageExitObservable.ts → pageMayExitObservable.ts} +11 -22
- package/src/browser/runOnReadyState.ts +14 -4
- package/src/browser/xhrObservable.ts +17 -4
- package/src/domain/allowedTrackingOrigins.ts +30 -0
- package/src/domain/bufferedData.ts +32 -0
- package/src/domain/configuration/configuration.ts +352 -83
- package/src/domain/configuration/endpointBuilder.ts +29 -32
- package/src/domain/configuration/index.ts +6 -5
- package/src/domain/configuration/transportConfiguration.ts +42 -35
- package/src/domain/connectivity/connectivity.ts +5 -1
- package/src/domain/console/consoleObservable.ts +57 -21
- package/src/domain/context/contextConstants.ts +22 -0
- package/src/domain/context/contextManager.ts +48 -11
- package/src/domain/context/contextUtils.ts +14 -0
- package/src/domain/context/defineContextMethod.ts +31 -0
- package/src/domain/context/storeContextManager.ts +7 -3
- package/src/domain/contexts/accountContext.ts +47 -0
- package/src/domain/contexts/globalContext.ts +30 -0
- package/src/domain/contexts/rumInternalContext.type.ts +15 -0
- package/src/domain/contexts/userContext.ts +64 -0
- package/src/domain/deflate/{types.ts → deflate.types.ts} +6 -4
- package/src/domain/deflate/index.ts +1 -1
- package/src/domain/error/error.ts +28 -84
- package/src/domain/error/error.types.ts +10 -2
- package/src/domain/error/trackRuntimeError.ts +29 -32
- package/src/domain/eventRateLimiter/createEventRateLimiter.ts +5 -2
- package/src/domain/extension/extensionUtils.ts +28 -0
- package/src/domain/intakeSites.ts +18 -0
- package/src/domain/report/reportObservable.ts +35 -30
- package/src/domain/resourceUtils.ts +20 -16
- package/src/domain/session/README.md +193 -0
- package/src/domain/session/oldCookiesMigration.ts +2 -2
- package/src/domain/session/sessionConstants.ts +16 -1
- package/src/domain/session/sessionManager.ts +179 -15
- package/src/domain/session/sessionState.ts +49 -17
- package/src/domain/session/sessionStateValidation.ts +9 -0
- package/src/domain/session/sessionStore.ts +118 -55
- package/src/domain/session/sessionStoreOperations.ts +47 -20
- package/src/domain/session/storeStrategies/sessionInCookie.ts +105 -26
- package/src/domain/session/storeStrategies/sessionInLocalStorage.ts +10 -8
- package/src/domain/session/storeStrategies/sessionStoreStrategy.ts +5 -2
- package/src/domain/synthetics/syntheticsWorkerValues.ts +13 -2
- package/src/domain/tags.ts +76 -0
- package/src/domain/telemetry/index.ts +12 -4
- package/src/domain/telemetry/rawTelemetryEvent.types.ts +6 -3
- package/src/domain/telemetry/telemetry.ts +235 -106
- package/src/domain/telemetry/telemetryEvent.types.ts +514 -5
- package/src/domain/trackingConsent.ts +34 -0
- package/src/index.ts +90 -59
- package/src/tools/abstractHooks.ts +72 -0
- package/src/tools/abstractLifeCycle.ts +1 -0
- package/src/tools/boundedBuffer.ts +36 -8
- package/src/tools/display.ts +4 -0
- package/src/tools/encoder.ts +3 -2
- package/src/tools/experimentalFeatures.ts +18 -7
- package/src/tools/getZoneJsOriginalValue.ts +1 -1
- package/src/tools/{getGlobalObject.ts → globalObject.ts} +20 -0
- package/src/tools/instrumentMethod.ts +58 -41
- package/src/tools/matchOption.ts +1 -2
- package/src/tools/monitor.ts +11 -7
- package/src/tools/observable.ts +78 -12
- package/src/tools/queueMicrotask.ts +13 -0
- package/src/tools/readBytesFromStream.ts +24 -64
- package/src/tools/requestIdleCallback.ts +40 -0
- package/src/tools/sendToExtension.ts +3 -1
- package/src/tools/serialisation/context.ts +4 -1
- package/src/tools/serialisation/sanitize.ts +32 -14
- package/src/{domain/error → tools/stackTrace}/computeStackTrace.ts +72 -8
- package/src/tools/stackTrace/handlingStack.ts +48 -0
- package/src/tools/taskQueue.ts +63 -0
- package/src/tools/timer.ts +1 -1
- package/src/tools/utils/arrayUtils.ts +11 -3
- package/src/tools/utils/browserDetection.ts +0 -9
- package/src/tools/utils/byteUtils.ts +13 -2
- package/src/tools/utils/functionUtils.ts +0 -2
- package/src/tools/utils/numberUtils.ts +2 -1
- package/src/tools/utils/objectUtils.ts +1 -3
- package/src/tools/utils/polyfills.ts +6 -107
- package/src/tools/utils/responseUtils.ts +1 -1
- package/src/tools/utils/stringUtils.ts +34 -2
- package/src/tools/utils/timeUtils.ts +18 -13
- package/src/tools/utils/timezone.ts +9 -0
- package/src/tools/utils/urlPolyfill.ts +29 -59
- package/src/tools/valueHistory.ts +66 -35
- package/src/transport/batch.ts +77 -80
- package/src/transport/eventBridge.ts +24 -5
- package/src/transport/flushController.ts +27 -21
- package/src/transport/httpRequest.ts +92 -71
- package/src/transport/index.ts +7 -4
- package/src/transport/sendWithRetryStrategy.ts +55 -36
- package/cjs/boot/init.d.ts +0 -5
- package/cjs/boot/init.js +0 -36
- package/cjs/boot/init.js.map +0 -1
- package/cjs/browser/addEventListener.d.ts +0 -84
- package/cjs/browser/addEventListener.js +0 -94
- package/cjs/browser/addEventListener.js.map +0 -1
- package/cjs/browser/cookie.d.ts +0 -17
- package/cjs/browser/cookie.js +0 -86
- package/cjs/browser/cookie.js.map +0 -1
- package/cjs/browser/fetchObservable.d.ts +0 -23
- package/cjs/browser/fetchObservable.js +0 -69
- package/cjs/browser/fetchObservable.js.map +0 -1
- package/cjs/browser/pageExitObservable.d.ts +0 -14
- package/cjs/browser/pageExitObservable.js +0 -57
- package/cjs/browser/pageExitObservable.js.map +0 -1
- package/cjs/browser/runOnReadyState.d.ts +0 -2
- package/cjs/browser/runOnReadyState.js +0 -15
- package/cjs/browser/runOnReadyState.js.map +0 -1
- package/cjs/browser/types.d.ts +0 -19
- package/cjs/browser/types.js +0 -6
- package/cjs/browser/types.js.map +0 -1
- package/cjs/browser/xhrObservable.d.ts +0 -21
- package/cjs/browser/xhrObservable.js +0 -85
- package/cjs/browser/xhrObservable.js.map +0 -1
- package/cjs/domain/configuration/configuration.d.ts +0 -72
- package/cjs/domain/configuration/configuration.js +0 -94
- package/cjs/domain/configuration/configuration.js.map +0 -1
- package/cjs/domain/configuration/endpointBuilder.d.ts +0 -10
- package/cjs/domain/configuration/endpointBuilder.js +0 -84
- package/cjs/domain/configuration/endpointBuilder.js.map +0 -1
- package/cjs/domain/configuration/index.d.ts +0 -4
- package/cjs/domain/configuration/index.js +0 -27
- package/cjs/domain/configuration/index.js.map +0 -1
- package/cjs/domain/configuration/intakeSites.d.ts +0 -5
- package/cjs/domain/configuration/intakeSites.js +0 -9
- package/cjs/domain/configuration/intakeSites.js.map +0 -1
- package/cjs/domain/configuration/tags.d.ts +0 -4
- package/cjs/domain/configuration/tags.js +0 -39
- package/cjs/domain/configuration/tags.js.map +0 -1
- package/cjs/domain/configuration/transportConfiguration.d.ts +0 -16
- package/cjs/domain/configuration/transportConfiguration.js +0 -42
- package/cjs/domain/configuration/transportConfiguration.js.map +0 -1
- package/cjs/domain/connectivity/connectivity.d.ts +0 -13
- package/cjs/domain/connectivity/connectivity.js +0 -14
- package/cjs/domain/connectivity/connectivity.js.map +0 -1
- package/cjs/domain/connectivity/index.d.ts +0 -1
- package/cjs/domain/connectivity/index.js +0 -18
- package/cjs/domain/connectivity/index.js.map +0 -1
- package/cjs/domain/console/consoleObservable.d.ts +0 -11
- package/cjs/domain/console/consoleObservable.js +0 -72
- package/cjs/domain/console/consoleObservable.js.map +0 -1
- package/cjs/domain/context/contextConstants.d.ts +0 -5
- package/cjs/domain/context/contextConstants.js +0 -3
- package/cjs/domain/context/contextConstants.js.map +0 -1
- package/cjs/domain/context/contextManager.d.ts +0 -12
- package/cjs/domain/context/contextManager.js +0 -43
- package/cjs/domain/context/contextManager.js.map +0 -1
- package/cjs/domain/context/customerDataTracker.d.ts +0 -45
- package/cjs/domain/context/customerDataTracker.js +0 -107
- package/cjs/domain/context/customerDataTracker.js.map +0 -1
- package/cjs/domain/context/storeContextManager.d.ts +0 -6
- package/cjs/domain/context/storeContextManager.js +0 -38
- package/cjs/domain/context/storeContextManager.js.map +0 -1
- package/cjs/domain/deflate/types.d.ts +0 -0
- package/cjs/domain/deflate/types.js +0 -3
- package/cjs/domain/deflate/types.js.map +0 -1
- package/cjs/domain/error/computeStackTrace.d.ts +0 -33
- package/cjs/domain/error/computeStackTrace.js +0 -142
- package/cjs/domain/error/computeStackTrace.js.map +0 -1
- package/cjs/domain/error/error.d.ts +0 -28
- package/cjs/domain/error/error.js +0 -131
- package/cjs/domain/error/error.js.map +0 -1
- package/cjs/domain/error/error.types.d.ts +0 -40
- package/cjs/domain/error/error.types.js +0 -13
- package/cjs/domain/error/error.types.js.map +0 -1
- package/cjs/domain/error/trackRuntimeError.d.ts +0 -13
- package/cjs/domain/error/trackRuntimeError.js +0 -54
- package/cjs/domain/error/trackRuntimeError.js.map +0 -1
- package/cjs/domain/eventRateLimiter/createEventRateLimiter.d.ts +0 -5
- package/cjs/domain/eventRateLimiter/createEventRateLimiter.js +0 -40
- package/cjs/domain/eventRateLimiter/createEventRateLimiter.js.map +0 -1
- package/cjs/domain/report/browser.types.d.ts +0 -34
- package/cjs/domain/report/browser.types.js +0 -3
- package/cjs/domain/report/browser.types.js.map +0 -1
- package/cjs/domain/report/reportObservable.d.ts +0 -17
- package/cjs/domain/report/reportObservable.js +0 -94
- package/cjs/domain/report/reportObservable.js.map +0 -1
- package/cjs/domain/resourceUtils.d.ts +0 -16
- package/cjs/domain/resourceUtils.js +0 -3
- package/cjs/domain/resourceUtils.js.map +0 -1
- package/cjs/domain/session/oldCookiesMigration.d.ts +0 -11
- package/cjs/domain/session/oldCookiesMigration.js +0 -40
- package/cjs/domain/session/oldCookiesMigration.js.map +0 -1
- package/cjs/domain/session/sessionConstants.d.ts +0 -2
- package/cjs/domain/session/sessionConstants.js +0 -7
- package/cjs/domain/session/sessionConstants.js.map +0 -1
- package/cjs/domain/session/sessionManager.d.ts +0 -20
- package/cjs/domain/session/sessionManager.js +0 -65
- package/cjs/domain/session/sessionManager.js.map +0 -1
- package/cjs/domain/session/sessionState.d.ts +0 -11
- package/cjs/domain/session/sessionState.js +0 -45
- package/cjs/domain/session/sessionState.js.map +0 -1
- package/cjs/domain/session/sessionStore.d.ts +0 -34
- package/cjs/domain/session/sessionStore.js +0 -144
- package/cjs/domain/session/sessionStore.js.map +0 -1
- package/cjs/domain/session/sessionStoreOperations.d.ts +0 -10
- package/cjs/domain/session/sessionStoreOperations.js +0 -96
- package/cjs/domain/session/sessionStoreOperations.js.map +0 -1
- package/cjs/domain/session/storeStrategies/sessionInCookie.d.ts +0 -6
- package/cjs/domain/session/storeStrategies/sessionInCookie.js +0 -59
- package/cjs/domain/session/storeStrategies/sessionInCookie.js.map +0 -1
- package/cjs/domain/session/storeStrategies/sessionInLocalStorage.d.ts +0 -3
- package/cjs/domain/session/storeStrategies/sessionInLocalStorage.js +0 -41
- package/cjs/domain/session/storeStrategies/sessionInLocalStorage.js.map +0 -1
- package/cjs/domain/session/storeStrategies/sessionStoreStrategy.d.ts +0 -15
- package/cjs/domain/session/storeStrategies/sessionStoreStrategy.js +0 -5
- package/cjs/domain/session/storeStrategies/sessionStoreStrategy.js.map +0 -1
- package/cjs/domain/synthetics/syntheticsWorkerValues.d.ts +0 -11
- package/cjs/domain/synthetics/syntheticsWorkerValues.js +0 -22
- package/cjs/domain/synthetics/syntheticsWorkerValues.js.map +0 -1
- package/cjs/domain/telemetry/index.d.ts +0 -3
- package/cjs/domain/telemetry/index.js +0 -28
- package/cjs/domain/telemetry/index.js.map +0 -1
- package/cjs/domain/telemetry/rawTelemetryEvent.types.d.ts +0 -15
- package/cjs/domain/telemetry/rawTelemetryEvent.types.js +0 -8
- package/cjs/domain/telemetry/rawTelemetryEvent.types.js.map +0 -1
- package/cjs/domain/telemetry/telemetry.d.ts +0 -116
- package/cjs/domain/telemetry/telemetry.js +0 -157
- package/cjs/domain/telemetry/telemetry.js.map +0 -1
- package/cjs/domain/telemetry/telemetryEvent.types.d.ts +0 -391
- package/cjs/domain/telemetry/telemetryEvent.types.js +0 -7
- package/cjs/domain/telemetry/telemetryEvent.types.js.map +0 -1
- package/cjs/domain/user/index.d.ts +0 -2
- package/cjs/domain/user/index.js +0 -19
- package/cjs/domain/user/index.js.map +0 -1
- package/cjs/domain/user/user.d.ts +0 -12
- package/cjs/domain/user/user.js +0 -35
- package/cjs/domain/user/user.js.map +0 -1
- package/cjs/domain/user/user.types.d.ts +0 -6
- package/cjs/domain/user/user.types.js +0 -3
- package/cjs/domain/user/user.types.js.map +0 -1
- package/cjs/tools/abstractLifeCycle.d.ts +0 -23
- package/cjs/tools/abstractLifeCycle.js +0 -29
- package/cjs/tools/abstractLifeCycle.js.map +0 -1
- package/cjs/tools/boundedBuffer.d.ts +0 -5
- package/cjs/tools/boundedBuffer.js +0 -22
- package/cjs/tools/boundedBuffer.js.map +0 -1
- package/cjs/tools/catchUserErrors.d.ts +0 -1
- package/cjs/tools/catchUserErrors.js +0 -20
- package/cjs/tools/catchUserErrors.js.map +0 -1
- package/cjs/tools/display.d.ts +0 -35
- package/cjs/tools/display.js +0 -41
- package/cjs/tools/display.js.map +0 -1
- package/cjs/tools/encoder.d.ts +0 -53
- package/cjs/tools/encoder.js +0 -41
- package/cjs/tools/encoder.js.map +0 -1
- package/cjs/tools/experimentalFeatures.d.ts +0 -22
- package/cjs/tools/experimentalFeatures.js +0 -45
- package/cjs/tools/experimentalFeatures.js.map +0 -1
- package/cjs/tools/getGlobalObject.d.ts +0 -4
- package/cjs/tools/getGlobalObject.js +0 -37
- package/cjs/tools/getGlobalObject.js.map +0 -1
- package/cjs/tools/getZoneJsOriginalValue.d.ts +0 -19
- package/cjs/tools/getZoneJsOriginalValue.js +0 -30
- package/cjs/tools/getZoneJsOriginalValue.js.map +0 -1
- package/cjs/tools/instrumentMethod.d.ts +0 -59
- package/cjs/tools/instrumentMethod.js +0 -106
- package/cjs/tools/instrumentMethod.js.map +0 -1
- package/cjs/tools/matchOption.d.ts +0 -8
- package/cjs/tools/matchOption.js +0 -38
- package/cjs/tools/matchOption.js.map +0 -1
- package/cjs/tools/mergeInto.d.ts +0 -25
- package/cjs/tools/mergeInto.js +0 -105
- package/cjs/tools/mergeInto.js.map +0 -1
- package/cjs/tools/monitor.d.ts +0 -8
- package/cjs/tools/monitor.js +0 -76
- package/cjs/tools/monitor.js.map +0 -1
- package/cjs/tools/observable.d.ts +0 -12
- package/cjs/tools/observable.js +0 -43
- package/cjs/tools/observable.js.map +0 -1
- package/cjs/tools/readBytesFromStream.d.ts +0 -11
- package/cjs/tools/readBytesFromStream.js +0 -64
- package/cjs/tools/readBytesFromStream.js.map +0 -1
- package/cjs/tools/sendToExtension.d.ts +0 -3
- package/cjs/tools/sendToExtension.js +0 -11
- package/cjs/tools/sendToExtension.js.map +0 -1
- package/cjs/tools/serialisation/context.d.ts +0 -6
- package/cjs/tools/serialisation/context.js +0 -3
- package/cjs/tools/serialisation/context.js.map +0 -1
- package/cjs/tools/serialisation/jsonStringify.d.ts +0 -13
- package/cjs/tools/serialisation/jsonStringify.js +0 -49
- package/cjs/tools/serialisation/jsonStringify.js.map +0 -1
- package/cjs/tools/serialisation/sanitize.d.ts +0 -18
- package/cjs/tools/serialisation/sanitize.js +0 -185
- package/cjs/tools/serialisation/sanitize.js.map +0 -1
- package/cjs/tools/timer.d.ts +0 -5
- package/cjs/tools/timer.js +0 -23
- package/cjs/tools/timer.js.map +0 -1
- package/cjs/tools/utils/arrayUtils.d.ts +0 -1
- package/cjs/tools/utils/arrayUtils.js +0 -11
- package/cjs/tools/utils/arrayUtils.js.map +0 -1
- package/cjs/tools/utils/browserDetection.d.ts +0 -10
- package/cjs/tools/utils/browserDetection.js +0 -42
- package/cjs/tools/utils/browserDetection.js.map +0 -1
- package/cjs/tools/utils/byteUtils.d.ts +0 -4
- package/cjs/tools/utils/byteUtils.js +0 -31
- package/cjs/tools/utils/byteUtils.js.map +0 -1
- package/cjs/tools/utils/functionUtils.d.ts +0 -9
- package/cjs/tools/utils/functionUtils.js +0 -48
- package/cjs/tools/utils/functionUtils.js.map +0 -1
- package/cjs/tools/utils/numberUtils.d.ts +0 -8
- package/cjs/tools/utils/numberUtils.js +0 -24
- package/cjs/tools/utils/numberUtils.js.map +0 -1
- package/cjs/tools/utils/objectUtils.d.ts +0 -10
- package/cjs/tools/utils/objectUtils.js +0 -26
- package/cjs/tools/utils/objectUtils.js.map +0 -1
- package/cjs/tools/utils/polyfills.d.ts +0 -24
- package/cjs/tools/utils/polyfills.js +0 -110
- package/cjs/tools/utils/polyfills.js.map +0 -1
- package/cjs/tools/utils/responseUtils.d.ts +0 -2
- package/cjs/tools/utils/responseUtils.js +0 -18
- package/cjs/tools/utils/responseUtils.js.map +0 -1
- package/cjs/tools/utils/stringUtils.d.ts +0 -8
- package/cjs/tools/utils/stringUtils.js +0 -59
- package/cjs/tools/utils/stringUtils.js.map +0 -1
- package/cjs/tools/utils/timeUtils.d.ts +0 -57
- package/cjs/tools/utils/timeUtils.js +0 -99
- package/cjs/tools/utils/timeUtils.js.map +0 -1
- package/cjs/tools/utils/typeUtils.d.ts +0 -4
- package/cjs/tools/utils/typeUtils.js +0 -17
- package/cjs/tools/utils/typeUtils.js.map +0 -1
- package/cjs/tools/utils/urlPolyfill.d.ts +0 -14
- package/cjs/tools/utils/urlPolyfill.js +0 -92
- package/cjs/tools/utils/urlPolyfill.js.map +0 -1
- package/cjs/tools/valueHistory.d.ts +0 -50
- package/cjs/tools/valueHistory.js +0 -106
- package/cjs/tools/valueHistory.js.map +0 -1
- package/cjs/transport/batch.d.ts +0 -21
- package/cjs/transport/batch.js +0 -123
- package/cjs/transport/batch.js.map +0 -1
- package/cjs/transport/eventBridge.d.ts +0 -12
- package/cjs/transport/eventBridge.js +0 -34
- package/cjs/transport/eventBridge.js.map +0 -1
- package/cjs/transport/flushController.d.ts +0 -58
- package/cjs/transport/flushController.js +0 -112
- package/cjs/transport/flushController.js.map +0 -1
- package/cjs/transport/httpRequest.d.ts +0 -38
- package/cjs/transport/httpRequest.js +0 -95
- package/cjs/transport/httpRequest.js.map +0 -1
- package/cjs/transport/index.d.ts +0 -4
- package/cjs/transport/index.js +0 -13
- package/cjs/transport/index.js.map +0 -1
- package/cjs/transport/sendWithRetryStrategy.d.ts +0 -39
- package/cjs/transport/sendWithRetryStrategy.js +0 -151
- package/cjs/transport/sendWithRetryStrategy.js.map +0 -1
- package/cjs/transport/startBatchWithReplica.d.ts +0 -20
- package/cjs/transport/startBatchWithReplica.js +0 -42
- package/cjs/transport/startBatchWithReplica.js.map +0 -1
- package/esm/boot/init.d.ts +0 -5
- package/esm/boot/init.js +0 -31
- package/esm/boot/init.js.map +0 -1
- package/esm/browser/addEventListener.d.ts +0 -84
- package/esm/browser/addEventListener.js +0 -89
- package/esm/browser/addEventListener.js.map +0 -1
- package/esm/browser/cookie.d.ts +0 -17
- package/esm/browser/cookie.js +0 -76
- package/esm/browser/cookie.js.map +0 -1
- package/esm/browser/fetchObservable.d.ts +0 -23
- package/esm/browser/fetchObservable.js +0 -65
- package/esm/browser/fetchObservable.js.map +0 -1
- package/esm/browser/pageExitObservable.d.ts +0 -14
- package/esm/browser/pageExitObservable.js +0 -52
- package/esm/browser/pageExitObservable.js.map +0 -1
- package/esm/browser/runOnReadyState.d.ts +0 -2
- package/esm/browser/runOnReadyState.js +0 -11
- package/esm/browser/runOnReadyState.js.map +0 -1
- package/esm/browser/types.d.ts +0 -19
- package/esm/browser/types.js +0 -5
- package/esm/browser/types.js.map +0 -1
- package/esm/browser/xhrObservable.d.ts +0 -21
- package/esm/browser/xhrObservable.js +0 -81
- package/esm/browser/xhrObservable.js.map +0 -1
- package/esm/domain/configuration/configuration.d.ts +0 -72
- package/esm/domain/configuration/configuration.js +0 -89
- package/esm/domain/configuration/configuration.js.map +0 -1
- package/esm/domain/configuration/endpointBuilder.d.ts +0 -10
- package/esm/domain/configuration/endpointBuilder.js +0 -80
- package/esm/domain/configuration/endpointBuilder.js.map +0 -1
- package/esm/domain/configuration/index.d.ts +0 -4
- package/esm/domain/configuration/index.js +0 -5
- package/esm/domain/configuration/index.js.map +0 -1
- package/esm/domain/configuration/intakeSites.d.ts +0 -5
- package/esm/domain/configuration/intakeSites.js +0 -6
- package/esm/domain/configuration/intakeSites.js.map +0 -1
- package/esm/domain/configuration/tags.d.ts +0 -4
- package/esm/domain/configuration/tags.js +0 -34
- package/esm/domain/configuration/tags.js.map +0 -1
- package/esm/domain/configuration/transportConfiguration.d.ts +0 -16
- package/esm/domain/configuration/transportConfiguration.js +0 -38
- package/esm/domain/configuration/transportConfiguration.js.map +0 -1
- package/esm/domain/connectivity/connectivity.d.ts +0 -13
- package/esm/domain/connectivity/connectivity.js +0 -10
- package/esm/domain/connectivity/connectivity.js.map +0 -1
- package/esm/domain/connectivity/index.d.ts +0 -1
- package/esm/domain/connectivity/index.js +0 -2
- package/esm/domain/connectivity/index.js.map +0 -1
- package/esm/domain/console/consoleObservable.d.ts +0 -11
- package/esm/domain/console/consoleObservable.js +0 -67
- package/esm/domain/console/consoleObservable.js.map +0 -1
- package/esm/domain/context/contextConstants.d.ts +0 -5
- package/esm/domain/context/contextConstants.js +0 -2
- package/esm/domain/context/contextConstants.js.map +0 -1
- package/esm/domain/context/contextManager.d.ts +0 -12
- package/esm/domain/context/contextManager.js +0 -39
- package/esm/domain/context/contextManager.js.map +0 -1
- package/esm/domain/context/customerDataTracker.d.ts +0 -45
- package/esm/domain/context/customerDataTracker.js +0 -102
- package/esm/domain/context/customerDataTracker.js.map +0 -1
- package/esm/domain/context/storeContextManager.d.ts +0 -6
- package/esm/domain/context/storeContextManager.js +0 -32
- package/esm/domain/context/storeContextManager.js.map +0 -1
- package/esm/domain/deflate/index.d.ts +0 -1
- package/esm/domain/deflate/index.js +0 -2
- package/esm/domain/deflate/index.js.map +0 -1
- package/esm/domain/deflate/types.d.ts +0 -38
- package/esm/domain/deflate/types.js +0 -2
- package/esm/domain/deflate/types.js.map +0 -1
- package/esm/domain/error/computeStackTrace.d.ts +0 -33
- package/esm/domain/error/computeStackTrace.js +0 -137
- package/esm/domain/error/computeStackTrace.js.map +0 -1
- package/esm/domain/error/error.d.ts +0 -28
- package/esm/domain/error/error.js +0 -121
- package/esm/domain/error/error.js.map +0 -1
- package/esm/domain/error/error.types.d.ts +0 -40
- package/esm/domain/error/error.types.js +0 -10
- package/esm/domain/error/error.types.js.map +0 -1
- package/esm/domain/error/trackRuntimeError.d.ts +0 -13
- package/esm/domain/error/trackRuntimeError.js +0 -48
- package/esm/domain/error/trackRuntimeError.js.map +0 -1
- package/esm/domain/eventRateLimiter/createEventRateLimiter.d.ts +0 -5
- package/esm/domain/eventRateLimiter/createEventRateLimiter.js +0 -36
- package/esm/domain/eventRateLimiter/createEventRateLimiter.js.map +0 -1
- package/esm/domain/report/browser.types.d.ts +0 -34
- package/esm/domain/report/browser.types.js +0 -2
- package/esm/domain/report/browser.types.js.map +0 -1
- package/esm/domain/report/reportObservable.d.ts +0 -17
- package/esm/domain/report/reportObservable.js +0 -90
- package/esm/domain/report/reportObservable.js.map +0 -1
- package/esm/domain/resourceUtils.d.ts +0 -16
- package/esm/domain/resourceUtils.js +0 -2
- package/esm/domain/resourceUtils.js.map +0 -1
- package/esm/domain/session/oldCookiesMigration.d.ts +0 -11
- package/esm/domain/session/oldCookiesMigration.js +0 -36
- package/esm/domain/session/oldCookiesMigration.js.map +0 -1
- package/esm/domain/session/sessionConstants.d.ts +0 -2
- package/esm/domain/session/sessionConstants.js +0 -4
- package/esm/domain/session/sessionConstants.js.map +0 -1
- package/esm/domain/session/sessionManager.d.ts +0 -20
- package/esm/domain/session/sessionManager.js +0 -60
- package/esm/domain/session/sessionManager.js.map +0 -1
- package/esm/domain/session/sessionState.d.ts +0 -11
- package/esm/domain/session/sessionState.js +0 -38
- package/esm/domain/session/sessionState.js.map +0 -1
- package/esm/domain/session/sessionStore.d.ts +0 -34
- package/esm/domain/session/sessionStore.js +0 -139
- package/esm/domain/session/sessionStore.js.map +0 -1
- package/esm/domain/session/sessionStoreOperations.d.ts +0 -10
- package/esm/domain/session/sessionStoreOperations.js +0 -92
- package/esm/domain/session/sessionStoreOperations.js.map +0 -1
- package/esm/domain/session/storeStrategies/sessionInCookie.d.ts +0 -6
- package/esm/domain/session/storeStrategies/sessionInCookie.js +0 -53
- package/esm/domain/session/storeStrategies/sessionInCookie.js.map +0 -1
- package/esm/domain/session/storeStrategies/sessionInLocalStorage.d.ts +0 -3
- package/esm/domain/session/storeStrategies/sessionInLocalStorage.js +0 -36
- package/esm/domain/session/storeStrategies/sessionInLocalStorage.js.map +0 -1
- package/esm/domain/session/storeStrategies/sessionStoreStrategy.d.ts +0 -15
- package/esm/domain/session/storeStrategies/sessionStoreStrategy.js +0 -2
- package/esm/domain/session/storeStrategies/sessionStoreStrategy.js.map +0 -1
- package/esm/domain/synthetics/syntheticsWorkerValues.d.ts +0 -11
- package/esm/domain/synthetics/syntheticsWorkerValues.js +0 -16
- package/esm/domain/synthetics/syntheticsWorkerValues.js.map +0 -1
- package/esm/domain/telemetry/index.d.ts +0 -3
- package/esm/domain/telemetry/index.js +0 -4
- package/esm/domain/telemetry/index.js.map +0 -1
- package/esm/domain/telemetry/rawTelemetryEvent.types.d.ts +0 -15
- package/esm/domain/telemetry/rawTelemetryEvent.types.js +0 -5
- package/esm/domain/telemetry/rawTelemetryEvent.types.js.map +0 -1
- package/esm/domain/telemetry/telemetry.d.ts +0 -116
- package/esm/domain/telemetry/telemetry.js +0 -145
- package/esm/domain/telemetry/telemetry.js.map +0 -1
- package/esm/domain/telemetry/telemetryEvent.types.d.ts +0 -391
- package/esm/domain/telemetry/telemetryEvent.types.js +0 -6
- package/esm/domain/telemetry/telemetryEvent.types.js.map +0 -1
- package/esm/domain/user/index.d.ts +0 -2
- package/esm/domain/user/index.js +0 -3
- package/esm/domain/user/index.js.map +0 -1
- package/esm/domain/user/user.d.ts +0 -12
- package/esm/domain/user/user.js +0 -30
- package/esm/domain/user/user.js.map +0 -1
- package/esm/domain/user/user.types.d.ts +0 -6
- package/esm/domain/user/user.types.js +0 -2
- package/esm/domain/user/user.types.js.map +0 -1
- package/esm/index.d.ts +0 -67
- package/esm/index.js +0 -64
- package/esm/index.js.map +0 -1
- package/esm/tools/abstractLifeCycle.d.ts +0 -23
- package/esm/tools/abstractLifeCycle.js +0 -26
- package/esm/tools/abstractLifeCycle.js.map +0 -1
- package/esm/tools/boundedBuffer.d.ts +0 -5
- package/esm/tools/boundedBuffer.js +0 -19
- package/esm/tools/boundedBuffer.js.map +0 -1
- package/esm/tools/catchUserErrors.d.ts +0 -1
- package/esm/tools/catchUserErrors.js +0 -16
- package/esm/tools/catchUserErrors.js.map +0 -1
- package/esm/tools/display.d.ts +0 -35
- package/esm/tools/display.js +0 -38
- package/esm/tools/display.js.map +0 -1
- package/esm/tools/encoder.d.ts +0 -53
- package/esm/tools/encoder.js +0 -37
- package/esm/tools/encoder.js.map +0 -1
- package/esm/tools/experimentalFeatures.d.ts +0 -22
- package/esm/tools/experimentalFeatures.js +0 -38
- package/esm/tools/experimentalFeatures.js.map +0 -1
- package/esm/tools/getGlobalObject.d.ts +0 -4
- package/esm/tools/getGlobalObject.js +0 -33
- package/esm/tools/getGlobalObject.js.map +0 -1
- package/esm/tools/getZoneJsOriginalValue.d.ts +0 -19
- package/esm/tools/getZoneJsOriginalValue.js +0 -26
- package/esm/tools/getZoneJsOriginalValue.js.map +0 -1
- package/esm/tools/instrumentMethod.d.ts +0 -59
- package/esm/tools/instrumentMethod.js +0 -101
- package/esm/tools/instrumentMethod.js.map +0 -1
- package/esm/tools/matchOption.d.ts +0 -8
- package/esm/tools/matchOption.js +0 -33
- package/esm/tools/matchOption.js.map +0 -1
- package/esm/tools/mergeInto.d.ts +0 -25
- package/esm/tools/mergeInto.js +0 -99
- package/esm/tools/mergeInto.js.map +0 -1
- package/esm/tools/monitor.d.ts +0 -8
- package/esm/tools/monitor.js +0 -66
- package/esm/tools/monitor.js.map +0 -1
- package/esm/tools/observable.d.ts +0 -12
- package/esm/tools/observable.js +0 -39
- package/esm/tools/observable.js.map +0 -1
- package/esm/tools/readBytesFromStream.d.ts +0 -11
- package/esm/tools/readBytesFromStream.js +0 -60
- package/esm/tools/readBytesFromStream.js.map +0 -1
- package/esm/tools/sendToExtension.d.ts +0 -3
- package/esm/tools/sendToExtension.js +0 -7
- package/esm/tools/sendToExtension.js.map +0 -1
- package/esm/tools/serialisation/context.d.ts +0 -6
- package/esm/tools/serialisation/context.js +0 -2
- package/esm/tools/serialisation/context.js.map +0 -1
- package/esm/tools/serialisation/jsonStringify.d.ts +0 -13
- package/esm/tools/serialisation/jsonStringify.js +0 -44
- package/esm/tools/serialisation/jsonStringify.js.map +0 -1
- package/esm/tools/serialisation/sanitize.d.ts +0 -18
- package/esm/tools/serialisation/sanitize.js +0 -181
- package/esm/tools/serialisation/sanitize.js.map +0 -1
- package/esm/tools/timer.d.ts +0 -5
- package/esm/tools/timer.js +0 -16
- package/esm/tools/timer.js.map +0 -1
- package/esm/tools/utils/arrayUtils.d.ts +0 -1
- package/esm/tools/utils/arrayUtils.js +0 -7
- package/esm/tools/utils/arrayUtils.js.map +0 -1
- package/esm/tools/utils/browserDetection.d.ts +0 -10
- package/esm/tools/utils/browserDetection.js +0 -35
- package/esm/tools/utils/browserDetection.js.map +0 -1
- package/esm/tools/utils/byteUtils.d.ts +0 -4
- package/esm/tools/utils/byteUtils.js +0 -26
- package/esm/tools/utils/byteUtils.js.map +0 -1
- package/esm/tools/utils/functionUtils.d.ts +0 -9
- package/esm/tools/utils/functionUtils.js +0 -43
- package/esm/tools/utils/functionUtils.js.map +0 -1
- package/esm/tools/utils/numberUtils.d.ts +0 -8
- package/esm/tools/utils/numberUtils.js +0 -17
- package/esm/tools/utils/numberUtils.js.map +0 -1
- package/esm/tools/utils/objectUtils.d.ts +0 -10
- package/esm/tools/utils/objectUtils.js +0 -19
- package/esm/tools/utils/objectUtils.js.map +0 -1
- package/esm/tools/utils/polyfills.d.ts +0 -24
- package/esm/tools/utils/polyfills.js +0 -95
- package/esm/tools/utils/polyfills.js.map +0 -1
- package/esm/tools/utils/responseUtils.d.ts +0 -2
- package/esm/tools/utils/responseUtils.js +0 -13
- package/esm/tools/utils/responseUtils.js.map +0 -1
- package/esm/tools/utils/stringUtils.d.ts +0 -8
- package/esm/tools/utils/stringUtils.js +0 -52
- package/esm/tools/utils/stringUtils.js.map +0 -1
- package/esm/tools/utils/timeUtils.d.ts +0 -57
- package/esm/tools/utils/timeUtils.js +0 -82
- package/esm/tools/utils/timeUtils.js.map +0 -1
- package/esm/tools/utils/typeUtils.d.ts +0 -4
- package/esm/tools/utils/typeUtils.js +0 -13
- package/esm/tools/utils/typeUtils.js.map +0 -1
- package/esm/tools/utils/urlPolyfill.d.ts +0 -14
- package/esm/tools/utils/urlPolyfill.js +0 -80
- package/esm/tools/utils/urlPolyfill.js.map +0 -1
- package/esm/tools/valueHistory.d.ts +0 -50
- package/esm/tools/valueHistory.js +0 -103
- package/esm/tools/valueHistory.js.map +0 -1
- package/esm/transport/batch.d.ts +0 -21
- package/esm/transport/batch.js +0 -120
- package/esm/transport/batch.js.map +0 -1
- package/esm/transport/eventBridge.d.ts +0 -12
- package/esm/transport/eventBridge.js +0 -29
- package/esm/transport/eventBridge.js.map +0 -1
- package/esm/transport/flushController.d.ts +0 -58
- package/esm/transport/flushController.js +0 -108
- package/esm/transport/flushController.js.map +0 -1
- package/esm/transport/httpRequest.d.ts +0 -38
- package/esm/transport/httpRequest.js +0 -89
- package/esm/transport/httpRequest.js.map +0 -1
- package/esm/transport/index.d.ts +0 -4
- package/esm/transport/index.js +0 -5
- package/esm/transport/index.js.map +0 -1
- package/esm/transport/sendWithRetryStrategy.d.ts +0 -39
- package/esm/transport/sendWithRetryStrategy.js +0 -146
- package/esm/transport/sendWithRetryStrategy.js.map +0 -1
- package/esm/transport/startBatchWithReplica.d.ts +0 -20
- package/esm/transport/startBatchWithReplica.js +0 -38
- package/esm/transport/startBatchWithReplica.js.map +0 -1
- package/src/domain/configuration/intakeSites.ts +0 -5
- package/src/domain/configuration/tags.ts +0 -43
- package/src/domain/context/customerDataTracker.ts +0 -134
- package/src/domain/user/index.ts +0 -2
- package/src/domain/user/user.ts +0 -33
- package/src/domain/user/user.types.ts +0 -6
- package/src/transport/startBatchWithReplica.ts +0 -68
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../../src/domain/telemetry/telemetry.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DO NOT MODIFY IT BY HAND. Run `yarn rum-events-format:sync` instead.
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Schema of all properties of a telemetry event
|
|
6
|
-
*/
|
|
7
|
-
export type TelemetryEvent = TelemetryErrorEvent | TelemetryDebugEvent | TelemetryConfigurationEvent;
|
|
8
|
-
/**
|
|
9
|
-
* Schema of all properties of a telemetry error event
|
|
10
|
-
*/
|
|
11
|
-
export type TelemetryErrorEvent = CommonTelemetryProperties & {
|
|
12
|
-
/**
|
|
13
|
-
* The telemetry log information
|
|
14
|
-
*/
|
|
15
|
-
telemetry: {
|
|
16
|
-
/**
|
|
17
|
-
* Telemetry type
|
|
18
|
-
*/
|
|
19
|
-
type?: 'log';
|
|
20
|
-
/**
|
|
21
|
-
* Level/severity of the log
|
|
22
|
-
*/
|
|
23
|
-
status: 'error';
|
|
24
|
-
/**
|
|
25
|
-
* Body of the log
|
|
26
|
-
*/
|
|
27
|
-
message: string;
|
|
28
|
-
/**
|
|
29
|
-
* Error properties
|
|
30
|
-
*/
|
|
31
|
-
error?: {
|
|
32
|
-
/**
|
|
33
|
-
* The stack trace or the complementary information about the error
|
|
34
|
-
*/
|
|
35
|
-
stack?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The error type or kind (or code in some cases)
|
|
38
|
-
*/
|
|
39
|
-
kind?: string;
|
|
40
|
-
[k: string]: unknown;
|
|
41
|
-
};
|
|
42
|
-
[k: string]: unknown;
|
|
43
|
-
};
|
|
44
|
-
[k: string]: unknown;
|
|
45
|
-
};
|
|
46
|
-
/**
|
|
47
|
-
* Schema of all properties of a telemetry debug event
|
|
48
|
-
*/
|
|
49
|
-
export type TelemetryDebugEvent = CommonTelemetryProperties & {
|
|
50
|
-
/**
|
|
51
|
-
* The telemetry log information
|
|
52
|
-
*/
|
|
53
|
-
telemetry: {
|
|
54
|
-
/**
|
|
55
|
-
* Telemetry type
|
|
56
|
-
*/
|
|
57
|
-
type?: 'log';
|
|
58
|
-
/**
|
|
59
|
-
* Level/severity of the log
|
|
60
|
-
*/
|
|
61
|
-
status: 'debug';
|
|
62
|
-
/**
|
|
63
|
-
* Body of the log
|
|
64
|
-
*/
|
|
65
|
-
message: string;
|
|
66
|
-
[k: string]: unknown;
|
|
67
|
-
};
|
|
68
|
-
[k: string]: unknown;
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* Schema of all properties of a telemetry configuration event
|
|
72
|
-
*/
|
|
73
|
-
export type TelemetryConfigurationEvent = CommonTelemetryProperties & {
|
|
74
|
-
/**
|
|
75
|
-
* The telemetry configuration information
|
|
76
|
-
*/
|
|
77
|
-
telemetry: {
|
|
78
|
-
/**
|
|
79
|
-
* Telemetry type
|
|
80
|
-
*/
|
|
81
|
-
type: 'configuration';
|
|
82
|
-
/**
|
|
83
|
-
* Configuration properties
|
|
84
|
-
*/
|
|
85
|
-
configuration: {
|
|
86
|
-
/**
|
|
87
|
-
* The percentage of sessions tracked
|
|
88
|
-
*/
|
|
89
|
-
session_sample_rate?: number;
|
|
90
|
-
/**
|
|
91
|
-
* The percentage of telemetry events sent
|
|
92
|
-
*/
|
|
93
|
-
telemetry_sample_rate?: number;
|
|
94
|
-
/**
|
|
95
|
-
* The percentage of telemetry configuration events sent after being sampled by telemetry_sample_rate
|
|
96
|
-
*/
|
|
97
|
-
telemetry_configuration_sample_rate?: number;
|
|
98
|
-
/**
|
|
99
|
-
* The percentage of requests traced
|
|
100
|
-
*/
|
|
101
|
-
trace_sample_rate?: number;
|
|
102
|
-
/**
|
|
103
|
-
* The percentage of sessions with Browser RUM & Session Replay pricing tracked (deprecated in favor of session_replay_sample_rate)
|
|
104
|
-
*/
|
|
105
|
-
premium_sample_rate?: number;
|
|
106
|
-
/**
|
|
107
|
-
* The percentage of sessions with Browser RUM & Session Replay pricing tracked (deprecated in favor of session_replay_sample_rate)
|
|
108
|
-
*/
|
|
109
|
-
replay_sample_rate?: number;
|
|
110
|
-
/**
|
|
111
|
-
* The percentage of sessions with RUM & Session Replay pricing tracked
|
|
112
|
-
*/
|
|
113
|
-
session_replay_sample_rate?: number;
|
|
114
|
-
/**
|
|
115
|
-
* Whether the session replay start is handled manually
|
|
116
|
-
*/
|
|
117
|
-
start_session_replay_recording_manually?: boolean;
|
|
118
|
-
/**
|
|
119
|
-
* Whether a proxy is used
|
|
120
|
-
*/
|
|
121
|
-
use_proxy?: boolean;
|
|
122
|
-
/**
|
|
123
|
-
* Whether beforeSend callback function is used
|
|
124
|
-
*/
|
|
125
|
-
use_before_send?: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Whether initialization fails silently if the SDK is already initialized
|
|
128
|
-
*/
|
|
129
|
-
silent_multiple_init?: boolean;
|
|
130
|
-
/**
|
|
131
|
-
* Whether sessions across subdomains for the same site are tracked
|
|
132
|
-
*/
|
|
133
|
-
track_session_across_subdomains?: boolean;
|
|
134
|
-
/**
|
|
135
|
-
* Whether resources are tracked
|
|
136
|
-
*/
|
|
137
|
-
track_resources?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Whether long tasks are tracked
|
|
140
|
-
*/
|
|
141
|
-
track_long_task?: boolean;
|
|
142
|
-
/**
|
|
143
|
-
* Whether a secure cross-site session cookie is used (deprecated)
|
|
144
|
-
*/
|
|
145
|
-
use_cross_site_session_cookie?: boolean;
|
|
146
|
-
/**
|
|
147
|
-
* Whether a partitioned secure cross-site session cookie is used
|
|
148
|
-
*/
|
|
149
|
-
use_partitioned_cross_site_session_cookie?: boolean;
|
|
150
|
-
/**
|
|
151
|
-
* Whether a secure session cookie is used
|
|
152
|
-
*/
|
|
153
|
-
use_secure_session_cookie?: boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Whether it is allowed to use LocalStorage when cookies are not available
|
|
156
|
-
*/
|
|
157
|
-
allow_fallback_to_local_storage?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* Whether contexts are stored in local storage
|
|
160
|
-
*/
|
|
161
|
-
store_contexts_across_pages?: boolean;
|
|
162
|
-
/**
|
|
163
|
-
* Whether untrusted events are allowed
|
|
164
|
-
*/
|
|
165
|
-
allow_untrusted_events?: boolean;
|
|
166
|
-
/**
|
|
167
|
-
* Attribute to be used to name actions
|
|
168
|
-
*/
|
|
169
|
-
action_name_attribute?: string;
|
|
170
|
-
/**
|
|
171
|
-
* Whether the allowed tracing origins list is used (deprecated in favor of use_allowed_tracing_urls)
|
|
172
|
-
*/
|
|
173
|
-
use_allowed_tracing_origins?: boolean;
|
|
174
|
-
/**
|
|
175
|
-
* Whether the allowed tracing urls list is used
|
|
176
|
-
*/
|
|
177
|
-
use_allowed_tracing_urls?: boolean;
|
|
178
|
-
/**
|
|
179
|
-
* A list of selected tracing propagators
|
|
180
|
-
*/
|
|
181
|
-
selected_tracing_propagators?: ('tracecontext' | 'b3' | 'b3multi')[];
|
|
182
|
-
/**
|
|
183
|
-
* Session replay default privacy level
|
|
184
|
-
*/
|
|
185
|
-
default_privacy_level?: string;
|
|
186
|
-
/**
|
|
187
|
-
* Whether the request origins list to ignore when computing the page activity is used
|
|
188
|
-
*/
|
|
189
|
-
use_excluded_activity_urls?: boolean;
|
|
190
|
-
/**
|
|
191
|
-
* Whether the Worker is loaded from an external URL
|
|
192
|
-
*/
|
|
193
|
-
use_worker_url?: boolean;
|
|
194
|
-
/**
|
|
195
|
-
* Whether user frustrations are tracked
|
|
196
|
-
*/
|
|
197
|
-
track_frustrations?: boolean;
|
|
198
|
-
/**
|
|
199
|
-
* Whether the RUM views creation is handled manually
|
|
200
|
-
*/
|
|
201
|
-
track_views_manually?: boolean;
|
|
202
|
-
/**
|
|
203
|
-
* Whether user actions are tracked (deprecated in favor of track_user_interactions)
|
|
204
|
-
*/
|
|
205
|
-
track_interactions?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* Whether user actions are tracked
|
|
208
|
-
*/
|
|
209
|
-
track_user_interactions?: boolean;
|
|
210
|
-
/**
|
|
211
|
-
* Whether console.error logs, uncaught exceptions and network errors are tracked
|
|
212
|
-
*/
|
|
213
|
-
forward_errors_to_logs?: boolean;
|
|
214
|
-
/**
|
|
215
|
-
* The console.* tracked
|
|
216
|
-
*/
|
|
217
|
-
forward_console_logs?: string[] | 'all';
|
|
218
|
-
/**
|
|
219
|
-
* The reports from the Reporting API tracked
|
|
220
|
-
*/
|
|
221
|
-
forward_reports?: string[] | 'all';
|
|
222
|
-
/**
|
|
223
|
-
* Whether local encryption is used
|
|
224
|
-
*/
|
|
225
|
-
use_local_encryption?: boolean;
|
|
226
|
-
/**
|
|
227
|
-
* View tracking strategy
|
|
228
|
-
*/
|
|
229
|
-
view_tracking_strategy?: 'ActivityViewTrackingStrategy' | 'FragmentViewTrackingStrategy' | 'MixedViewTrackingStrategy' | 'NavigationViewTrackingStrategy';
|
|
230
|
-
/**
|
|
231
|
-
* Whether RUM events are tracked when the application is in Background
|
|
232
|
-
*/
|
|
233
|
-
track_background_events?: boolean;
|
|
234
|
-
/**
|
|
235
|
-
* The period between each Mobile Vital sample (in milliseconds)
|
|
236
|
-
*/
|
|
237
|
-
mobile_vitals_update_period?: number;
|
|
238
|
-
/**
|
|
239
|
-
* Whether error monitoring & crash reporting is enabled for the source platform
|
|
240
|
-
*/
|
|
241
|
-
track_errors?: boolean;
|
|
242
|
-
/**
|
|
243
|
-
* Whether automatic collection of network requests is enabled
|
|
244
|
-
*/
|
|
245
|
-
track_network_requests?: boolean;
|
|
246
|
-
/**
|
|
247
|
-
* Whether tracing features are enabled
|
|
248
|
-
*/
|
|
249
|
-
use_tracing?: boolean;
|
|
250
|
-
/**
|
|
251
|
-
* Whether native views are tracked (for cross platform SDKs)
|
|
252
|
-
*/
|
|
253
|
-
track_native_views?: boolean;
|
|
254
|
-
/**
|
|
255
|
-
* Whether native error monitoring & crash reporting is enabled (for cross platform SDKs)
|
|
256
|
-
*/
|
|
257
|
-
track_native_errors?: boolean;
|
|
258
|
-
/**
|
|
259
|
-
* Whether long task tracking is performed automatically
|
|
260
|
-
*/
|
|
261
|
-
track_native_long_tasks?: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* Whether long task tracking is performed automatically for cross platform SDKs
|
|
264
|
-
*/
|
|
265
|
-
track_cross_platform_long_tasks?: boolean;
|
|
266
|
-
/**
|
|
267
|
-
* Whether the client has provided a list of first party hosts
|
|
268
|
-
*/
|
|
269
|
-
use_first_party_hosts?: boolean;
|
|
270
|
-
/**
|
|
271
|
-
* The type of initialization the SDK used, in case multiple are supported
|
|
272
|
-
*/
|
|
273
|
-
initialization_type?: string;
|
|
274
|
-
/**
|
|
275
|
-
* Whether Flutter build and raster time tracking is enabled
|
|
276
|
-
*/
|
|
277
|
-
track_flutter_performance?: boolean;
|
|
278
|
-
/**
|
|
279
|
-
* The window duration for batches sent by the SDK (in milliseconds)
|
|
280
|
-
*/
|
|
281
|
-
batch_size?: number;
|
|
282
|
-
/**
|
|
283
|
-
* The upload frequency of batches (in milliseconds)
|
|
284
|
-
*/
|
|
285
|
-
batch_upload_frequency?: number;
|
|
286
|
-
/**
|
|
287
|
-
* Maximum number of batches processed sequencially without a delay
|
|
288
|
-
*/
|
|
289
|
-
batch_processing_level?: number;
|
|
290
|
-
/**
|
|
291
|
-
* Whether UIApplication background tasks are enabled
|
|
292
|
-
*/
|
|
293
|
-
background_tasks_enabled?: boolean;
|
|
294
|
-
/**
|
|
295
|
-
* The version of React used in a ReactNative application
|
|
296
|
-
*/
|
|
297
|
-
react_version?: string;
|
|
298
|
-
/**
|
|
299
|
-
* The version of ReactNative used in a ReactNative application
|
|
300
|
-
*/
|
|
301
|
-
react_native_version?: string;
|
|
302
|
-
/**
|
|
303
|
-
* The version of Dart used in a Flutter application
|
|
304
|
-
*/
|
|
305
|
-
dart_version?: string;
|
|
306
|
-
[k: string]: unknown;
|
|
307
|
-
};
|
|
308
|
-
[k: string]: unknown;
|
|
309
|
-
};
|
|
310
|
-
[k: string]: unknown;
|
|
311
|
-
};
|
|
312
|
-
/**
|
|
313
|
-
* Schema of common properties of Telemetry events
|
|
314
|
-
*/
|
|
315
|
-
export interface CommonTelemetryProperties {
|
|
316
|
-
/**
|
|
317
|
-
* Internal properties
|
|
318
|
-
*/
|
|
319
|
-
_oo: {
|
|
320
|
-
/**
|
|
321
|
-
* Version of the RUM event format
|
|
322
|
-
*/
|
|
323
|
-
readonly format_version: 2;
|
|
324
|
-
[k: string]: unknown;
|
|
325
|
-
};
|
|
326
|
-
/**
|
|
327
|
-
* Telemetry event type. Should specify telemetry only.
|
|
328
|
-
*/
|
|
329
|
-
readonly type: 'telemetry';
|
|
330
|
-
/**
|
|
331
|
-
* Start of the event in ms from epoch
|
|
332
|
-
*/
|
|
333
|
-
date: number;
|
|
334
|
-
/**
|
|
335
|
-
* The SDK generating the telemetry event
|
|
336
|
-
*/
|
|
337
|
-
service: string;
|
|
338
|
-
/**
|
|
339
|
-
* The source of this event
|
|
340
|
-
*/
|
|
341
|
-
readonly source: 'android' | 'ios' | 'browser' | 'flutter' | 'react-native' | 'unity';
|
|
342
|
-
/**
|
|
343
|
-
* The version of the SDK generating the telemetry event
|
|
344
|
-
*/
|
|
345
|
-
version: string;
|
|
346
|
-
/**
|
|
347
|
-
* Application properties
|
|
348
|
-
*/
|
|
349
|
-
readonly application?: {
|
|
350
|
-
/**
|
|
351
|
-
* UUID of the application
|
|
352
|
-
*/
|
|
353
|
-
id: string;
|
|
354
|
-
[k: string]: unknown;
|
|
355
|
-
};
|
|
356
|
-
/**
|
|
357
|
-
* Session properties
|
|
358
|
-
*/
|
|
359
|
-
session?: {
|
|
360
|
-
/**
|
|
361
|
-
* UUID of the session
|
|
362
|
-
*/
|
|
363
|
-
id: string;
|
|
364
|
-
[k: string]: unknown;
|
|
365
|
-
};
|
|
366
|
-
/**
|
|
367
|
-
* View properties
|
|
368
|
-
*/
|
|
369
|
-
view?: {
|
|
370
|
-
/**
|
|
371
|
-
* UUID of the view
|
|
372
|
-
*/
|
|
373
|
-
id: string;
|
|
374
|
-
[k: string]: unknown;
|
|
375
|
-
};
|
|
376
|
-
/**
|
|
377
|
-
* Action properties
|
|
378
|
-
*/
|
|
379
|
-
action?: {
|
|
380
|
-
/**
|
|
381
|
-
* UUID of the action
|
|
382
|
-
*/
|
|
383
|
-
id: string;
|
|
384
|
-
[k: string]: unknown;
|
|
385
|
-
};
|
|
386
|
-
/**
|
|
387
|
-
* Enabled experimental features
|
|
388
|
-
*/
|
|
389
|
-
readonly experimental_features?: string[];
|
|
390
|
-
[k: string]: unknown;
|
|
391
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telemetryEvent.types.js","sourceRoot":"","sources":["../../../src/domain/telemetry/telemetryEvent.types.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB;;GAEG"}
|
package/cjs/domain/user/index.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./user.types"), exports);
|
|
18
|
-
__exportStar(require("./user"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,yCAAsB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { Context } from '../../tools/serialisation/context';
|
|
2
|
-
import type { User } from './user.types';
|
|
3
|
-
/**
|
|
4
|
-
* Clone input data and ensure known user properties (id, name, email)
|
|
5
|
-
* are strings, as defined here:
|
|
6
|
-
* https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#user-related-attributes
|
|
7
|
-
*/
|
|
8
|
-
export declare function sanitizeUser(newUser: Context): Context;
|
|
9
|
-
/**
|
|
10
|
-
* Simple check to ensure user is valid
|
|
11
|
-
*/
|
|
12
|
-
export declare function checkUser(newUser: User): boolean;
|
package/cjs/domain/user/user.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.checkUser = exports.sanitizeUser = void 0;
|
|
4
|
-
var display_1 = require("../../tools/display");
|
|
5
|
-
var typeUtils_1 = require("../../tools/utils/typeUtils");
|
|
6
|
-
var polyfills_1 = require("../../tools/utils/polyfills");
|
|
7
|
-
/**
|
|
8
|
-
* Clone input data and ensure known user properties (id, name, email)
|
|
9
|
-
* are strings, as defined here:
|
|
10
|
-
* https://docs.datadoghq.com/logs/log_configuration/attributes_naming_convention/#user-related-attributes
|
|
11
|
-
*/
|
|
12
|
-
function sanitizeUser(newUser) {
|
|
13
|
-
// We shallow clone only to prevent mutation of user data.
|
|
14
|
-
var user = (0, polyfills_1.assign)({}, newUser);
|
|
15
|
-
var keys = ['id', 'name', 'email'];
|
|
16
|
-
keys.forEach(function (key) {
|
|
17
|
-
if (key in user) {
|
|
18
|
-
user[key] = String(user[key]);
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
return user;
|
|
22
|
-
}
|
|
23
|
-
exports.sanitizeUser = sanitizeUser;
|
|
24
|
-
/**
|
|
25
|
-
* Simple check to ensure user is valid
|
|
26
|
-
*/
|
|
27
|
-
function checkUser(newUser) {
|
|
28
|
-
var isValid = (0, typeUtils_1.getType)(newUser) === 'object';
|
|
29
|
-
if (!isValid) {
|
|
30
|
-
display_1.display.error('Unsupported user:', newUser);
|
|
31
|
-
}
|
|
32
|
-
return isValid;
|
|
33
|
-
}
|
|
34
|
-
exports.checkUser = checkUser;
|
|
35
|
-
//# sourceMappingURL=user.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/domain/user/user.ts"],"names":[],"mappings":";;;AACA,+CAA6C;AAC7C,yDAAqD;AACrD,yDAAoD;AAGpD;;;;GAIG;AACH,SAAgB,YAAY,CAAC,OAAgB;IAC3C,0DAA0D;IAC1D,IAAM,IAAI,GAAG,IAAA,kBAAM,EAAC,EAAE,EAAE,OAAO,CAAC,CAAA;IAChC,IAAM,IAAI,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,IAAI,CAAC,OAAO,CAAC,UAAC,GAAG;QACf,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;YAChB,IAAI,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;QAC/B,CAAC;IACH,CAAC,CAAC,CAAA;IACF,OAAO,IAAI,CAAA;AACb,CAAC;AAVD,oCAUC;AAED;;GAEG;AACH,SAAgB,SAAS,CAAC,OAAa;IACrC,IAAM,OAAO,GAAG,IAAA,mBAAO,EAAC,OAAO,CAAC,KAAK,QAAQ,CAAA;IAC7C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,iBAAO,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAA;IAC7C,CAAC;IACD,OAAO,OAAO,CAAA;AAChB,CAAC;AAND,8BAMC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.types.js","sourceRoot":"","sources":["../../../src/domain/user/user.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Subscription } from './observable';
|
|
2
|
-
/**
|
|
3
|
-
* Type helper to extract event types that have "void" data. This allows to call `notify` without a
|
|
4
|
-
* second argument. Ex:
|
|
5
|
-
*
|
|
6
|
-
* ```
|
|
7
|
-
* interface EventMap {
|
|
8
|
-
* foo: void
|
|
9
|
-
* }
|
|
10
|
-
* const LifeCycle = AbstractLifeCycle<EventMap>
|
|
11
|
-
* new LifeCycle().notify('foo')
|
|
12
|
-
* ```
|
|
13
|
-
*/
|
|
14
|
-
type EventTypesWithoutData<EventMap> = {
|
|
15
|
-
[K in keyof EventMap]: EventMap[K] extends void ? K : never;
|
|
16
|
-
}[keyof EventMap];
|
|
17
|
-
export declare class AbstractLifeCycle<EventMap> {
|
|
18
|
-
private callbacks;
|
|
19
|
-
notify<EventType extends EventTypesWithoutData<EventMap>>(eventType: EventType): void;
|
|
20
|
-
notify<EventType extends keyof EventMap>(eventType: EventType, data: EventMap[EventType]): void;
|
|
21
|
-
subscribe<EventType extends keyof EventMap>(eventType: EventType, callback: (data: EventMap[EventType]) => void): Subscription;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AbstractLifeCycle = void 0;
|
|
4
|
-
var AbstractLifeCycle = /** @class */ (function () {
|
|
5
|
-
function AbstractLifeCycle() {
|
|
6
|
-
this.callbacks = {};
|
|
7
|
-
}
|
|
8
|
-
AbstractLifeCycle.prototype.notify = function (eventType, data) {
|
|
9
|
-
var eventCallbacks = this.callbacks[eventType];
|
|
10
|
-
if (eventCallbacks) {
|
|
11
|
-
eventCallbacks.forEach(function (callback) { return callback(data); });
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
AbstractLifeCycle.prototype.subscribe = function (eventType, callback) {
|
|
15
|
-
var _this = this;
|
|
16
|
-
if (!this.callbacks[eventType]) {
|
|
17
|
-
this.callbacks[eventType] = [];
|
|
18
|
-
}
|
|
19
|
-
this.callbacks[eventType].push(callback);
|
|
20
|
-
return {
|
|
21
|
-
unsubscribe: function () {
|
|
22
|
-
_this.callbacks[eventType] = _this.callbacks[eventType].filter(function (other) { return callback !== other; });
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
return AbstractLifeCycle;
|
|
27
|
-
}());
|
|
28
|
-
exports.AbstractLifeCycle = AbstractLifeCycle;
|
|
29
|
-
//# sourceMappingURL=abstractLifeCycle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"abstractLifeCycle.js","sourceRoot":"","sources":["../../src/tools/abstractLifeCycle.ts"],"names":[],"mappings":";;;AAkBA;IAAA;QACU,cAAS,GAA6D,EAAE,CAAA;IAyBlF,CAAC;IArBC,kCAAM,GAAN,UAAO,SAAyB,EAAE,IAAc;QAC9C,IAAM,cAAc,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAA;QAChD,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,CAAC,IAAI,CAAC,EAAd,CAAc,CAAC,CAAA;QACtD,CAAC;IACH,CAAC;IAED,qCAAS,GAAT,UACE,SAAoB,EACpB,QAA6C;QAF/C,iBAaC;QATC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;YAC/B,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,EAAE,CAAA;QAChC,CAAC;QACD,IAAI,CAAC,SAAS,CAAC,SAAS,CAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACzC,OAAO;YACL,WAAW,EAAE;gBACX,KAAI,CAAC,SAAS,CAAC,SAAS,CAAC,GAAG,KAAI,CAAC,SAAS,CAAC,SAAS,CAAE,CAAC,MAAM,CAAC,UAAC,KAAK,IAAK,OAAA,QAAQ,KAAK,KAAK,EAAlB,CAAkB,CAAC,CAAA;YAC9F,CAAC;SACF,CAAA;IACH,CAAC;IACH,wBAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,8CAAiB"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BoundedBuffer = void 0;
|
|
4
|
-
var BUFFER_LIMIT = 500;
|
|
5
|
-
var BoundedBuffer = /** @class */ (function () {
|
|
6
|
-
function BoundedBuffer() {
|
|
7
|
-
this.buffer = [];
|
|
8
|
-
}
|
|
9
|
-
BoundedBuffer.prototype.add = function (callback) {
|
|
10
|
-
var length = this.buffer.push(callback);
|
|
11
|
-
if (length > BUFFER_LIMIT) {
|
|
12
|
-
this.buffer.splice(0, 1);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
BoundedBuffer.prototype.drain = function () {
|
|
16
|
-
this.buffer.forEach(function (callback) { return callback(); });
|
|
17
|
-
this.buffer.length = 0;
|
|
18
|
-
};
|
|
19
|
-
return BoundedBuffer;
|
|
20
|
-
}());
|
|
21
|
-
exports.BoundedBuffer = BoundedBuffer;
|
|
22
|
-
//# sourceMappingURL=boundedBuffer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"boundedBuffer.js","sourceRoot":"","sources":["../../src/tools/boundedBuffer.ts"],"names":[],"mappings":";;;AAAA,IAAM,YAAY,GAAG,GAAG,CAAA;AAExB;IAAA;QACU,WAAM,GAAsB,EAAE,CAAA;IAaxC,CAAC;IAXC,2BAAG,GAAH,UAAI,QAAoB;QACtB,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QACzC,IAAI,MAAM,GAAG,YAAY,EAAE,CAAC;YAC1B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QAC1B,CAAC;IACH,CAAC;IAED,6BAAK,GAAL;QACE,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,UAAC,QAAQ,IAAK,OAAA,QAAQ,EAAE,EAAV,CAAU,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAA;IACxB,CAAC;IACH,oBAAC;AAAD,CAAC,AAdD,IAcC;AAdY,sCAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function catchUserErrors<Args extends any[], R>(fn: (...args: Args) => R, errorMsg: string): (...args: Args) => R | undefined;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.catchUserErrors = void 0;
|
|
4
|
-
var display_1 = require("./display");
|
|
5
|
-
function catchUserErrors(fn, errorMsg) {
|
|
6
|
-
return function () {
|
|
7
|
-
var args = [];
|
|
8
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
9
|
-
args[_i] = arguments[_i];
|
|
10
|
-
}
|
|
11
|
-
try {
|
|
12
|
-
return fn.apply(void 0, args);
|
|
13
|
-
}
|
|
14
|
-
catch (err) {
|
|
15
|
-
display_1.display.error(errorMsg, err);
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
exports.catchUserErrors = catchUserErrors;
|
|
20
|
-
//# sourceMappingURL=catchUserErrors.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catchUserErrors.js","sourceRoot":"","sources":["../../src/tools/catchUserErrors.ts"],"names":[],"mappings":";;;AAAA,qCAAmC;AAEnC,SAAgB,eAAe,CAAwB,EAAwB,EAAE,QAAgB;IAC/F,OAAO;QAAC,cAAa;aAAb,UAAa,EAAb,qBAAa,EAAb,IAAa;YAAb,yBAAa;;QACnB,IAAI,CAAC;YACH,OAAO,EAAE,eAAI,IAAI,EAAC;QACpB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,iBAAO,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAA;QAC9B,CAAC;IACH,CAAC,CAAA;AACH,CAAC;AARD,0CAQC"}
|
package/cjs/tools/display.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Keep references on console methods to avoid triggering patched behaviors
|
|
3
|
-
*
|
|
4
|
-
* NB: in some setup, console could already be patched by another SDK.
|
|
5
|
-
* In this case, some display messages can be sent by the other SDK
|
|
6
|
-
* but we should be safe from infinite loop nonetheless.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ConsoleApiName: {
|
|
9
|
-
readonly log: "log";
|
|
10
|
-
readonly debug: "debug";
|
|
11
|
-
readonly info: "info";
|
|
12
|
-
readonly warn: "warn";
|
|
13
|
-
readonly error: "error";
|
|
14
|
-
};
|
|
15
|
-
export type ConsoleApiName = (typeof ConsoleApiName)[keyof typeof ConsoleApiName];
|
|
16
|
-
interface Display {
|
|
17
|
-
debug: typeof console.debug;
|
|
18
|
-
log: typeof console.log;
|
|
19
|
-
info: typeof console.info;
|
|
20
|
-
warn: typeof console.warn;
|
|
21
|
-
error: typeof console.error;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* When building JS bundles, some users might use a plugin[1] or configuration[2] to remove
|
|
25
|
-
* "console.*" references. This causes some issue as we expect `console.*` to be defined.
|
|
26
|
-
* As a workaround, let's use a variable alias, so those expressions won't be taken into account by
|
|
27
|
-
* simple static analysis.
|
|
28
|
-
*
|
|
29
|
-
* [1]: https://babeljs.io/docs/babel-plugin-transform-remove-console/
|
|
30
|
-
* [2]: https://github.com/terser/terser#compress-options (look for drop_console)
|
|
31
|
-
*/
|
|
32
|
-
export declare const globalConsole: Console;
|
|
33
|
-
export declare const originalConsoleMethods: Display;
|
|
34
|
-
export declare const display: Display;
|
|
35
|
-
export {};
|