@alwaysmeticulous/api 2.53.0 → 2.61.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/dist/index.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk
|
|
|
8
8
|
export { Cookie, SessionData, UrlHistoryEvent, WindowData, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
|
|
9
9
|
export { Replay } from "./replay/replay.types";
|
|
10
10
|
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
11
|
+
export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, NoStubbing, CustomStubbing, RequestFilter, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
|
|
@@ -6,10 +6,11 @@ export type ScreenshotDiffResult = {
|
|
|
6
6
|
export type ScreenshotIdentifier = EndStateScreenshot | ScreenshotAfterEvent;
|
|
7
7
|
export interface LogicVersioned {
|
|
8
8
|
/**
|
|
9
|
-
* The version of the logic used to generate the screenshot. This should be bumped
|
|
9
|
+
* The version of the logic and environment used to generate the screenshot. This should be bumped
|
|
10
10
|
* whenever the Meticulous code changes such that two screenshots on different logic versions
|
|
11
|
-
* are incomparable. This field is used to avoid falsely flagging a
|
|
12
|
-
* the logic to generate a screenshot or execute a replay changes
|
|
11
|
+
* are incomparable or the replay environment differs. This field is used to avoid falsely flagging a
|
|
12
|
+
* diff to our users when the logic to generate a screenshot or execute a replay changes, or if
|
|
13
|
+
* the replay environment changes, e.g. the browser or Puppeteer versions changes.
|
|
13
14
|
*/
|
|
14
15
|
logicVersion?: number;
|
|
15
16
|
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export type NetworkStubbingMode = StubAllRequests | StubNonSSRRequests | CustomStubbing;
|
|
2
|
+
/**
|
|
3
|
+
* The default mode. Stubs all requests, apart from ones for _next/static/ files.
|
|
4
|
+
*/
|
|
5
|
+
export interface StubAllRequests {
|
|
6
|
+
type: "stub-all-requests";
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Stubs all requests apart from NextJS 13 /app dir requests to render server components, and requests for _next/static/ files.
|
|
10
|
+
*
|
|
11
|
+
* Used for NextJs 13 /app directory & server components.
|
|
12
|
+
*/
|
|
13
|
+
export interface StubNonSSRRequests {
|
|
14
|
+
type: "stub-non-ssr-requests";
|
|
15
|
+
}
|
|
16
|
+
export interface CustomStubbing {
|
|
17
|
+
type: "custom-stubbing";
|
|
18
|
+
requestsToNotStub: RequestFilter[];
|
|
19
|
+
}
|
|
20
|
+
export interface RequestFilter {
|
|
21
|
+
/**
|
|
22
|
+
* If defined will filter to only match requests to a URL matching the
|
|
23
|
+
* specified regex.
|
|
24
|
+
*
|
|
25
|
+
* Any JS regex that passes https://github.com/tjenkinson/redos-detector is supported.
|
|
26
|
+
*/
|
|
27
|
+
urlRegex: string;
|
|
28
|
+
}
|
|
29
|
+
export interface NoStubbing {
|
|
30
|
+
type: "no-stubbing";
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.61.0",
|
|
4
4
|
"description": "Meticulous API types",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "84acc1cb7ba0ca700704945d2265dd0ca5f67741"
|
|
39
39
|
}
|