@mearl/browser-core 3.0.0 → 3.0.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/pageObserver.d.ts +1 -1
- package/dist/pageObserver.js +1 -1
- package/package.json +1 -1
package/dist/pageObserver.d.ts
CHANGED
|
@@ -115,7 +115,7 @@ export declare function shouldWaitForPotentialNavigation(action: string, observa
|
|
|
115
115
|
mutationCount?: number;
|
|
116
116
|
effects?: Partial<PageEffects>;
|
|
117
117
|
}): boolean;
|
|
118
|
-
export declare function isPotentialNavigationRequest(resourceType: string,
|
|
118
|
+
export declare function isPotentialNavigationRequest(resourceType: string, _url?: string): boolean;
|
|
119
119
|
export declare function resolveNavigationWaitOptions(options?: PageObservationWaitOptions): {
|
|
120
120
|
graceMs: number;
|
|
121
121
|
timeoutMs: number;
|
package/dist/pageObserver.js
CHANGED
|
@@ -24,7 +24,7 @@ export function shouldWaitForPotentialNavigation(action, observation) {
|
|
|
24
24
|
observation.effects?.focus !== undefined;
|
|
25
25
|
return !hasEffect && (observation.mutationCount ?? 0) <= 1;
|
|
26
26
|
}
|
|
27
|
-
export function isPotentialNavigationRequest(resourceType,
|
|
27
|
+
export function isPotentialNavigationRequest(resourceType, _url = '') {
|
|
28
28
|
const normalizedType = resourceType.toLowerCase();
|
|
29
29
|
if (normalizedType === 'xhr' || normalizedType === 'fetch')
|
|
30
30
|
return true;
|
package/package.json
CHANGED