@probolabs/playwright 1.0.20 → 1.1.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/README.md +249 -227
- package/dist/.tsbuildinfo +1 -1
- package/dist/fixtures.cjs.map +1 -1
- package/dist/fixtures.js.map +1 -1
- package/dist/index.cjs +242 -113
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +14 -7
- package/dist/index.js +242 -113
- package/dist/index.js.map +1 -1
- package/dist/types/otp.d.ts.map +1 -1
- package/dist/types/replay-utils.d.ts.map +1 -1
- package/loaded_extensions/README.md +23 -23
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -287,7 +287,7 @@ interface MailinatorMessage {
|
|
|
287
287
|
origfrom?: string;
|
|
288
288
|
to: string;
|
|
289
289
|
time: number;
|
|
290
|
-
seconds_ago
|
|
290
|
+
seconds_ago?: number;
|
|
291
291
|
domain?: string;
|
|
292
292
|
source?: string;
|
|
293
293
|
parts?: Array<{
|
|
@@ -298,7 +298,7 @@ interface MailinatorMessage {
|
|
|
298
298
|
htmlBody?: string;
|
|
299
299
|
}
|
|
300
300
|
/**
|
|
301
|
-
* OTP utility class for working with
|
|
301
|
+
* OTP utility class for working with Mailpit API
|
|
302
302
|
*/
|
|
303
303
|
declare class OTP {
|
|
304
304
|
/**
|
|
@@ -308,12 +308,12 @@ declare class OTP {
|
|
|
308
308
|
*/
|
|
309
309
|
static DELETE_MESSAGE_AFTER_OTP_EXTRACTION: boolean;
|
|
310
310
|
/**
|
|
311
|
-
* Fetches the last messages from
|
|
312
|
-
* @param inbox -
|
|
311
|
+
* Fetches the last messages from Mailpit for a specific inbox (or all inboxes)
|
|
312
|
+
* @param inbox - Optional inbox (local part or full email). When omitted all inboxes are returned.
|
|
313
313
|
* @param since - Unix timestamp to fetch messages since (optional)
|
|
314
|
-
* @returns Promise<MailinatorMessage[]> - Array of messages
|
|
314
|
+
* @returns Promise<MailinatorMessage[]> - Array of normalized messages
|
|
315
315
|
*/
|
|
316
|
-
static fetchLastMessages(inbox
|
|
316
|
+
static fetchLastMessages(inbox?: string, since?: number): Promise<MailinatorMessage[]>;
|
|
317
317
|
/**
|
|
318
318
|
* Fetches a specific message by ID
|
|
319
319
|
* @param messageId - The message ID
|
|
@@ -355,12 +355,19 @@ declare class OTP {
|
|
|
355
355
|
* @param options.checkRecentMessagesSinceMs - When > 0, check messages from the last X milliseconds and return the most recent OTP (default: 0)
|
|
356
356
|
* @returns Promise<string | null> - The extracted OTP code or null if timeout/no OTP found
|
|
357
357
|
*/
|
|
358
|
-
static waitForOTP(
|
|
358
|
+
static waitForOTP(optionsOrInbox?: string | {
|
|
359
359
|
inbox?: string;
|
|
360
360
|
timeout?: number;
|
|
361
361
|
checkInterval?: number;
|
|
362
362
|
checkRecentMessagesSinceMs?: number;
|
|
363
363
|
}): Promise<string | null>;
|
|
364
|
+
private static normalizeInbox;
|
|
365
|
+
private static buildHeaders;
|
|
366
|
+
private static request;
|
|
367
|
+
private static rawRequest;
|
|
368
|
+
private static mapSummaryToMessage;
|
|
369
|
+
private static mapDetailToMessage;
|
|
370
|
+
private static parseTimestamp;
|
|
364
371
|
}
|
|
365
372
|
|
|
366
373
|
/**
|