@alwaysmeticulous/api 2.212.0 → 2.214.1
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 +2 -1
- package/dist/sdk-bundle-api/sdk-to-bundle/asset-upload-metadata.d.ts +10 -0
- package/dist/sdk-bundle-api/sdk-to-bundle/asset-upload-metadata.js +3 -0
- package/dist/sdk-bundle-api/sdk-to-bundle/asset-upload-metadata.js.map +1 -0
- package/dist/sdk-bundle-api/sdk-to-bundle/network-stubbing.d.ts +11 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificDa
|
|
|
10
10
|
export { SequenceNumber, WebSocketConnectionData, WebSocketConnectionEvent, WebSocketConnectionCreatedEvent, WebSocketConnectionOpenedEvent, EncodedArrayBuffer, EncodedBlob, WebSocketConnectionMessageEvent, WebSocketConnectionErrorEvent, WebSocketConnectionClosedEvent, } from "./sdk-bundle-api/sdk-to-bundle/websocket-data";
|
|
11
11
|
export { Replay } from "./replay/replay.types";
|
|
12
12
|
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
13
|
-
export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, NoStubbing, CustomStubbing, RequestFilter, CustomTransformation, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
|
|
13
|
+
export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, NoStubbing, CustomStubbing, RequestFilter, CustomTransformation, CustomTransformationWhere, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
|
|
14
14
|
export { ConsoleMessageWithStackTracePointer, VirtualTimeChange, MeticulousConsoleMessage, ApplicationConsoleMessage, ConsoleMessageCoreData, ConsoleMessageType, ConsoleMessageLocation, } from "./sdk-bundle-api/bundle-to-sdk/console-message";
|
|
15
15
|
export { InjectableRequestHeader, StaticHeaderValue, DynamicHeaderValue, AllRequests, AppUrlRequestsOnly, CustomRequests, } from "./sdk-bundle-api/sdk-to-bundle/header-injection";
|
|
16
16
|
export { ConsoleErrorDivergenceIndicator, Divergence, DivergenceConsoleError, DivergenceIndicator, InitialNavigationDivergenceIndicator, NetworkActivityDivergenceIndicator, ScreenshotDivergenceIdentifier, UrlChangeEventDivergenceIndicator, UserEventDivergenceIndicator, } from "./sdk-bundle-api/bundle-to-sdk/replay-divergence";
|
|
17
|
+
export { AssetUploadMetadata } from "./sdk-bundle-api/sdk-to-bundle/asset-upload-metadata";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-upload-metadata.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/asset-upload-metadata.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
export type NetworkStubbingMode = StubAllRequests | StubNonSSRRequests | CustomStubbing;
|
|
2
2
|
interface NetworkStubbingBase {
|
|
3
3
|
/**
|
|
4
|
-
* When looking for a request to use as a stub, these transformations will be applied to the request
|
|
4
|
+
* When looking for a request to use as a stub, these transformations will be applied to the request first.
|
|
5
|
+
* If not defined, the default identity transformation will be used (i.e., exact matching of the request).
|
|
6
|
+
* These transformations take precedence over any other transformations.
|
|
7
|
+
* They will be applied in the order they are defined.
|
|
8
|
+
*/
|
|
9
|
+
identityRequestTransformations?: CustomTransformation[];
|
|
10
|
+
/**
|
|
11
|
+
* When looking for a request to use as a stub, these transformations will be applied after the identity transformations.
|
|
12
|
+
* These transformations are applied in addition to (and after) any identity transformations.
|
|
5
13
|
* They will be applied in the order they are defined.
|
|
6
14
|
*/
|
|
7
15
|
customRequestTransformations?: CustomTransformation[];
|
|
@@ -57,6 +65,7 @@ interface CustomTransformationBase {
|
|
|
57
65
|
*/
|
|
58
66
|
replacement: string;
|
|
59
67
|
requestComponent: keyof TransformableRequestData;
|
|
68
|
+
where?: CustomTransformationWhere;
|
|
60
69
|
}
|
|
61
70
|
type TransformableUrlFields = keyof Pick<URL, "hash" | "host" | "hostname" | "href" | "password" | "pathname" | "port" | "protocol" | "search" | "username">;
|
|
62
71
|
interface CustomUrlTransformation extends CustomTransformationBase {
|
|
@@ -67,4 +76,5 @@ interface CustomRequestTransformation extends CustomTransformationBase {
|
|
|
67
76
|
requestComponent: keyof Omit<TransformableRequestData, "url">;
|
|
68
77
|
}
|
|
69
78
|
export type CustomTransformation = CustomRequestTransformation | CustomUrlTransformation;
|
|
79
|
+
export type CustomTransformationWhere = Omit<CustomRequestTransformation, "replacement"> | Omit<CustomUrlTransformation, "replacement">;
|
|
70
80
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.214.1",
|
|
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": "cf2d60a43bc20ffa900abe252960a12db703b839"
|
|
39
39
|
}
|