@sentry/replay 8.0.0-alpha.4 → 10.58.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 +18 -11
- package/README.md +8 -17
- package/build/npm/cjs/index.js +8390 -0
- package/build/npm/cjs/index.js.map +1 -0
- package/build/npm/cjs/worker-bundler.js +1 -0
- package/build/npm/esm/index.js +8387 -0
- package/build/npm/esm/index.js.map +1 -0
- package/build/npm/esm/package.json +1 -0
- package/build/npm/esm/worker-bundler.js +1 -0
- package/{types → build/npm/types}/constants.d.ts +3 -2
- package/build/npm/types/constants.d.ts.map +1 -0
- package/{types → build/npm/types}/coreHandlers/handleAfterSendEvent.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/handleAfterSendEvent.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/handleBeforeSendEvent.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/handleBeforeSendEvent.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/handleBreadcrumbs.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/handleBreadcrumbs.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/handleClick.d.ts +2 -2
- package/{types → build/npm/types}/coreHandlers/handleClick.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/handleDom.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/handleDom.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/handleGlobalEvent.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/handleGlobalEvent.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/handleHistory.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/handleHistory.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/handleKeyboardEvent.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/handleKeyboardEvent.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/handleNetworkBreadcrumbs.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/handleNetworkBreadcrumbs.d.ts.map +1 -1
- package/build/npm/types/coreHandlers/performanceObserver.d.ts.map +1 -0
- package/{types → build/npm/types}/coreHandlers/util/addBreadcrumbEvent.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/util/addBreadcrumbEvent.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/util/addFeedbackBreadcrumb.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/util/addFeedbackBreadcrumb.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/util/addNetworkBreadcrumb.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/util/domUtils.d.ts +1 -1
- package/{types → build/npm/types}/coreHandlers/util/domUtils.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/util/fetchUtils.d.ts +4 -3
- package/build/npm/types/coreHandlers/util/fetchUtils.d.ts.map +1 -0
- package/{types → build/npm/types}/coreHandlers/util/getAttributesToRecord.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/util/networkUtils.d.ts +2 -3
- package/build/npm/types/coreHandlers/util/networkUtils.d.ts.map +1 -0
- package/{types → build/npm/types}/coreHandlers/util/onWindowOpen.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/util/shouldSampleForBufferEvent.d.ts +2 -2
- package/{types → build/npm/types}/coreHandlers/util/shouldSampleForBufferEvent.d.ts.map +1 -1
- package/{types → build/npm/types}/coreHandlers/util/xhrUtils.d.ts +4 -3
- package/build/npm/types/coreHandlers/util/xhrUtils.d.ts.map +1 -0
- package/{types → build/npm/types}/eventBuffer/EventBufferArray.d.ts +2 -0
- package/build/npm/types/eventBuffer/EventBufferArray.d.ts.map +1 -0
- package/{types → build/npm/types}/eventBuffer/EventBufferCompressionWorker.d.ts +5 -3
- package/build/npm/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +1 -0
- package/{types → build/npm/types}/eventBuffer/EventBufferProxy.d.ts +5 -1
- package/build/npm/types/eventBuffer/EventBufferProxy.d.ts.map +1 -0
- package/{types → build/npm/types}/eventBuffer/WorkerHandler.d.ts +3 -1
- package/build/npm/types/eventBuffer/WorkerHandler.d.ts.map +1 -0
- package/{types → build/npm/types}/eventBuffer/index.d.ts +2 -2
- package/build/npm/types/eventBuffer/index.d.ts.map +1 -0
- package/{types → build/npm/types}/index.d.ts +0 -1
- package/{types → build/npm/types}/index.d.ts.map +1 -1
- package/{types → build/npm/types}/integration.d.ts +26 -13
- package/build/npm/types/integration.d.ts.map +1 -0
- package/{types → build/npm/types}/replay.d.ts +32 -27
- package/build/npm/types/replay.d.ts.map +1 -0
- package/{types → build/npm/types}/session/Session.d.ts.map +1 -1
- package/build/npm/types/session/fetchSession.d.ts +6 -0
- package/build/npm/types/session/fetchSession.d.ts.map +1 -0
- package/{types → build/npm/types}/session/loadOrCreateSession.d.ts +1 -2
- package/build/npm/types/session/loadOrCreateSession.d.ts.map +1 -0
- package/{types → build/npm/types}/types/performance.d.ts +16 -4
- package/{types → build/npm/types}/types/performance.d.ts.map +1 -1
- package/{types → build/npm/types}/types/replay.d.ts +53 -42
- package/build/npm/types/types/replay.d.ts.map +1 -0
- package/{types → build/npm/types}/types/replayFrame.d.ts +14 -7
- package/build/npm/types/types/replayFrame.d.ts.map +1 -0
- package/{types → build/npm/types}/types/request.d.ts +1 -1
- package/build/npm/types/types/request.d.ts.map +1 -0
- package/{types-ts3.8 → build/npm/types}/types/rrweb.d.ts +64 -60
- package/{types → build/npm/types}/types/rrweb.d.ts.map +1 -1
- package/{types → build/npm/types}/util/addEvent.d.ts.map +1 -1
- package/{types → build/npm/types}/util/addGlobalListeners.d.ts.map +1 -1
- package/build/npm/types/util/createPerformanceEntries.d.ts +52 -0
- package/build/npm/types/util/createPerformanceEntries.d.ts.map +1 -0
- package/{types → build/npm/types}/util/createPerformanceSpans.d.ts.map +1 -1
- package/{types → build/npm/types}/util/createReplayEnvelope.d.ts +1 -1
- package/{types → build/npm/types}/util/createReplayEnvelope.d.ts.map +1 -1
- package/{types → build/npm/types}/util/debounce.d.ts.map +1 -1
- package/{types → build/npm/types}/util/eventUtils.d.ts +1 -1
- package/{types → build/npm/types}/util/eventUtils.d.ts.map +1 -1
- package/{types → build/npm/types}/util/getPrivacyOptions.d.ts +3 -3
- package/build/npm/types/util/getPrivacyOptions.d.ts.map +1 -0
- package/build/npm/types/util/getRecordingSamplingOptions.d.ts +10 -0
- package/build/npm/types/util/getRecordingSamplingOptions.d.ts.map +1 -0
- package/{types → build/npm/types}/util/handleRecordingEmit.d.ts +1 -0
- package/build/npm/types/util/handleRecordingEmit.d.ts.map +1 -0
- package/{types → build/npm/types}/util/isRrwebError.d.ts +1 -1
- package/{types → build/npm/types}/util/isRrwebError.d.ts.map +1 -1
- package/build/npm/types/util/logger.d.ts +24 -0
- package/build/npm/types/util/logger.d.ts.map +1 -0
- package/{types → build/npm/types}/util/maskAttribute.d.ts +2 -0
- package/{types → build/npm/types}/util/maskAttribute.d.ts.map +1 -1
- package/{types → build/npm/types}/util/prepareRecordingData.d.ts +1 -1
- package/{types → build/npm/types}/util/prepareRecordingData.d.ts.map +1 -1
- package/{types → build/npm/types}/util/prepareReplayEvent.d.ts +2 -5
- package/build/npm/types/util/prepareReplayEvent.d.ts.map +1 -0
- package/build/npm/types/util/resetReplayIdOnDynamicSamplingContext.d.ts +14 -0
- package/build/npm/types/util/resetReplayIdOnDynamicSamplingContext.d.ts.map +1 -0
- package/build/npm/types/util/rrweb.d.ts +7 -0
- package/build/npm/types/util/rrweb.d.ts.map +1 -0
- package/{types → build/npm/types}/util/sendReplay.d.ts.map +1 -1
- package/{types → build/npm/types}/util/sendReplayRequest.d.ts +8 -2
- package/build/npm/types/util/sendReplayRequest.d.ts.map +1 -0
- package/{types → build/npm/types}/util/shouldFilterRequest.d.ts.map +1 -1
- package/build/npm/types/worker-bundler.d.ts +2 -0
- package/build/npm/types/worker-bundler.d.ts.map +1 -0
- package/{types-ts3.8 → build/npm/types-ts3.8}/constants.d.ts +3 -2
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleAfterSendEvent.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleBeforeSendEvent.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleBreadcrumbs.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleClick.d.ts +2 -2
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleDom.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleGlobalEvent.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleHistory.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleKeyboardEvent.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/handleNetworkBreadcrumbs.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addBreadcrumbEvent.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addFeedbackBreadcrumb.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/domUtils.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/fetchUtils.d.ts +4 -3
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/networkUtils.d.ts +2 -6
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/shouldSampleForBufferEvent.d.ts +2 -2
- package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/xhrUtils.d.ts +4 -3
- package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferArray.d.ts +2 -0
- package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferCompressionWorker.d.ts +5 -3
- package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/EventBufferProxy.d.ts +4 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/WorkerHandler.d.ts +3 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/index.d.ts +2 -2
- package/{types-ts3.8 → build/npm/types-ts3.8}/index.d.ts +0 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/integration.d.ts +26 -13
- package/{types-ts3.8 → build/npm/types-ts3.8}/replay.d.ts +32 -27
- package/{types-ts3.8 → build/npm/types-ts3.8}/session/fetchSession.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/session/loadOrCreateSession.d.ts +1 -2
- package/{types-ts3.8 → build/npm/types-ts3.8}/types/performance.d.ts +16 -4
- package/{types-ts3.8 → build/npm/types-ts3.8}/types/replay.d.ts +53 -42
- package/{types-ts3.8 → build/npm/types-ts3.8}/types/replayFrame.d.ts +14 -7
- package/{types-ts3.8 → build/npm/types-ts3.8}/types/request.d.ts +1 -1
- package/{types → build/npm/types-ts3.8}/types/rrweb.d.ts +64 -60
- package/build/npm/types-ts3.8/util/createPerformanceEntries.d.ts +52 -0
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/createReplayEnvelope.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/eventUtils.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/getPrivacyOptions.d.ts +3 -3
- package/build/npm/types-ts3.8/util/getRecordingSamplingOptions.d.ts +10 -0
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/handleRecordingEmit.d.ts +1 -0
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/isRrwebError.d.ts +1 -1
- package/build/npm/types-ts3.8/util/logger.d.ts +24 -0
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/maskAttribute.d.ts +2 -0
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/prepareRecordingData.d.ts +1 -1
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/prepareReplayEvent.d.ts +2 -5
- package/build/npm/types-ts3.8/util/resetReplayIdOnDynamicSamplingContext.d.ts +14 -0
- package/build/npm/types-ts3.8/util/rrweb.d.ts +7 -0
- package/{types-ts3.8 → build/npm/types-ts3.8}/util/sendReplayRequest.d.ts +8 -2
- package/build/npm/types-ts3.8/worker-bundler.d.ts +2 -0
- package/package.json +65 -27
- package/cjs/index.js +0 -9382
- package/cjs/index.js.map +0 -1
- package/esm/index.js +0 -9375
- package/esm/index.js.map +0 -1
- package/esm/package.json +0 -1
- package/types/constants.d.ts.map +0 -1
- package/types/coreHandlers/performanceObserver.d.ts.map +0 -1
- package/types/coreHandlers/util/fetchUtils.d.ts.map +0 -1
- package/types/coreHandlers/util/networkUtils.d.ts.map +0 -1
- package/types/coreHandlers/util/xhrUtils.d.ts.map +0 -1
- package/types/eventBuffer/EventBufferArray.d.ts.map +0 -1
- package/types/eventBuffer/EventBufferCompressionWorker.d.ts.map +0 -1
- package/types/eventBuffer/EventBufferProxy.d.ts.map +0 -1
- package/types/eventBuffer/WorkerHandler.d.ts.map +0 -1
- package/types/eventBuffer/index.d.ts.map +0 -1
- package/types/integration.d.ts.map +0 -1
- package/types/replay.d.ts.map +0 -1
- package/types/session/fetchSession.d.ts +0 -6
- package/types/session/fetchSession.d.ts.map +0 -1
- package/types/session/index.d.ts +0 -2
- package/types/session/index.d.ts.map +0 -1
- package/types/session/loadOrCreateSession.d.ts.map +0 -1
- package/types/types/deprecated.d.ts +0 -16
- package/types/types/deprecated.d.ts.map +0 -1
- package/types/types/replay.d.ts.map +0 -1
- package/types/types/replayFrame.d.ts.map +0 -1
- package/types/types/request.d.ts.map +0 -1
- package/types/util/createPerformanceEntries.d.ts +0 -13
- package/types/util/createPerformanceEntries.d.ts.map +0 -1
- package/types/util/getPrivacyOptions.d.ts.map +0 -1
- package/types/util/handleRecordingEmit.d.ts.map +0 -1
- package/types/util/log.d.ts +0 -10
- package/types/util/log.d.ts.map +0 -1
- package/types/util/prepareReplayEvent.d.ts.map +0 -1
- package/types/util/sendReplayRequest.d.ts.map +0 -1
- package/types-ts3.8/session/index.d.ts +0 -2
- package/types-ts3.8/types/deprecated.d.ts +0 -16
- package/types-ts3.8/util/createPerformanceEntries.d.ts +0 -13
- package/types-ts3.8/util/log.d.ts +0 -10
- /package/{types → build/npm/types}/coreHandlers/performanceObserver.d.ts +0 -0
- /package/{types → build/npm/types}/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -0
- /package/{types → build/npm/types}/coreHandlers/util/getAttributesToRecord.d.ts +0 -0
- /package/{types → build/npm/types}/coreHandlers/util/onWindowOpen.d.ts +0 -0
- /package/{types → build/npm/types}/debug-build.d.ts +0 -0
- /package/{types → build/npm/types}/debug-build.d.ts.map +0 -0
- /package/{types → build/npm/types}/eventBuffer/error.d.ts +0 -0
- /package/{types → build/npm/types}/eventBuffer/error.d.ts.map +0 -0
- /package/{types → build/npm/types}/session/Session.d.ts +0 -0
- /package/{types → build/npm/types}/session/clearSession.d.ts +0 -0
- /package/{types → build/npm/types}/session/clearSession.d.ts.map +0 -0
- /package/{types → build/npm/types}/session/createSession.d.ts +0 -0
- /package/{types → build/npm/types}/session/createSession.d.ts.map +0 -0
- /package/{types → build/npm/types}/session/saveSession.d.ts +0 -0
- /package/{types → build/npm/types}/session/saveSession.d.ts.map +0 -0
- /package/{types → build/npm/types}/session/shouldRefreshSession.d.ts +0 -0
- /package/{types → build/npm/types}/session/shouldRefreshSession.d.ts.map +0 -0
- /package/{types → build/npm/types}/types/index.d.ts +0 -0
- /package/{types → build/npm/types}/types/index.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/addEvent.d.ts +0 -0
- /package/{types → build/npm/types}/util/addGlobalListeners.d.ts +0 -0
- /package/{types → build/npm/types}/util/addMemoryEntry.d.ts +0 -0
- /package/{types → build/npm/types}/util/addMemoryEntry.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/createBreadcrumb.d.ts +0 -0
- /package/{types → build/npm/types}/util/createBreadcrumb.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/createPerformanceSpans.d.ts +0 -0
- /package/{types → build/npm/types}/util/debounce.d.ts +0 -0
- /package/{types → build/npm/types}/util/getReplay.d.ts +0 -0
- /package/{types → build/npm/types}/util/getReplay.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/hasSessionStorage.d.ts +0 -0
- /package/{types → build/npm/types}/util/hasSessionStorage.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/isExpired.d.ts +0 -0
- /package/{types → build/npm/types}/util/isExpired.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/isSampled.d.ts +0 -0
- /package/{types → build/npm/types}/util/isSampled.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/isSessionExpired.d.ts +0 -0
- /package/{types → build/npm/types}/util/isSessionExpired.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/sendReplay.d.ts +0 -0
- /package/{types → build/npm/types}/util/shouldFilterRequest.d.ts +0 -0
- /package/{types → build/npm/types}/util/throttle.d.ts +0 -0
- /package/{types → build/npm/types}/util/throttle.d.ts.map +0 -0
- /package/{types → build/npm/types}/util/timestamp.d.ts +0 -0
- /package/{types → build/npm/types}/util/timestamp.d.ts.map +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/performanceObserver.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/addNetworkBreadcrumb.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/getAttributesToRecord.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/coreHandlers/util/onWindowOpen.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/debug-build.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/eventBuffer/error.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/session/Session.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/session/clearSession.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/session/createSession.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/session/saveSession.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/session/shouldRefreshSession.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/types/index.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addEvent.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addGlobalListeners.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/addMemoryEntry.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/createBreadcrumb.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/createPerformanceSpans.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/debounce.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/getReplay.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/hasSessionStorage.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isExpired.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isSampled.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/isSessionExpired.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/sendReplay.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/shouldFilterRequest.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/throttle.d.ts +0 -0
- /package/{types-ts3.8 → build/npm/types-ts3.8}/util/timestamp.d.ts +0 -0
package/LICENSE
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
|
|
1
|
+
MIT License
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
|
5
|
-
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
6
|
-
persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
3
|
+
Copyright (c) 2022 Functional Software, Inc. dba Sentry
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
Software
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
9
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
10
|
+
so, subject to the following conditions:
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -10,6 +10,11 @@
|
|
|
10
10
|
[](https://www.npmjs.com/package/@sentry/replay)
|
|
11
11
|
[](https://www.npmjs.com/package/@sentry/replay)
|
|
12
12
|
|
|
13
|
+
> [!NOTE]
|
|
14
|
+
> This package is an internal library published for use by Sentry-owned JavaScript SDK packages. It is re-exported from
|
|
15
|
+
> `@sentry/browser` and other browser-related SDKs like `@sentry/react` and `@sentry/vue`. It is not part of the public
|
|
16
|
+
> API contract and may change in any release. Do not rely on SemVer compatibility if you depend on it directly.
|
|
17
|
+
|
|
13
18
|
## Pre-requisites
|
|
14
19
|
|
|
15
20
|
`@sentry/replay` requires Node 14+, and browsers newer than IE11.
|
|
@@ -69,7 +74,7 @@ Sentry.init({
|
|
|
69
74
|
|
|
70
75
|
// Sometime later
|
|
71
76
|
const { Replay } = await import('@sentry/browser');
|
|
72
|
-
const client = Sentry.
|
|
77
|
+
const client = Sentry.getClient<BrowserClient>();
|
|
73
78
|
|
|
74
79
|
// Client can be undefined
|
|
75
80
|
client?.addIntegration(Sentry.replayIntegration());
|
|
@@ -102,9 +107,9 @@ Sentry.init({
|
|
|
102
107
|
integrations: [replay]
|
|
103
108
|
});
|
|
104
109
|
|
|
105
|
-
const client = Sentry.
|
|
110
|
+
const client = Sentry.getClient<BrowserClient>();
|
|
106
111
|
|
|
107
|
-
// Add replay integration, will start
|
|
112
|
+
// Add replay integration, will start recording
|
|
108
113
|
client?.addIntegration(replay);
|
|
109
114
|
|
|
110
115
|
// Stop recording
|
|
@@ -209,20 +214,6 @@ The following options can be configured as options to the integration, in `Sentr
|
|
|
209
214
|
| unmask | Array<string> | [] | Unmask all elements that match the given DOM selectors. Useful when using `maskAllText`. See [privacy](#masking) section for an example. |
|
|
210
215
|
| ignore | Array<string> | `.sentry-ignore, [data-sentry-ignore]` | Ignores all events on the matching input fields. See [privacy](#ignoring) section for an example. |
|
|
211
216
|
|
|
212
|
-
#### Deprecated options
|
|
213
|
-
|
|
214
|
-
In order to streamline our privacy options, the following have been deprecated in favor for the respective options
|
|
215
|
-
above.
|
|
216
|
-
|
|
217
|
-
| deprecated key | replaced by | description |
|
|
218
|
-
| ---------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
219
|
-
| maskInputOptions | mask | Use CSS selectors in `mask` in order to mask all inputs of a certain type. For example, `input[type="address"]` |
|
|
220
|
-
| blockSelector | block | The selector(s) can be moved directly in the `block` array. |
|
|
221
|
-
| blockClass | block | Convert the class name to a CSS selector and add to `block` array. For example, `first-name` becomes `.first-name`. Regexes can be moved as-is. |
|
|
222
|
-
| maskClass | mask | Convert the class name to a CSS selector and add to `mask` array. For example, `first-name` becomes `.first-name`. Regexes can be moved as-is. |
|
|
223
|
-
| maskSelector | mask | The selector(s) can be moved directly in the `mask` array. |
|
|
224
|
-
| ignoreClass | ignore | Convert the class name to a CSS selector and add to `ignore` array. For example, `first-name` becomes `.first-name`. Regexes can be moved as-is. |
|
|
225
|
-
|
|
226
217
|
## Privacy
|
|
227
218
|
|
|
228
219
|
There are several ways to deal with PII. By default, the integration will mask all text content with `*` and block all
|