@sentry/replay 7.84.0 → 7.86.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/cjs/index.js +63 -6
- package/cjs/index.js.map +1 -1
- package/esm/index.js +64 -7
- package/esm/index.js.map +1 -1
- package/package.json +6 -6
- package/types/coreHandlers/handleGlobalEvent.d.ts +1 -1
- package/types/coreHandlers/util/networkUtils.d.ts.map +1 -1
- package/types/coreHandlers/util/xhrUtils.d.ts +13 -1
- package/types/coreHandlers/util/xhrUtils.d.ts.map +1 -1
- package/types/types/request.d.ts +1 -1
- package/types/types/request.d.ts.map +1 -1
- package/types-ts3.8/coreHandlers/handleGlobalEvent.d.ts +1 -1
- package/types-ts3.8/coreHandlers/util/xhrUtils.d.ts +16 -1
- package/types-ts3.8/types/request.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/replay",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.86.0",
|
|
4
4
|
"description": "User replays for Sentry",
|
|
5
5
|
"main": "cjs/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -25,17 +25,17 @@
|
|
|
25
25
|
"homepage": "https://docs.sentry.io/platforms/javascript/session-replay/",
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@babel/core": "^7.17.5",
|
|
28
|
-
"@sentry-internal/replay-worker": "7.
|
|
28
|
+
"@sentry-internal/replay-worker": "7.86.0",
|
|
29
29
|
"@sentry-internal/rrweb": "2.2.0",
|
|
30
30
|
"@sentry-internal/rrweb-snapshot": "2.2.0",
|
|
31
31
|
"fflate": "^0.8.1",
|
|
32
32
|
"jsdom-worker": "^0.2.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@sentry-internal/tracing": "7.
|
|
36
|
-
"@sentry/core": "7.
|
|
37
|
-
"@sentry/types": "7.
|
|
38
|
-
"@sentry/utils": "7.
|
|
35
|
+
"@sentry-internal/tracing": "7.86.0",
|
|
36
|
+
"@sentry/core": "7.86.0",
|
|
37
|
+
"@sentry/types": "7.86.0",
|
|
38
|
+
"@sentry/utils": "7.86.0"
|
|
39
39
|
},
|
|
40
40
|
"engines": {
|
|
41
41
|
"node": ">=12"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Event, EventHint } from '@sentry/types';
|
|
2
2
|
import type { ReplayContainer } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
* Returns a listener to be added to `
|
|
4
|
+
* Returns a listener to be added to `addEventProcessor(listener)`.
|
|
5
5
|
*/
|
|
6
6
|
export declare function handleGlobalEventListener(replay: ReplayContainer, includeAfterSendEventHandling?: boolean): (event: Event, hint: EventHint) => Event | null;
|
|
7
7
|
//# sourceMappingURL=handleGlobalEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"networkUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/networkUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAKzD,OAAO,KAAK,EAEV,kBAAkB,EAClB,kBAAkB,EAClB,wBAAwB,EACxB,8BAA8B,EAC9B,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAErB,8BAA8B;AAC9B,wBAAgB,WAAW,CACzB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,EACzB,WAAW,EAAE,WAAW,GAAG,mBAAmB,GAC7C,MAAM,GAAG,SAAS,CAiCpB;AAED,4DAA4D;AAC5D,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAO9F;AAED,+CAA+C;AAC/C,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,CAAC,MAAM,GAAG,SAAS,EAAE,kBAAkB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"networkUt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BAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,cAAc,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CASnH;AA8DD,oDAAoD;AACpD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO,CAI1E;AAED,yBAAyB;AACzB,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAA0B,GAAG,MAAM,CAoBjF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Breadcrumb, TextEncoderInternal, XhrBreadcrumbData } from '@sentry/types';
|
|
2
|
-
import type { ReplayContainer, ReplayNetworkOptions, XhrHint } from '../../types';
|
|
2
|
+
import type { NetworkMetaWarning, ReplayContainer, ReplayNetworkOptions, XhrHint } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Capture an XHR breadcrumb to a replay.
|
|
5
5
|
* This adds additional data (where approriate).
|
|
@@ -19,4 +19,16 @@ export declare function enrichXhrBreadcrumb(breadcrumb: Breadcrumb & {
|
|
|
19
19
|
}, hint: Partial<XhrHint>, options: {
|
|
20
20
|
textEncoder: TextEncoderInternal;
|
|
21
21
|
}): void;
|
|
22
|
+
/**
|
|
23
|
+
* Get the string representation of the XHR response.
|
|
24
|
+
* Based on MDN, these are the possible types of the response:
|
|
25
|
+
* string
|
|
26
|
+
* ArrayBuffer
|
|
27
|
+
* Blob
|
|
28
|
+
* Document
|
|
29
|
+
* POJO
|
|
30
|
+
*
|
|
31
|
+
* Exported only for tests.
|
|
32
|
+
*/
|
|
33
|
+
export declare function _parseXhrResponse(body: XMLHttpRequest['response'], responseType: XMLHttpRequest['responseType']): [string | undefined, NetworkMetaWarning?];
|
|
22
34
|
//# sourceMappingURL=xhrUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xhrUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/xhrUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIxF,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"xhrUtils.d.ts","sourceRoot":"","sources":["../../../../../src/coreHandlers/util/xhrUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAIxF,OAAO,KAAK,EACV,kBAAkB,EAClB,eAAe,EACf,oBAAoB,EAEpB,OAAO,EACR,MAAM,aAAa,CAAC;AAcrB;;;GAGG;AACH,wBAAsB,4BAA4B,CAChD,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,EACpD,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,EACtB,OAAO,EAAE,oBAAoB,GAAG;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,GAC1D,OAAO,CAAC,IAAI,CAAC,CAUf;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,UAAU,GAAG;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,EACpD,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,EACtB,OAAO,EAAE;IAAE,WAAW,EAAE,mBAAmB,CAAA;CAAE,GAC5C,IAAI,CAkBN;AA+FD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,cAAc,CAAC,UAAU,CAAC,EAChC,YAAY,EAAE,cAAc,CAAC,cAAc,CAAC,GAC3C,CAAC,MAAM,GAAG,SAAS,EAAE,kBAAkB,CAAC,CAAC,CAyB3C"}
|
package/types/types/request.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type JsonObject = Record<string, unknown>;
|
|
2
2
|
type JsonArray = unknown[];
|
|
3
3
|
export type NetworkBody = JsonObject | JsonArray | string;
|
|
4
|
-
export type NetworkMetaWarning = 'MAYBE_JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'URL_SKIPPED' | 'BODY_PARSE_ERROR';
|
|
4
|
+
export type NetworkMetaWarning = 'MAYBE_JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'URL_SKIPPED' | 'BODY_PARSE_ERROR' | 'UNPARSEABLE_BODY_TYPE';
|
|
5
5
|
interface NetworkMeta {
|
|
6
6
|
warnings?: NetworkMetaWarning[];
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/types/request.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1C,KAAK,SAAS,GAAG,OAAO,EAAE,CAAC;AAE3B,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../../../src/types/request.ts"],"names":[],"mappings":"AAAA,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAC1C,KAAK,SAAS,GAAG,OAAO,EAAE,CAAC;AAE3B,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AAE1D,MAAM,MAAM,kBAAkB,GAC1B,sBAAsB,GACtB,gBAAgB,GAChB,aAAa,GACb,kBAAkB,GAClB,uBAAuB,CAAC;AAE5B,UAAU,WAAW;IACnB,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,8BAA8B;IAC7C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,WAAW,CAAC;CACrB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event, EventHint } from '@sentry/types';
|
|
2
2
|
import { ReplayContainer } from '../types';
|
|
3
3
|
/**
|
|
4
|
-
* Returns a listener to be added to `
|
|
4
|
+
* Returns a listener to be added to `addEventProcessor(listener)`.
|
|
5
5
|
*/
|
|
6
6
|
export declare function handleGlobalEventListener(replay: ReplayContainer, includeAfterSendEventHandling?: boolean): (event: Event, hint: EventHint) => Event | null;
|
|
7
7
|
//# sourceMappingURL=handleGlobalEvent.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Breadcrumb, TextEncoderInternal, XhrBreadcrumbData } from '@sentry/types';
|
|
2
|
-
import { ReplayContainer, ReplayNetworkOptions, XhrHint } from '../../types';
|
|
2
|
+
import { NetworkMetaWarning, ReplayContainer, ReplayNetworkOptions, XhrHint } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Capture an XHR breadcrumb to a replay.
|
|
5
5
|
* This adds additional data (where approriate).
|
|
@@ -19,4 +19,19 @@ export declare function enrichXhrBreadcrumb(breadcrumb: Breadcrumb & {
|
|
|
19
19
|
}, hint: Partial<XhrHint>, options: {
|
|
20
20
|
textEncoder: TextEncoderInternal;
|
|
21
21
|
}): void;
|
|
22
|
+
/**
|
|
23
|
+
* Get the string representation of the XHR response.
|
|
24
|
+
* Based on MDN, these are the possible types of the response:
|
|
25
|
+
* string
|
|
26
|
+
* ArrayBuffer
|
|
27
|
+
* Blob
|
|
28
|
+
* Document
|
|
29
|
+
* POJO
|
|
30
|
+
*
|
|
31
|
+
* Exported only for tests.
|
|
32
|
+
*/
|
|
33
|
+
export declare function _parseXhrResponse(body: XMLHttpRequest['response'], responseType: XMLHttpRequest['responseType']): [
|
|
34
|
+
string | undefined,
|
|
35
|
+
NetworkMetaWarning?
|
|
36
|
+
];
|
|
22
37
|
//# sourceMappingURL=xhrUtils.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
type JsonObject = Record<string, unknown>;
|
|
2
2
|
type JsonArray = unknown[];
|
|
3
3
|
export type NetworkBody = JsonObject | JsonArray | string;
|
|
4
|
-
export type NetworkMetaWarning = 'MAYBE_JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'URL_SKIPPED' | 'BODY_PARSE_ERROR';
|
|
4
|
+
export type NetworkMetaWarning = 'MAYBE_JSON_TRUNCATED' | 'TEXT_TRUNCATED' | 'URL_SKIPPED' | 'BODY_PARSE_ERROR' | 'UNPARSEABLE_BODY_TYPE';
|
|
5
5
|
interface NetworkMeta {
|
|
6
6
|
warnings?: NetworkMetaWarning[];
|
|
7
7
|
}
|