@pol-studios/db 1.0.15 → 1.0.17
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-WLHUPDBI.js → chunk-36DVUMQD.js} +2 -2
- package/dist/{chunk-O4P43BD7.js → chunk-72WV3ALS.js} +2 -2
- package/dist/{chunk-QJQRGM7E.js → chunk-FHVF26YA.js} +3 -3
- package/dist/{chunk-7OQKP7EP.js → chunk-PMRV6WND.js} +13 -3
- package/dist/chunk-PMRV6WND.js.map +1 -0
- package/dist/{chunk-NSVDEHEI.js → chunk-RMRYGICS.js} +4 -4
- package/dist/{chunk-CBLXKHSK.js → chunk-YERWPV6B.js} +151 -70
- package/dist/{chunk-CBLXKHSK.js.map → chunk-YERWPV6B.js.map} +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +6 -6
- package/dist/index.native.js +6 -6
- package/dist/index.web.js +5 -5
- package/dist/with-auth/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-7OQKP7EP.js.map +0 -1
- /package/dist/{chunk-WLHUPDBI.js.map → chunk-36DVUMQD.js.map} +0 -0
- /package/dist/{chunk-O4P43BD7.js.map → chunk-72WV3ALS.js.map} +0 -0
- /package/dist/{chunk-QJQRGM7E.js.map → chunk-FHVF26YA.js.map} +0 -0
- /package/dist/{chunk-NSVDEHEI.js.map → chunk-RMRYGICS.js.map} +0 -0
package/dist/auth/context.js
CHANGED
|
@@ -12,8 +12,8 @@ import {
|
|
|
12
12
|
useUserMetadataState,
|
|
13
13
|
useUserMetadataValue,
|
|
14
14
|
userMetadataContext
|
|
15
|
-
} from "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
} from "../chunk-72WV3ALS.js";
|
|
16
|
+
import "../chunk-YERWPV6B.js";
|
|
17
17
|
import "../chunk-GC3TBUWE.js";
|
|
18
18
|
import "../chunk-J4ZVCXZ4.js";
|
|
19
19
|
import "../chunk-OQ7U6EQ3.js";
|
package/dist/auth/hooks.js
CHANGED
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
usePermissionLoading,
|
|
12
12
|
usePermissionsBatch,
|
|
13
13
|
useSetupAuth
|
|
14
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-36DVUMQD.js";
|
|
15
15
|
import {
|
|
16
16
|
useSetUserMetadata,
|
|
17
17
|
useUserMetadata,
|
|
18
18
|
useUserMetadataState,
|
|
19
19
|
useUserMetadataValue
|
|
20
|
-
} from "../chunk-
|
|
21
|
-
import "../chunk-
|
|
20
|
+
} from "../chunk-72WV3ALS.js";
|
|
21
|
+
import "../chunk-YERWPV6B.js";
|
|
22
22
|
import "../chunk-GC3TBUWE.js";
|
|
23
23
|
import "../chunk-J4ZVCXZ4.js";
|
|
24
24
|
import "../chunk-OQ7U6EQ3.js";
|
package/dist/auth/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
usePermissionLoading,
|
|
13
13
|
usePermissionsBatch,
|
|
14
14
|
useSetupAuth
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-36DVUMQD.js";
|
|
16
16
|
import {
|
|
17
17
|
AuthProvider,
|
|
18
18
|
PermissionProvider,
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
useUserMetadataState,
|
|
28
28
|
useUserMetadataValue,
|
|
29
29
|
userMetadataContext
|
|
30
|
-
} from "../chunk-
|
|
31
|
-
import "../chunk-
|
|
30
|
+
} from "../chunk-72WV3ALS.js";
|
|
31
|
+
import "../chunk-YERWPV6B.js";
|
|
32
32
|
import {
|
|
33
33
|
hasAccess,
|
|
34
34
|
hasAllAccess,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
permissionContext,
|
|
3
3
|
setupAuthContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-72WV3ALS.js";
|
|
5
5
|
import {
|
|
6
6
|
isUsable
|
|
7
7
|
} from "./chunk-OQ7U6EQ3.js";
|
|
@@ -244,4 +244,4 @@ export {
|
|
|
244
244
|
useInvalidatePermission,
|
|
245
245
|
usePermissionLoading
|
|
246
246
|
};
|
|
247
|
-
//# sourceMappingURL=chunk-
|
|
247
|
+
//# sourceMappingURL=chunk-36DVUMQD.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useDbUpsert
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YERWPV6B.js";
|
|
4
4
|
import {
|
|
5
5
|
isUsable,
|
|
6
6
|
newUuid,
|
|
@@ -918,4 +918,4 @@ export {
|
|
|
918
918
|
useSetUserMetadata,
|
|
919
919
|
useUserMetadataState
|
|
920
920
|
};
|
|
921
|
-
//# sourceMappingURL=chunk-
|
|
921
|
+
//# sourceMappingURL=chunk-72WV3ALS.js.map
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
createAdapterAutoDetector,
|
|
3
3
|
createAdapterRegistry,
|
|
4
4
|
createSupabaseAdapter
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PMRV6WND.js";
|
|
6
6
|
import {
|
|
7
7
|
DataLayerCoreContext,
|
|
8
8
|
DataLayerStatusContext
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-YERWPV6B.js";
|
|
10
10
|
import {
|
|
11
11
|
QueryExecutor,
|
|
12
12
|
extractRelationNames,
|
|
@@ -5234,4 +5234,4 @@ object-assign/index.js:
|
|
|
5234
5234
|
@license MIT
|
|
5235
5235
|
*)
|
|
5236
5236
|
*/
|
|
5237
|
-
//# sourceMappingURL=chunk-
|
|
5237
|
+
//# sourceMappingURL=chunk-FHVF26YA.js.map
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
} from "./chunk-7SCJNYTE.js";
|
|
8
8
|
import {
|
|
9
9
|
useDbQuery
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-72WV3ALS.js";
|
|
11
11
|
import {
|
|
12
12
|
useDbUpsert
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YERWPV6B.js";
|
|
14
14
|
import {
|
|
15
15
|
getSupabaseUrl
|
|
16
16
|
} from "./chunk-GC3TBUWE.js";
|
|
@@ -1530,6 +1530,16 @@ var AdapterAutoDetector = class {
|
|
|
1530
1530
|
* Notify all listeners of a detection result change.
|
|
1531
1531
|
*/
|
|
1532
1532
|
notifyListeners(result) {
|
|
1533
|
+
const isDev = typeof __DEV__ !== "undefined" ? __DEV__ : process.env.NODE_ENV !== "production";
|
|
1534
|
+
if (isDev) {
|
|
1535
|
+
const prevBackend = this.lastResult?.recommendedBackend;
|
|
1536
|
+
if (prevBackend && prevBackend !== result.recommendedBackend) {
|
|
1537
|
+
console.log(`[DataLayer] Backend switched: ${prevBackend} \u2192 ${result.recommendedBackend}`, `| Reason: ${result.reason}`);
|
|
1538
|
+
}
|
|
1539
|
+
if (result.recommendedBackend === "supabase" && this.options.preferPowerSync) {
|
|
1540
|
+
console.log(`[DataLayer] Using online fallback (Supabase)`, `| PowerSync: ${result.powerSyncStatus}`, `| Online: ${result.isOnline}`, `| Reason: ${result.reason}`);
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1533
1543
|
Array.from(this.listeners).forEach((listener) => {
|
|
1534
1544
|
try {
|
|
1535
1545
|
listener(result);
|
|
@@ -3861,4 +3871,4 @@ export {
|
|
|
3861
3871
|
useApplyFeedback,
|
|
3862
3872
|
useResolveFeedback
|
|
3863
3873
|
};
|
|
3864
|
-
//# sourceMappingURL=chunk-
|
|
3874
|
+
//# sourceMappingURL=chunk-PMRV6WND.js.map
|