@pol-studios/db 1.0.47 → 1.0.48
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 +3 -3
- package/dist/auth/hooks.js +4 -4
- package/dist/auth/index.js +4 -4
- package/dist/chunk-CTRY7JDP.js +4112 -0
- package/dist/chunk-CTRY7JDP.js.map +1 -0
- package/dist/{chunk-5TWB3SMJ.js → chunk-DKUF2FKB.js} +2 -2
- package/dist/{chunk-UCXYYGFG.js → chunk-FLGHJCW3.js} +2 -2
- package/dist/{chunk-5KZ5ZB7B.js → chunk-GEU5ED7L.js} +11 -5
- package/dist/chunk-GEU5ED7L.js.map +1 -0
- package/dist/{chunk-POU4MVXN.js → chunk-GY7HDOBA.js} +3 -3
- package/dist/chunk-INEUG6MC.js +521 -0
- package/dist/chunk-INEUG6MC.js.map +1 -0
- package/dist/{chunk-LF3V3ERS.js → chunk-OKYHI6JG.js} +3 -3
- package/dist/{chunk-AKIRHA4Q.js → chunk-UJWETW36.js} +418 -527
- package/dist/chunk-UJWETW36.js.map +1 -0
- package/dist/{chunk-HJXJIBXC.js → chunk-WZOQ5KG2.js} +2 -2
- package/dist/{chunk-FI6JAD5G.js → chunk-YA6MUTA7.js} +3 -3
- package/dist/{chunk-Z456IHCB.js → chunk-Z3EJX3VG.js} +3 -3
- package/dist/{chunk-WM25QE7E.js → chunk-ZGQ7Q4ZU.js} +2 -2
- package/dist/index.js +11 -11
- package/dist/index.native.js +11 -11
- package/dist/index.web.js +11 -11
- package/dist/mutation/index.js +3 -3
- package/dist/parser/index.js +3 -3
- package/dist/query/index.js +4 -4
- package/dist/realtime/index.js +3 -3
- package/dist/types/index.js +4 -4
- package/dist/with-auth/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-5KZ5ZB7B.js.map +0 -1
- package/dist/chunk-AKIRHA4Q.js.map +0 -1
- package/dist/chunk-JOULSXOI.js +0 -415
- package/dist/chunk-JOULSXOI.js.map +0 -1
- package/dist/chunk-YUX6RGLZ.js +0 -1858
- package/dist/chunk-YUX6RGLZ.js.map +0 -1
- /package/dist/{chunk-5TWB3SMJ.js.map → chunk-DKUF2FKB.js.map} +0 -0
- /package/dist/{chunk-UCXYYGFG.js.map → chunk-FLGHJCW3.js.map} +0 -0
- /package/dist/{chunk-POU4MVXN.js.map → chunk-GY7HDOBA.js.map} +0 -0
- /package/dist/{chunk-LF3V3ERS.js.map → chunk-OKYHI6JG.js.map} +0 -0
- /package/dist/{chunk-HJXJIBXC.js.map → chunk-WZOQ5KG2.js.map} +0 -0
- /package/dist/{chunk-FI6JAD5G.js.map → chunk-YA6MUTA7.js.map} +0 -0
- /package/dist/{chunk-Z456IHCB.js.map → chunk-Z3EJX3VG.js.map} +0 -0
- /package/dist/{chunk-WM25QE7E.js.map → chunk-ZGQ7Q4ZU.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
encode,
|
|
8
8
|
useQueriesForTableLoader,
|
|
9
9
|
useUpsertItem
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CTRY7JDP.js";
|
|
11
11
|
import {
|
|
12
12
|
useSupabase
|
|
13
13
|
} from "./chunk-DMVUEJG2.js";
|
|
@@ -1106,4 +1106,4 @@ export {
|
|
|
1106
1106
|
useSetUserMetadata,
|
|
1107
1107
|
useUserMetadataState
|
|
1108
1108
|
};
|
|
1109
|
-
//# sourceMappingURL=chunk-
|
|
1109
|
+
//# sourceMappingURL=chunk-DKUF2FKB.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
permissionContext,
|
|
3
3
|
setupAuthContext
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-DKUF2FKB.js";
|
|
5
5
|
|
|
6
6
|
// src/auth/hooks/useAuth.ts
|
|
7
7
|
import { isUsable } from "@pol-studios/utils";
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
useInvalidatePermission,
|
|
206
206
|
usePermissionLoading
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=chunk-
|
|
208
|
+
//# sourceMappingURL=chunk-FLGHJCW3.js.map
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-RJIVXO4U.js";
|
|
4
4
|
import {
|
|
5
5
|
normalizeFilter
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Z3EJX3VG.js";
|
|
7
7
|
import {
|
|
8
8
|
OperationLog
|
|
9
9
|
} from "./chunk-7SCJNYTE.js";
|
|
10
10
|
import {
|
|
11
11
|
useDbQuery
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-DKUF2FKB.js";
|
|
13
13
|
import {
|
|
14
14
|
useDataLayerCoreOptional
|
|
15
15
|
} from "./chunk-AIYPSXIO.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-GC3TBUWE.js";
|
|
19
19
|
import {
|
|
20
20
|
PostgrestParser
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-UJWETW36.js";
|
|
22
22
|
import {
|
|
23
23
|
buildNormalizedQuery,
|
|
24
24
|
encode,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
useQueriesForTableLoader,
|
|
29
29
|
useQuery,
|
|
30
30
|
useUpsertItem
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-CTRY7JDP.js";
|
|
32
32
|
import {
|
|
33
33
|
UserSessionId,
|
|
34
34
|
useSupabase
|
|
@@ -4766,6 +4766,12 @@ var AdapterRegistry = class {
|
|
|
4766
4766
|
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.`);
|
|
4767
4767
|
}
|
|
4768
4768
|
}
|
|
4769
|
+
if (operation === "write") {
|
|
4770
|
+
if (this.powerSyncAdapter) {
|
|
4771
|
+
return this.syncTrackingAdapter ?? this.powerSyncAdapter;
|
|
4772
|
+
}
|
|
4773
|
+
throw new Error(`PowerSync adapter not initialized for write operation on table "${table}". Writes to auto-strategy tables require PowerSync to be available for offline queue support.`);
|
|
4774
|
+
}
|
|
4769
4775
|
return this.getAutoAdapter(strategy);
|
|
4770
4776
|
}
|
|
4771
4777
|
if (strategy.strategy === "powersync" && this.autoDetector && this.supabaseAdapter) {
|
|
@@ -7930,4 +7936,4 @@ moment/moment.js:
|
|
|
7930
7936
|
(*! license : MIT *)
|
|
7931
7937
|
(*! momentjs.com *)
|
|
7932
7938
|
*/
|
|
7933
|
-
//# sourceMappingURL=chunk-
|
|
7939
|
+
//# sourceMappingURL=chunk-GEU5ED7L.js.map
|