@pol-studios/db 1.0.50 → 1.0.51
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/auth/context.js +2 -2
- package/dist/auth/hooks.js +3 -3
- package/dist/auth/index.js +3 -3
- package/dist/{chunk-RJIVXO4U.js → chunk-3Q74DK5K.js} +44 -48
- package/dist/chunk-3Q74DK5K.js.map +1 -0
- package/dist/{chunk-DKUF2FKB.js → chunk-DP3YEVSX.js} +2 -2
- package/dist/{chunk-GY7HDOBA.js → chunk-FIAXWEBK.js} +4 -4
- package/dist/{chunk-FLGHJCW3.js → chunk-FMYXG4VN.js} +2 -2
- package/dist/{chunk-WBMZDH2U.js → chunk-G6E25CWV.js} +19 -6
- package/dist/chunk-G6E25CWV.js.map +1 -0
- package/dist/{chunk-7CLN4ORU.js → chunk-PGTRDT5K.js} +13 -4
- package/dist/chunk-PGTRDT5K.js.map +1 -0
- package/dist/{chunk-AIYPSXIO.js → chunk-WQLIGVQR.js} +15 -13
- package/dist/{chunk-AIYPSXIO.js.map → chunk-WQLIGVQR.js.map} +1 -1
- package/dist/hooks/index.js +2 -2
- package/dist/index.js +7 -7
- package/dist/index.native.js +7 -7
- package/dist/index.web.js +6 -6
- package/dist/with-auth/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-7CLN4ORU.js.map +0 -1
- package/dist/chunk-RJIVXO4U.js.map +0 -1
- package/dist/chunk-WBMZDH2U.js.map +0 -1
- /package/dist/{chunk-DKUF2FKB.js.map → chunk-DP3YEVSX.js.map} +0 -0
- /package/dist/{chunk-GY7HDOBA.js.map → chunk-FIAXWEBK.js.map} +0 -0
- /package/dist/{chunk-FLGHJCW3.js.map → chunk-FMYXG4VN.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDbUpsert
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-3Q74DK5K.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeFilter
|
|
6
6
|
} from "./chunk-Z3EJX3VG.js";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
} from "./chunk-7SCJNYTE.js";
|
|
10
10
|
import {
|
|
11
11
|
useDbQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DP3YEVSX.js";
|
|
13
13
|
import {
|
|
14
14
|
useDataLayerCoreOptional
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WQLIGVQR.js";
|
|
16
16
|
import {
|
|
17
17
|
getSupabaseUrl
|
|
18
18
|
} from "./chunk-GC3TBUWE.js";
|
|
@@ -4703,6 +4703,7 @@ var AdapterRegistry = class {
|
|
|
4703
4703
|
} else {
|
|
4704
4704
|
this.syncTrackingAdapter = null;
|
|
4705
4705
|
}
|
|
4706
|
+
this.adapters.clear();
|
|
4706
4707
|
}
|
|
4707
4708
|
/**
|
|
4708
4709
|
* Set a getter function for lazy PowerSync adapter initialization.
|
|
@@ -4824,6 +4825,9 @@ var AdapterRegistry = class {
|
|
|
4824
4825
|
const isConfigured = powerSyncTableKeys.some((key) => key === table || key === tableWithoutSchema || key.includes(".") && key.split(".")[1] === tableWithoutSchema);
|
|
4825
4826
|
if (!isConfigured) {
|
|
4826
4827
|
if (this.supabaseAdapter) {
|
|
4828
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
4829
|
+
console.warn(`[AdapterRegistry] Table "${table}" is not configured for PowerSync sync. Using Supabase fallback.`);
|
|
4830
|
+
}
|
|
4827
4831
|
return this.supabaseAdapter;
|
|
4828
4832
|
}
|
|
4829
4833
|
throw new Error(`Table "${table}" is not configured for PowerSync sync and Supabase adapter is not available. Either add this table to the PowerSync schema or initialize the Supabase adapter.`);
|
|
@@ -5048,6 +5052,9 @@ var AdapterRegistry = class {
|
|
|
5048
5052
|
if (!this.supabaseAdapter) {
|
|
5049
5053
|
throw new Error("Supabase adapter not initialized. Ensure SupabaseAdapter is set before accessing tables.");
|
|
5050
5054
|
}
|
|
5055
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
5056
|
+
console.warn(`[AdapterRegistry] Unknown strategy "${strategy.strategy}". Using Supabase fallback.`);
|
|
5057
|
+
}
|
|
5051
5058
|
return this.supabaseAdapter;
|
|
5052
5059
|
}
|
|
5053
5060
|
}
|
|
@@ -5068,6 +5075,8 @@ var AdapterRegistry = class {
|
|
|
5068
5075
|
reset() {
|
|
5069
5076
|
this.adapters.clear();
|
|
5070
5077
|
this.powerSyncAdapter = null;
|
|
5078
|
+
this.powerSyncGetter = null;
|
|
5079
|
+
this.powerSyncAdapterFactory = null;
|
|
5071
5080
|
this.supabaseAdapter = null;
|
|
5072
5081
|
this.cachedAdapter = null;
|
|
5073
5082
|
this.deps = null;
|
|
@@ -7996,4 +8005,4 @@ moment/moment.js:
|
|
|
7996
8005
|
(*! license : MIT *)
|
|
7997
8006
|
(*! momentjs.com *)
|
|
7998
8007
|
*/
|
|
7999
|
-
//# sourceMappingURL=chunk-
|
|
8008
|
+
//# sourceMappingURL=chunk-PGTRDT5K.js.map
|