supastash 0.1.39 → 0.1.41
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rn_nitro.d.ts","sourceRoot":"","sources":["../../../src/db/adapters/rn_nitro.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rn_nitro.d.ts","sourceRoot":"","sources":["../../../src/db/adapters/rn_nitro.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,sBAAsB,EAEvB,MAAM,mCAAmC,CAAC;AAG3C,eAAO,MAAM,kBAAkB,EAAE,sBA0ChC,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { enableSimpleNullHandling } from "react-native-nitro-sqlite";
|
|
2
1
|
import { logWarn } from "../../utils/logs";
|
|
3
2
|
export const SQLiteAdapterNitro = {
|
|
4
3
|
async openDatabaseAsync(name, sqliteClient) {
|
|
5
4
|
//Enable simple null handling for Nitro SQLite
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
const nitro = require("react-native-nitro-sqlite");
|
|
6
|
+
console.log("nitro", nitro?.enableSimpleNullHandling);
|
|
7
|
+
if (nitro?.enableSimpleNullHandling) {
|
|
8
|
+
nitro.enableSimpleNullHandling();
|
|
8
9
|
}
|
|
9
10
|
else {
|
|
10
11
|
logWarn("[Supastash] Simple null handling is not enabled for Nitro SQLite", "Please update your react-native-nitro-sqlite version to 9.1.3 or higher");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"supabaseQuery.d.ts","sourceRoot":"","sources":["../../../../src/utils/query/remoteQuery/supabaseQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,cAAc,EACf,MAAM,4BAA4B,CAAC;AAWpC;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,OAAO,EAAE,CAAC,EAAE,CAAC,EACzD,KAAK,EAAE,cAAc,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC,EACxC,SAAS,UAAQ,GAChB,OAAO,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"supabaseQuery.d.ts","sourceRoot":"","sources":["../../../../src/utils/query/remoteQuery/supabaseQuery.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,cAAc,EACf,MAAM,4BAA4B,CAAC;AAWpC;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,CAAC,SAAS,OAAO,EAAE,CAAC,EAAE,CAAC,EACzD,KAAK,EAAE,cAAc,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC,CAAC,EACxC,SAAS,UAAQ,GAChB,OAAO,CAAC,mBAAmB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAsNpC"}
|
|
@@ -97,7 +97,6 @@ export async function querySupabase(state, isBatched = false) {
|
|
|
97
97
|
});
|
|
98
98
|
break;
|
|
99
99
|
case "delete":
|
|
100
|
-
console.log("delete", timeStamp);
|
|
101
100
|
filterQuery = query.update({
|
|
102
101
|
deleted_at: timeStamp,
|
|
103
102
|
});
|
|
@@ -113,9 +112,6 @@ export async function querySupabase(state, isBatched = false) {
|
|
|
113
112
|
filterQuery = filterQuery[op](column, value);
|
|
114
113
|
}
|
|
115
114
|
}
|
|
116
|
-
if (method === "delete") {
|
|
117
|
-
console.log("delete", filterQuery);
|
|
118
|
-
}
|
|
119
115
|
if (limit != null) {
|
|
120
116
|
filterQuery = filterQuery.limit(limit);
|
|
121
117
|
}
|