@sentry/replay
Advanced tools
Comparing version 7.81.1 to 7.82.0
{ | ||
"name": "@sentry/replay", | ||
"version": "7.81.1", | ||
"version": "7.82.0", | ||
"description": "User replays for Sentry", | ||
@@ -28,3 +28,3 @@ "main": "cjs/index.js", | ||
"@babel/core": "^7.17.5", | ||
"@sentry-internal/replay-worker": "7.81.1", | ||
"@sentry-internal/replay-worker": "7.82.0", | ||
"@sentry-internal/rrweb": "2.2.0", | ||
@@ -36,6 +36,6 @@ "@sentry-internal/rrweb-snapshot": "2.2.0", | ||
"dependencies": { | ||
"@sentry-internal/tracing": "7.81.1", | ||
"@sentry/core": "7.81.1", | ||
"@sentry/types": "7.81.1", | ||
"@sentry/utils": "7.81.1" | ||
"@sentry-internal/tracing": "7.82.0", | ||
"@sentry/core": "7.82.0", | ||
"@sentry/types": "7.82.0", | ||
"@sentry/utils": "7.82.0" | ||
}, | ||
@@ -42,0 +42,0 @@ "engines": { |
@@ -1,5 +0,4 @@ | ||
import { Breadcrumb } from '@sentry/types'; | ||
import { Breadcrumb, HandlerDataDom } from '@sentry/types'; | ||
import { ReplayContainer } from '../types'; | ||
import { DomHandlerData } from './util/domUtils'; | ||
export declare const handleDomListener: (replay: ReplayContainer) => (handlerData: DomHandlerData) => void; | ||
export declare const handleDomListener: (replay: ReplayContainer) => (handlerData: HandlerDataDom) => void; | ||
/** Get the base DOM breadcrumb. */ | ||
@@ -11,3 +10,3 @@ export declare function getBaseDomBreadcrumb(target: Node | null, message: string): Breadcrumb; | ||
*/ | ||
export declare function handleDom(handlerData: DomHandlerData): Breadcrumb | null; | ||
export declare function handleDom(handlerData: HandlerDataDom): Breadcrumb | null; | ||
//# sourceMappingURL=handleDom.d.ts.map |
@@ -6,5 +6,5 @@ import { HandlerDataFetch } from '@sentry/types'; | ||
/** | ||
* Returns a listener to be added to `addInstrumentationHandler('fetch', listener)`. | ||
* Returns a listener to be added to `addFetchInstrumentationHandler(listener)`. | ||
*/ | ||
export declare function handleFetchSpanListener(replay: ReplayContainer): (handlerData: HandlerDataFetch) => void; | ||
//# sourceMappingURL=handleFetch.d.ts.map |
@@ -0,11 +1,7 @@ | ||
import { HandlerDataHistory } from '@sentry/types'; | ||
import { ReplayContainer } from '../types'; | ||
interface HistoryHandlerData { | ||
from: string; | ||
to: string; | ||
} | ||
/** | ||
* Returns a listener to be added to `addInstrumentationHandler('history', listener)`. | ||
* Returns a listener to be added to `addHistoryInstrumentationHandler(listener)`. | ||
*/ | ||
export declare function handleHistorySpanListener(replay: ReplayContainer): (handlerData: HistoryHandlerData) => void; | ||
export {}; | ||
export declare function handleHistorySpanListener(replay: ReplayContainer): (handlerData: HandlerDataHistory) => void; | ||
//# sourceMappingURL=handleHistory.d.ts.map |
@@ -6,5 +6,5 @@ import { HandlerDataXhr } from '@sentry/types'; | ||
/** | ||
* Returns a listener to be added to `addInstrumentationHandler('xhr', listener)`. | ||
* Returns a listener to be added to `addXhrInstrumentationHandler(listener)`. | ||
*/ | ||
export declare function handleXhrSpanListener(replay: ReplayContainer): (handlerData: HandlerDataXhr) => void; | ||
//# sourceMappingURL=handleXhr.d.ts.map |
import { INode } from '@sentry-internal/rrweb-snapshot'; | ||
export interface DomHandlerData { | ||
name: string; | ||
event: Node | { | ||
target: EventTarget; | ||
}; | ||
} | ||
import { HandlerDataDom } from '@sentry/types'; | ||
/** Get the closest interactive parent element, or else return the given element. */ | ||
@@ -16,3 +11,3 @@ export declare function getClosestInteractive(element: Element): Element; | ||
*/ | ||
export declare function getClickTargetNode(event: DomHandlerData['event'] | MouseEvent): Node | INode | null; | ||
export declare function getClickTargetNode(event: HandlerDataDom['event'] | MouseEvent | Node): Node | INode | null; | ||
/** Get the event target node. */ | ||
@@ -19,0 +14,0 @@ export declare function getTargetNode(event: Node | { |
import { Breadcrumb, FetchBreadcrumbData, TextEncoderInternal } from '@sentry/types'; | ||
import { FetchHint, ReplayContainer, ReplayNetworkOptions } from '../../types'; | ||
import { FetchHint, ReplayContainer, ReplayNetworkOptions, ReplayNetworkRequestOrResponse } from '../../types'; | ||
/** | ||
@@ -23,2 +23,6 @@ * Capture a fetch breadcrumb to a replay. | ||
}): void; | ||
/** Exported only for tests. */ | ||
export declare function _getResponseInfo(captureDetails: boolean, { networkCaptureBodies, textEncoder, networkResponseHeaders, }: Pick<ReplayNetworkOptions, 'networkCaptureBodies' | 'networkResponseHeaders'> & { | ||
textEncoder: TextEncoderInternal; | ||
}, response: Response | undefined, responseBodySize?: number): Promise<ReplayNetworkRequestOrResponse | undefined>; | ||
//# sourceMappingURL=fetchUtils.d.ts.map |
import { TextEncoderInternal } from '@sentry/types'; | ||
import { NetworkBody, NetworkRequestData, ReplayNetworkRequestData, ReplayNetworkRequestOrResponse, ReplayPerformanceEntry } from '../../types'; | ||
import { NetworkMetaWarning, NetworkRequestData, ReplayNetworkRequestData, ReplayNetworkRequestOrResponse, ReplayPerformanceEntry } from '../../types'; | ||
/** Get the size of a body. */ | ||
@@ -8,7 +8,10 @@ export declare function getBodySize(body: RequestInit['body'], textEncoder: TextEncoder | TextEncoderInternal): number | undefined; | ||
/** Get the string representation of a body. */ | ||
export declare function getBodyString(body: unknown): string | undefined; | ||
export declare function getBodyString(body: unknown): [ | ||
string | undefined, | ||
NetworkMetaWarning? | ||
]; | ||
/** Merge a warning into an existing network request/response. */ | ||
export declare function mergeWarning(info: ReplayNetworkRequestOrResponse | undefined, warning: NetworkMetaWarning): ReplayNetworkRequestOrResponse; | ||
/** Convert ReplayNetworkRequestData to a PerformanceEntry. */ | ||
export declare function makeNetworkReplayBreadcrumb(type: string, data: ReplayNetworkRequestData | null): ReplayPerformanceEntry<NetworkRequestData> | null; | ||
/** Get either a JSON network body, or a text representation. */ | ||
export declare function getNetworkBody(bodyText: string | undefined): NetworkBody | undefined; | ||
/** Build the request or response part of a replay network breadcrumb that was skipped. */ | ||
@@ -15,0 +18,0 @@ export declare function buildSkippedNetworkRequestOrResponse(bodySize: number | undefined): ReplayNetworkRequestOrResponse; |
@@ -99,3 +99,3 @@ import { ReplayNetworkRequestOrResponse } from './request'; | ||
export interface HistoryData { | ||
previous: string; | ||
previous: string | undefined; | ||
} | ||
@@ -102,0 +102,0 @@ export type AllEntryData = AllPerformanceEntryData | MemoryData | NetworkRequestData | HistoryData; |
type JsonObject = Record<string, unknown>; | ||
type JsonArray = unknown[]; | ||
export type NetworkBody = JsonObject | JsonArray | string; | ||
export type NetworkMetaWarning = 'MAYBE_JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'URL_SKIPPED'; | ||
export type NetworkMetaWarning = 'MAYBE_JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'URL_SKIPPED' | 'BODY_PARSE_ERROR'; | ||
interface NetworkMeta { | ||
@@ -6,0 +6,0 @@ warnings?: NetworkMetaWarning[]; |
@@ -1,5 +0,4 @@ | ||
import type { Breadcrumb } from '@sentry/types'; | ||
import type { Breadcrumb, HandlerDataDom } from '@sentry/types'; | ||
import type { ReplayContainer } from '../types'; | ||
import type { DomHandlerData } from './util/domUtils'; | ||
export declare const handleDomListener: (replay: ReplayContainer) => (handlerData: DomHandlerData) => void; | ||
export declare const handleDomListener: (replay: ReplayContainer) => (handlerData: HandlerDataDom) => void; | ||
/** Get the base DOM breadcrumb. */ | ||
@@ -11,3 +10,3 @@ export declare function getBaseDomBreadcrumb(target: Node | null, message: string): Breadcrumb; | ||
*/ | ||
export declare function handleDom(handlerData: DomHandlerData): Breadcrumb | null; | ||
export declare function handleDom(handlerData: HandlerDataDom): Breadcrumb | null; | ||
//# sourceMappingURL=handleDom.d.ts.map |
@@ -6,5 +6,5 @@ import type { HandlerDataFetch } from '@sentry/types'; | ||
/** | ||
* Returns a listener to be added to `addInstrumentationHandler('fetch', listener)`. | ||
* Returns a listener to be added to `addFetchInstrumentationHandler(listener)`. | ||
*/ | ||
export declare function handleFetchSpanListener(replay: ReplayContainer): (handlerData: HandlerDataFetch) => void; | ||
//# sourceMappingURL=handleFetch.d.ts.map |
@@ -0,11 +1,7 @@ | ||
import type { HandlerDataHistory } from '@sentry/types'; | ||
import type { ReplayContainer } from '../types'; | ||
interface HistoryHandlerData { | ||
from: string; | ||
to: string; | ||
} | ||
/** | ||
* Returns a listener to be added to `addInstrumentationHandler('history', listener)`. | ||
* Returns a listener to be added to `addHistoryInstrumentationHandler(listener)`. | ||
*/ | ||
export declare function handleHistorySpanListener(replay: ReplayContainer): (handlerData: HistoryHandlerData) => void; | ||
export {}; | ||
export declare function handleHistorySpanListener(replay: ReplayContainer): (handlerData: HandlerDataHistory) => void; | ||
//# sourceMappingURL=handleHistory.d.ts.map |
@@ -6,5 +6,5 @@ import type { HandlerDataXhr } from '@sentry/types'; | ||
/** | ||
* Returns a listener to be added to `addInstrumentationHandler('xhr', listener)`. | ||
* Returns a listener to be added to `addXhrInstrumentationHandler(listener)`. | ||
*/ | ||
export declare function handleXhrSpanListener(replay: ReplayContainer): (handlerData: HandlerDataXhr) => void; | ||
//# sourceMappingURL=handleXhr.d.ts.map |
import type { INode } from '@sentry-internal/rrweb-snapshot'; | ||
export interface DomHandlerData { | ||
name: string; | ||
event: Node | { | ||
target: EventTarget; | ||
}; | ||
} | ||
import type { HandlerDataDom } from '@sentry/types'; | ||
/** Get the closest interactive parent element, or else return the given element. */ | ||
@@ -16,3 +11,3 @@ export declare function getClosestInteractive(element: Element): Element; | ||
*/ | ||
export declare function getClickTargetNode(event: DomHandlerData['event'] | MouseEvent): Node | INode | null; | ||
export declare function getClickTargetNode(event: HandlerDataDom['event'] | MouseEvent | Node): Node | INode | null; | ||
/** Get the event target node. */ | ||
@@ -19,0 +14,0 @@ export declare function getTargetNode(event: Node | { |
import type { Breadcrumb, FetchBreadcrumbData, TextEncoderInternal } from '@sentry/types'; | ||
import type { FetchHint, ReplayContainer, ReplayNetworkOptions } from '../../types'; | ||
import type { FetchHint, ReplayContainer, ReplayNetworkOptions, ReplayNetworkRequestOrResponse } from '../../types'; | ||
/** | ||
@@ -23,2 +23,6 @@ * Capture a fetch breadcrumb to a replay. | ||
}): void; | ||
/** Exported only for tests. */ | ||
export declare function _getResponseInfo(captureDetails: boolean, { networkCaptureBodies, textEncoder, networkResponseHeaders, }: Pick<ReplayNetworkOptions, 'networkCaptureBodies' | 'networkResponseHeaders'> & { | ||
textEncoder: TextEncoderInternal; | ||
}, response: Response | undefined, responseBodySize?: number): Promise<ReplayNetworkRequestOrResponse | undefined>; | ||
//# sourceMappingURL=fetchUtils.d.ts.map |
import type { TextEncoderInternal } from '@sentry/types'; | ||
import type { NetworkBody, NetworkRequestData, ReplayNetworkRequestData, ReplayNetworkRequestOrResponse, ReplayPerformanceEntry } from '../../types'; | ||
import type { NetworkMetaWarning, NetworkRequestData, ReplayNetworkRequestData, ReplayNetworkRequestOrResponse, ReplayPerformanceEntry } from '../../types'; | ||
/** Get the size of a body. */ | ||
@@ -8,7 +8,7 @@ export declare function getBodySize(body: RequestInit['body'], textEncoder: TextEncoder | TextEncoderInternal): number | undefined; | ||
/** Get the string representation of a body. */ | ||
export declare function getBodyString(body: unknown): string | undefined; | ||
export declare function getBodyString(body: unknown): [string | undefined, NetworkMetaWarning?]; | ||
/** Merge a warning into an existing network request/response. */ | ||
export declare function mergeWarning(info: ReplayNetworkRequestOrResponse | undefined, warning: NetworkMetaWarning): ReplayNetworkRequestOrResponse; | ||
/** Convert ReplayNetworkRequestData to a PerformanceEntry. */ | ||
export declare function makeNetworkReplayBreadcrumb(type: string, data: ReplayNetworkRequestData | null): ReplayPerformanceEntry<NetworkRequestData> | null; | ||
/** Get either a JSON network body, or a text representation. */ | ||
export declare function getNetworkBody(bodyText: string | undefined): NetworkBody | undefined; | ||
/** Build the request or response part of a replay network breadcrumb that was skipped. */ | ||
@@ -15,0 +15,0 @@ export declare function buildSkippedNetworkRequestOrResponse(bodySize: number | undefined): ReplayNetworkRequestOrResponse; |
@@ -99,3 +99,3 @@ import type { ReplayNetworkRequestOrResponse } from './request'; | ||
export interface HistoryData { | ||
previous: string; | ||
previous: string | undefined; | ||
} | ||
@@ -102,0 +102,0 @@ export type AllEntryData = AllPerformanceEntryData | MemoryData | NetworkRequestData | HistoryData; |
type JsonObject = Record<string, unknown>; | ||
type JsonArray = unknown[]; | ||
export type NetworkBody = JsonObject | JsonArray | string; | ||
export type NetworkMetaWarning = 'MAYBE_JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'URL_SKIPPED'; | ||
export type NetworkMetaWarning = 'MAYBE_JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'URL_SKIPPED' | 'BODY_PARSE_ERROR'; | ||
interface NetworkMeta { | ||
@@ -6,0 +6,0 @@ warnings?: NetworkMetaWarning[]; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2291894
20680
+ Added@sentry-internal/tracing@7.82.0(transitive)
+ Added@sentry/core@7.82.0(transitive)
+ Added@sentry/types@7.82.0(transitive)
+ Added@sentry/utils@7.82.0(transitive)
- Removed@sentry-internal/tracing@7.81.1(transitive)
- Removed@sentry/core@7.81.1(transitive)
- Removed@sentry/types@7.81.1(transitive)
- Removed@sentry/utils@7.81.1(transitive)
Updated@sentry/core@7.82.0
Updated@sentry/types@7.82.0
Updated@sentry/utils@7.82.0