@alwaysmeticulous/api 2.140.0 → 2.144.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
|
@@ -5,7 +5,7 @@ export { TestCase, TestCaseReplayOptions, TestRunStatus, TestCaseResult, TestCas
|
|
|
5
5
|
export { TestRunEnvironment, TestRunGitHubContext, TestRunGitHubPullRequestContext, TestRunGitHubPushContext, TestRunGitHubWorkflowDispatchContext, TestRunGitLabContext, TestRunGitLabMergeRequestContext, TestRunGitLabPushContext, } from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
|
|
6
6
|
export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
|
|
7
7
|
export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk-to-bundle/har-log";
|
|
8
|
-
export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
|
|
8
|
+
export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreWithEntries, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
|
|
9
9
|
export { SequenceNumber, WebSocketConnectionData, WebSocketConnectionEvent, WebSocketConnectionCreatedEvent, WebSocketConnectionOpenedEvent, EncodedArrayBuffer, EncodedBlob, WebSocketConnectionMessageEvent, WebSocketConnectionErrorEvent, WebSocketConnectionClosedEvent, } from "./sdk-bundle-api/sdk-to-bundle/websocket-data";
|
|
10
10
|
export { Replay } from "./replay/replay.types";
|
|
11
11
|
export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
|
|
@@ -25,6 +25,7 @@ export declare type StoryboardOptions = {
|
|
|
25
25
|
export interface ScreenshotDiffOptions {
|
|
26
26
|
diffThreshold: number;
|
|
27
27
|
diffPixelThreshold: number;
|
|
28
|
+
diffHashesToIgnoreByScreenshotFilename?: Record<string, string[]>;
|
|
28
29
|
}
|
|
29
30
|
export type ElementToIgnore = CSSSelectorToIgnore;
|
|
30
31
|
/**
|
|
@@ -26,6 +26,12 @@ export interface SessionData {
|
|
|
26
26
|
sessionStorage?: {
|
|
27
27
|
state: StorageEntry[];
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* Only present on recordings since ~Aug 2024
|
|
31
|
+
*/
|
|
32
|
+
indexedDb?: {
|
|
33
|
+
state: IDBObjectStoreWithEntries[];
|
|
34
|
+
};
|
|
29
35
|
};
|
|
30
36
|
/**
|
|
31
37
|
* Only present on recordings since ~March 2024
|
|
@@ -93,3 +99,35 @@ export interface EarlyRequest {
|
|
|
93
99
|
startTime: number;
|
|
94
100
|
duration: number;
|
|
95
101
|
}
|
|
102
|
+
export interface IDBObjectStoreMetadata {
|
|
103
|
+
databaseName: string;
|
|
104
|
+
objectStoreName: string;
|
|
105
|
+
serialize?: (value: any) => string;
|
|
106
|
+
deserialize?: (value: string) => any;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Currently we only support string keys, but we may support other types in the future.
|
|
110
|
+
* Keys are:
|
|
111
|
+
* - Serialized in recorder/src/storage/storage.ts
|
|
112
|
+
* - Deserialized in puppeteer-utils/src/browser-context/storage.ts
|
|
113
|
+
*
|
|
114
|
+
* @see IDBValidKey for all possible types.
|
|
115
|
+
*/
|
|
116
|
+
export type SerializedIDBValidKey = StringKey;
|
|
117
|
+
interface StringKey {
|
|
118
|
+
type: "string";
|
|
119
|
+
serializedKey: string;
|
|
120
|
+
}
|
|
121
|
+
export type IDBObjectStoreWithEntries = Omit<IDBObjectStoreMetadata, "serialize" | "deserialize"> & {
|
|
122
|
+
createObjectStoreOptions: IDBObjectStoreParameters;
|
|
123
|
+
/**
|
|
124
|
+
* Entry values are JSON stringified by default. JSON representable objects, arrays and primitives are supported.
|
|
125
|
+
* For all other types (e.g. Date, Regex, ArrayBuffer etc.), you can define a custom [de]serialize function on the
|
|
126
|
+
* object store metadata to dictate how the value should be mapped to/from strings. @see IDBObjectStoreMetadata
|
|
127
|
+
*/
|
|
128
|
+
entries: {
|
|
129
|
+
key?: SerializedIDBValidKey;
|
|
130
|
+
value: string;
|
|
131
|
+
}[];
|
|
132
|
+
};
|
|
133
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.144.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": "7e7830ec222145a910b185c229cfb0b2c8a57961"
|
|
39
39
|
}
|