supastash 0.1.40 → 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");
|