@pol-studios/db 1.0.63 → 1.0.64
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/{chunk-FWCHS5NN.js → chunk-SNZDLVVQ.js} +24 -2
- package/dist/chunk-SNZDLVVQ.js.map +1 -0
- package/dist/{chunk-EKIZNM2L.js → chunk-Z6635ZDG.js} +18 -3
- package/dist/chunk-Z6635ZDG.js.map +1 -0
- package/dist/index.js +2 -2
- package/dist/index.native.js +2 -2
- package/dist/index.web.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-EKIZNM2L.js.map +0 -1
- package/dist/chunk-FWCHS5NN.js.map +0 -1
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
createSupabaseAdapter,
|
|
4
4
|
getPowerSyncAlias,
|
|
5
5
|
stripSchemaPrefix
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-SNZDLVVQ.js";
|
|
7
7
|
import {
|
|
8
8
|
DataLayerContext,
|
|
9
9
|
DataLayerCoreContext,
|
|
@@ -1476,7 +1476,19 @@ function DataLayerProvider(t0) {
|
|
|
1476
1476
|
const tableWithoutSchema_0 = table_0.includes(".") ? stripSchemaPrefix(table_0) : table_0;
|
|
1477
1477
|
const strategy = config.tables[table_0] ?? config.tables[tableWithoutSchema_0];
|
|
1478
1478
|
const configKey = config.tables[table_0] ? table_0 : tableWithoutSchema_0;
|
|
1479
|
-
|
|
1479
|
+
const alias = getPowerSyncAlias(configKey, strategy);
|
|
1480
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
1481
|
+
console.log("[DataLayerProvider.getTableAlias] Input:", {
|
|
1482
|
+
table: table_0,
|
|
1483
|
+
tableWithoutSchema: tableWithoutSchema_0,
|
|
1484
|
+
configKey,
|
|
1485
|
+
strategyFound: !!strategy,
|
|
1486
|
+
strategyType: strategy?.strategy,
|
|
1487
|
+
strategyAlias: strategy?.alias,
|
|
1488
|
+
returnedAlias: alias
|
|
1489
|
+
});
|
|
1490
|
+
}
|
|
1491
|
+
return alias;
|
|
1480
1492
|
};
|
|
1481
1493
|
$[5] = config.tables;
|
|
1482
1494
|
$[6] = t5;
|
|
@@ -1497,6 +1509,9 @@ function DataLayerProvider(t0) {
|
|
|
1497
1509
|
let powerSyncAdapter = null;
|
|
1498
1510
|
let syncTrackingAdapter = null;
|
|
1499
1511
|
if (powerSyncInstance) {
|
|
1512
|
+
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
1513
|
+
console.log("[DataLayerProvider] Creating PowerSync adapter with tableNameResolver");
|
|
1514
|
+
}
|
|
1500
1515
|
if ($[10] !== config.schema || $[11] !== externalSyncControl || $[12] !== getTableAlias || $[13] !== powerSyncInstance) {
|
|
1501
1516
|
powerSyncAdapter = createPowerSyncAdapter(powerSyncInstance, config.schema, {
|
|
1502
1517
|
tableNameResolver: getTableAlias
|
|
@@ -5025,4 +5040,4 @@ object-assign/index.js:
|
|
|
5025
5040
|
@license MIT
|
|
5026
5041
|
*)
|
|
5027
5042
|
*/
|
|
5028
|
-
//# sourceMappingURL=chunk-
|
|
5043
|
+
//# sourceMappingURL=chunk-Z6635ZDG.js.map
|