@tracelane/wdio 0.1.0-alpha.7 → 0.1.0-alpha.9
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/options.d.ts
CHANGED
|
@@ -1,12 +1,35 @@
|
|
|
1
|
+
import type { NetworkRecordOptions } from '@cubenest/rrweb-core';
|
|
1
2
|
import type { ConsolePluginOptions, Mode } from '@tracelane/core';
|
|
2
3
|
/** Which capture channels are enabled (P1 PRD §M.1). */
|
|
3
4
|
export interface CaptureOptions {
|
|
4
5
|
/** Record the rrweb session. Default true. */
|
|
5
6
|
rrweb?: boolean;
|
|
6
|
-
/**
|
|
7
|
+
/**
|
|
8
|
+
* Capture network requests. Default `true`.
|
|
9
|
+
*
|
|
10
|
+
* When enabled (default), the in-page rrweb network plugin
|
|
11
|
+
* (`rrweb/network@1`) is registered alongside the recorder — captured
|
|
12
|
+
* via fetch/XHR wrappers + PerformanceObserver, framework-agnostic,
|
|
13
|
+
* no CDP required. The legacy CDP-based path (which routed failed
|
|
14
|
+
* responses through the console timeline) is preserved as a fallback
|
|
15
|
+
* but no longer the primary capture mechanism.
|
|
16
|
+
*
|
|
17
|
+
* Privacy defaults (inherited from `@cubenest/rrweb-core`): headers and
|
|
18
|
+
* bodies are NOT captured unless opted in via {@link networkOptions}.
|
|
19
|
+
*/
|
|
7
20
|
network?: boolean;
|
|
8
21
|
/** Capture `console.*` via the rrweb console plugin. Default true. */
|
|
9
22
|
console?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Options forwarded to the in-page rrweb network plugin
|
|
25
|
+
* (`getRecordNetworkPlugin`). The full surface from
|
|
26
|
+
* `@cubenest/rrweb-core` is exposed: `recordHeaders`, `recordBody`,
|
|
27
|
+
* `maskRequestFn`, `payloadHostDenyList`, etc. Defaults are the
|
|
28
|
+
* plugin's defaults (privacy-first — headers + bodies off).
|
|
29
|
+
*
|
|
30
|
+
* Ignored when {@link network} is `false`.
|
|
31
|
+
*/
|
|
32
|
+
networkOptions?: NetworkRecordOptions;
|
|
10
33
|
}
|
|
11
34
|
/** Options for {@link TraceLaneService} and {@link traceLaneHooks} (P1 PRD §M.1). */
|
|
12
35
|
export interface TraceLaneOptions {
|
package/dist/options.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAElE,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAElE,wDAAwD;AACxD,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;OAQG;IACH,cAAc,CAAC,EAAE,oBAAoB,CAAC;CACvC;AAED,qFAAqF;AACrF,MAAM,WAAW,gBAAgB;IAC/B;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gFAAgF;IAChF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mCAAmC;IACnC,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,oEAAoE;IACpE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;CAC7C;AAED,gDAAgD;AAChD,eAAO,MAAM,eAAe,wBAAwB,CAAC"}
|
package/dist/options.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,yEAAyE;
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../src/options.ts"],"names":[],"mappings":"AAAA,yEAAyE;AA6DzE,gDAAgD;AAChD,MAAM,CAAC,MAAM,eAAe,GAAG,qBAAqB,CAAC"}
|