@skrillex1224/playwright-toolkit 2.1.169 → 2.1.171
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 +2 -1
- package/dist/browser.js +81 -0
- package/dist/browser.js.map +3 -3
- package/dist/index.cjs +57 -10
- package/dist/index.cjs.map +3 -3
- package/dist/index.js +57 -10
- package/dist/index.js.map +3 -3
- package/index.d.ts +37 -0
- package/package.json +1 -1
- /package/dist/{proxy-meter.js → internals/proxy-meter.js} +0 -0
package/index.d.ts
CHANGED
|
@@ -522,6 +522,41 @@ export interface MutationModule {
|
|
|
522
522
|
useMonitor(page: Page, selectors: string | string[], options?: useMonitorOptions): Promise<MutationMonitor>;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
+
// =============================================================================
|
|
526
|
+
// ByPass Matcher
|
|
527
|
+
// =============================================================================
|
|
528
|
+
export interface ByPassDomainRule {
|
|
529
|
+
pattern: string;
|
|
530
|
+
test(hostname: string): boolean;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export interface ByPassMatchResult {
|
|
534
|
+
rule: ByPassDomainRule | null;
|
|
535
|
+
hostname: string;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export interface ByPassRouteResult {
|
|
539
|
+
route: 'direct' | 'proxy';
|
|
540
|
+
matchedRule: ByPassDomainRule | null;
|
|
541
|
+
hostname: string;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
export interface ResolveRouteByProxyInput {
|
|
545
|
+
requestUrl?: string;
|
|
546
|
+
enableProxy?: boolean;
|
|
547
|
+
byPassRules?: ByPassDomainRule[];
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
export interface ByPassModule {
|
|
551
|
+
normalizeByPassDomains(domains: unknown): string[];
|
|
552
|
+
normalizeHostname(value?: string): string;
|
|
553
|
+
buildByPassDomainRule(rawPattern: string): ByPassDomainRule | null;
|
|
554
|
+
buildByPassDomainRules(domains?: unknown): ByPassDomainRule[];
|
|
555
|
+
findMatchedByPassRule(rules?: ByPassDomainRule[], requestUrl?: string): ByPassMatchResult | null;
|
|
556
|
+
isDomainCoveredByByPass(domain?: string, rules?: ByPassDomainRule[]): boolean;
|
|
557
|
+
resolveRouteByProxy(input?: ResolveRouteByProxyInput): ByPassRouteResult;
|
|
558
|
+
}
|
|
559
|
+
|
|
525
560
|
// =============================================================================
|
|
526
561
|
// Toolkit Entry Point
|
|
527
562
|
// =============================================================================
|
|
@@ -540,6 +575,7 @@ export interface PlaywrightToolKit {
|
|
|
540
575
|
Sse: SseModule;
|
|
541
576
|
Errors: ErrorsModule;
|
|
542
577
|
Mutation: MutationModule;
|
|
578
|
+
ByPass: ByPassModule;
|
|
543
579
|
Logger: LoggerModule;
|
|
544
580
|
Share: ShareModule;
|
|
545
581
|
$Internals: {
|
|
@@ -552,6 +588,7 @@ export interface PlaywrightToolKit {
|
|
|
552
588
|
export interface BrowserPlaywrightToolKit {
|
|
553
589
|
Logger: LoggerModule;
|
|
554
590
|
Display: DisplayModule;
|
|
591
|
+
ByPass: ByPassModule;
|
|
555
592
|
Constants: ConstantsModule;
|
|
556
593
|
$Internals: {
|
|
557
594
|
LOG_TEMPLATES: LogTemplate[];
|
package/package.json
CHANGED
|
File without changes
|