@pol-studios/db 1.0.53 → 1.0.54

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.
@@ -742,7 +742,7 @@ declare class AdapterRegistry {
742
742
  /**
743
743
  * Get adapter using auto-detection.
744
744
  *
745
- * Simple logic: PowerSync first, Supabase fallback ONLY when online.
745
+ * Simple logic: PowerSync first, Supabase fallback.
746
746
  * Once PowerSync is initialized, always use it for offline-first behavior.
747
747
  */
748
748
  private getAutoAdapter;
@@ -4512,11 +4512,7 @@ var AdapterRegistry = class {
4512
4512
  return this.syncTrackingAdapter ?? this.powerSyncAdapter;
4513
4513
  }
4514
4514
  if (this.supabaseAdapter) {
4515
- const isOnline = this.autoDetector?.getSyncStatus()?.isOnline ?? (typeof navigator !== "undefined" ? navigator.onLine : false);
4516
- if (isOnline) {
4517
- return this.supabaseAdapter;
4518
- }
4519
- throw new Error(`Offline and PowerSync not ready for table "${table}". Wait for initialization.`);
4515
+ return this.supabaseAdapter;
4520
4516
  }
4521
4517
  }
4522
4518
  const existing = this.adapters.get(table);
@@ -4614,7 +4610,7 @@ var AdapterRegistry = class {
4614
4610
  /**
4615
4611
  * Get adapter using auto-detection.
4616
4612
  *
4617
- * Simple logic: PowerSync first, Supabase fallback ONLY when online.
4613
+ * Simple logic: PowerSync first, Supabase fallback.
4618
4614
  * Once PowerSync is initialized, always use it for offline-first behavior.
4619
4615
  */
4620
4616
  getAutoAdapter(_strategy, _table) {
@@ -4622,11 +4618,7 @@ var AdapterRegistry = class {
4622
4618
  return this.syncTrackingAdapter ?? this.powerSyncAdapter;
4623
4619
  }
4624
4620
  if (this.supabaseAdapter) {
4625
- const isOnline = this.autoDetector?.getSyncStatus()?.isOnline ?? (typeof navigator !== "undefined" ? navigator.onLine : false);
4626
- if (isOnline) {
4627
- return this.supabaseAdapter;
4628
- }
4629
- throw new Error("Offline and PowerSync not ready. Wait for PowerSync initialization.");
4621
+ return this.supabaseAdapter;
4630
4622
  }
4631
4623
  throw new Error("No adapters available. Initialize PowerSync or Supabase.");
4632
4624
  }
@@ -7992,4 +7984,4 @@ moment/moment.js:
7992
7984
  (*! license : MIT *)
7993
7985
  (*! momentjs.com *)
7994
7986
  */
7995
- //# sourceMappingURL=chunk-FZJX2FZS.js.map
7987
+ //# sourceMappingURL=chunk-2XS2PM62.js.map