@skrillex1224/playwright-toolkit 2.1.183 → 2.1.185
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/browser.js +647 -0
- package/dist/browser.js.map +4 -4
- package/dist/index.cjs +236 -72
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +236 -72
- package/dist/index.js.map +3 -3
- package/index.d.ts +24 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -381,9 +381,32 @@ export interface RuntimeEnvApplyOptions {
|
|
|
381
381
|
actor?: string;
|
|
382
382
|
}
|
|
383
383
|
|
|
384
|
+
export interface RuntimeEnvSnapshot {
|
|
385
|
+
page_url?: string;
|
|
386
|
+
pageUrl?: string;
|
|
387
|
+
frame_urls?: string[];
|
|
388
|
+
frameUrls?: string[];
|
|
389
|
+
resource_urls?: string[];
|
|
390
|
+
resourceUrls?: string[];
|
|
391
|
+
cookies?: Array<Record<string, any>>;
|
|
392
|
+
local_storage?: Record<string, any>;
|
|
393
|
+
localStorage?: Record<string, any>;
|
|
394
|
+
session_storage?: Record<string, any>;
|
|
395
|
+
sessionStorage?: Record<string, any>;
|
|
396
|
+
browser_profile?: Record<string, any>;
|
|
397
|
+
browserProfile?: Record<string, any>;
|
|
398
|
+
browser_profile_observed?: Record<string, any>;
|
|
399
|
+
browserProfileObserved?: Record<string, any>;
|
|
400
|
+
auth?: Record<string, any>;
|
|
401
|
+
}
|
|
402
|
+
|
|
384
403
|
export interface RuntimeEnvModule {
|
|
385
404
|
parseInput(input?: Record<string, any>, actor?: string): RuntimeEnvState;
|
|
386
405
|
buildEnvPatch(source?: Record<string, any>, actor?: string): Record<string, any> | null;
|
|
406
|
+
normalizeSnapshot(snapshot?: RuntimeEnvSnapshot): RuntimeEnvSnapshot;
|
|
407
|
+
collectCookieUrls(snapshot?: RuntimeEnvSnapshot): string[];
|
|
408
|
+
buildRuntimeEnvFromSnapshot(snapshot?: RuntimeEnvSnapshot, options?: { browserProfileCore?: Record<string, any>; auth?: Record<string, any> }): Record<string, any> | null;
|
|
409
|
+
buildEnvPatchFromSnapshot(snapshot?: RuntimeEnvSnapshot, options?: { browserProfileCore?: Record<string, any>; auth?: Record<string, any> }): Record<string, any> | null;
|
|
387
410
|
mergeEnvPatches(...patches: Array<Record<string, any> | null | undefined>): Record<string, any> | null;
|
|
388
411
|
hasLoginState(source?: Record<string, any>, actor?: string): boolean;
|
|
389
412
|
getAuthValue(source?: Record<string, any>, key?: string, actor?: string): string;
|
|
@@ -603,6 +626,7 @@ export interface BrowserPlaywrightToolKit {
|
|
|
603
626
|
Display: DisplayModule;
|
|
604
627
|
ByPass: ByPassModule;
|
|
605
628
|
Constants: ConstantsModule;
|
|
629
|
+
RuntimeEnv: RuntimeEnvModule;
|
|
606
630
|
$Internals: {
|
|
607
631
|
LOG_TEMPLATES: LogTemplate[];
|
|
608
632
|
stripAnsi(input: string): string;
|