@mearl/browser-core 3.0.0 → 3.0.2

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.
@@ -192,12 +192,17 @@ export interface HostToExtensionActionMap {
192
192
  installationRevision: string;
193
193
  } | {
194
194
  operation: 'status';
195
+ } | {
196
+ operation: 'uninstall';
197
+ browserRevision: string;
198
+ installationToken: string | null;
195
199
  };
196
200
  response: {
197
201
  installationRevision: string | null;
198
202
  browserRevision: string | null;
199
203
  ready: boolean;
200
204
  settingsReady: boolean;
205
+ installationToken?: string | null;
201
206
  accepted?: boolean;
202
207
  error?: string;
203
208
  };
@@ -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, url?: string): boolean;
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;
@@ -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, url = '') {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/browser-core",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Shared pure-logic utilities for Mearl — usable in both browser extension and Node.js environments",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",