@pol-studios/db 1.0.61 → 1.0.63
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.
|
@@ -1557,7 +1557,7 @@ function DataLayerProvider(t0) {
|
|
|
1557
1557
|
let t10;
|
|
1558
1558
|
if ($[24] !== adapters.powerSync || $[25] !== adapters.supabase || $[26] !== adapters.syncTracking || $[27] !== config.tables || $[28] !== hasSynced || $[29] !== isOnline) {
|
|
1559
1559
|
t10 = (table_2, t112) => {
|
|
1560
|
-
t112 === void 0 ? "read" : t112;
|
|
1560
|
+
const _operation = t112 === void 0 ? "read" : t112;
|
|
1561
1561
|
const tableWithoutSchema_1 = table_2.includes(".") ? stripSchemaPrefix(table_2) : table_2;
|
|
1562
1562
|
const strategy_3 = config.tables[table_2] ?? config.tables[tableWithoutSchema_1];
|
|
1563
1563
|
if (strategy_3?.strategy === "supabase") {
|
|
@@ -1567,6 +1567,9 @@ function DataLayerProvider(t0) {
|
|
|
1567
1567
|
return adapters.supabase;
|
|
1568
1568
|
}
|
|
1569
1569
|
if (strategy_3?.strategy === "powersync") {
|
|
1570
|
+
if (_operation === "read" && isOnline && !hasSynced) {
|
|
1571
|
+
return adapters.supabase;
|
|
1572
|
+
}
|
|
1570
1573
|
if (adapters.powerSync) {
|
|
1571
1574
|
return adapters.syncTracking ?? adapters.powerSync;
|
|
1572
1575
|
}
|
|
@@ -5022,4 +5025,4 @@ object-assign/index.js:
|
|
|
5022
5025
|
@license MIT
|
|
5023
5026
|
*)
|
|
5024
5027
|
*/
|
|
5025
|
-
//# sourceMappingURL=chunk-
|
|
5028
|
+
//# sourceMappingURL=chunk-EKIZNM2L.js.map
|