@replayd/core 0.1.5 → 0.1.7
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/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/replay.js +3 -3
- package/dist/replay.js.map +4 -4
- package/dist/replayd.min.js +1 -1
- package/dist/replayd.min.js.map +1 -1
- package/dist/types/replay/drain.d.ts +4 -0
- package/dist/types/ring.d.ts +1 -1
- package/dist/types/types.d.ts +3 -1
- package/package.json +2 -2
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { RingEvent } from '../types';
|
|
2
|
+
/** a pre-replay ring event with its WS frames and network bodies redacted (done here, off the core bundle, when the
|
|
3
|
+
* replay chunk drains the ring: lazily, never on the hot path) */
|
|
4
|
+
export declare const redactRing: (e: RingEvent, t: (s: string) => string) => RingEvent;
|
package/dist/types/ring.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { Breadcrumb, RingEvent } from './types';
|
|
|
3
3
|
declare let sink: ((e: RingEvent) => void) | null;
|
|
4
4
|
/** records a custom event: into the replay sink once running, else into the 100-entry ring */
|
|
5
5
|
export declare const rec: (type: RingEvent["type"], data: RingEvent["data"], ts?: number) => void;
|
|
6
|
-
/** drains the ring (oldest first); WS frames and network bodies
|
|
6
|
+
/** drains the ring (oldest first); the replay chunk redacts WS frames and network bodies, lazily, never on the hot path */
|
|
7
7
|
export declare const drain: () => RingEvent[];
|
|
8
8
|
export declare const setSink: (f: typeof sink) => void;
|
|
9
9
|
/** request-start marker for dead-click detection (set by the replay chunk): a request that has not finished is activity */
|
package/dist/types/types.d.ts
CHANGED
|
@@ -21,7 +21,9 @@ export interface ReplayOptions {
|
|
|
21
21
|
/** Per-session replay sample rate, decided once per session. Default 1. */
|
|
22
22
|
sampleRate?: number;
|
|
23
23
|
start?: 'idle';
|
|
24
|
-
/** URLs whose request/response headers + bodies are captured. `'self'` = `location.origin
|
|
24
|
+
/** URLs whose request/response headers + bodies are captured. `'self'` = exactly `location.origin`; an origin or URL
|
|
25
|
+
* (`https://api.example.com`, `https://x.example/v1`), `//host[:port]` or `/path` matches that origin and that path or a
|
|
26
|
+
* path below it, never a substring; a RegExp is tested against the whole URL. */
|
|
25
27
|
networkDetailAllowUrls?: Matcher[];
|
|
26
28
|
networkCaptureBodies?: boolean;
|
|
27
29
|
maskAllText?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@replayd/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "replayd browser SDK: errors, breadcrumbs, console, network and WebSocket capture, session replay",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@rrweb/record": "2.2.0"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ef8cdee0f66a2a76d5725dfedf1d408c714df37d",
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "node ../../scripts/build.mjs build.json && tsc -p tsconfig.build.json"
|
|
45
45
|
}
|