@alwaysmeticulous/sdk-bundles-api 2.33.0 → 2.35.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.
|
@@ -22,5 +22,15 @@ export interface NetworkResponseSanitizer {
|
|
|
22
22
|
* at replay time. For example, if you want to sanitize email addresses, replace them with a dummy email address
|
|
23
23
|
* of a current format. That will ensure that the email address will still pass any validation the application may have.
|
|
24
24
|
*/
|
|
25
|
-
sanitizeBody: (body: string) => string;
|
|
25
|
+
sanitizeBody: (body: string, metadata: NetworkResponseMetadata) => string;
|
|
26
|
+
}
|
|
27
|
+
export interface NetworkResponseMetadata {
|
|
28
|
+
/**
|
|
29
|
+
* Milliseconds since unix epoch when the request was sent
|
|
30
|
+
*/
|
|
31
|
+
requestStartedAt: number;
|
|
32
|
+
/**
|
|
33
|
+
* Milliseconds since unix epoch when the response was received
|
|
34
|
+
*/
|
|
35
|
+
responseReceivedAt: number;
|
|
26
36
|
}
|
|
@@ -7,7 +7,7 @@ export interface ReplayUserInteractionsResultFull {
|
|
|
7
7
|
/** Returned when the recorded session has been cut short during replay */
|
|
8
8
|
export interface ReplayUserInteractionsResultShort {
|
|
9
9
|
length: "short";
|
|
10
|
-
reason: "max events" | "max duration";
|
|
10
|
+
reason: "max events" | "max duration" | "full page navigation" | "error";
|
|
11
11
|
}
|
|
12
12
|
export interface BeforeUserEventOptions {
|
|
13
13
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SessionData,
|
|
1
|
+
import { SessionData, SDKReplayTimelineEntry } from "@alwaysmeticulous/api";
|
|
2
2
|
import type { LogLevelDesc } from "loglevel";
|
|
3
3
|
import type { Page } from "puppeteer";
|
|
4
4
|
import { BeforeUserEventOptions, ReplayUserInteractionsResult } from "../bundle-to-sdk";
|
|
@@ -38,7 +38,7 @@ export type StoryboardOptions = {
|
|
|
38
38
|
enabled: true;
|
|
39
39
|
screenshotsDir: string;
|
|
40
40
|
};
|
|
41
|
-
export type OnReplayTimelineEventFn = (entry:
|
|
41
|
+
export type OnReplayTimelineEventFn = (entry: SDKReplayTimelineEntry) => void;
|
|
42
42
|
export type OnBeforeUserEventFn = (options: BeforeUserEventOptions) => Promise<void>;
|
|
43
43
|
export interface NetworkStubbingOptions {
|
|
44
44
|
page: Page;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/sdk-bundles-api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.35.0",
|
|
4
4
|
"description": "Meticulous common types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"lint:fix": "eslint src --ext=ts,tsx,js --cache --fix"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@alwaysmeticulous/api": "^2.
|
|
21
|
+
"@alwaysmeticulous/api": "^2.34.0"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"loglevel": "^1.8.0",
|
|
25
|
-
"puppeteer": "^
|
|
25
|
+
"puppeteer": "^19.7.5"
|
|
26
26
|
},
|
|
27
27
|
"peerDependenciesMeta": {
|
|
28
28
|
"loglevel": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"bugs": {
|
|
50
50
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "2d87c57d10bb368950a1bf7d12d2da85ab701f00"
|
|
53
53
|
}
|