react-native-mosquito-transport 0.0.24 → 0.0.25
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-mosquito-transport",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "React native javascript sdk for mosquito-transport (https://github.com/brainbehindx/mosquito-transport)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -30,12 +30,10 @@
|
|
|
30
30
|
"@turf/turf": "^7.1.0",
|
|
31
31
|
"bson": "^6.8.0",
|
|
32
32
|
"buffer": "^6.0.3",
|
|
33
|
-
"entity-serializer": "^1.0.
|
|
33
|
+
"entity-serializer": "^1.0.3",
|
|
34
34
|
"guard-object": "^1.1.4",
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
|
-
"react-native-file-access": "^3.1.1",
|
|
37
36
|
"react-native-get-random-values": "^1.9.0",
|
|
38
|
-
"react-native-sha256": "^1.4.10",
|
|
39
37
|
"simplify-error": "^1.0.1",
|
|
40
38
|
"socket.io-client": "^4.6.2",
|
|
41
39
|
"subscription-listener": "^1.1.2",
|
|
@@ -43,9 +41,12 @@
|
|
|
43
41
|
},
|
|
44
42
|
"peerDependencies": {
|
|
45
43
|
"react": "*",
|
|
46
|
-
"react-native": "*"
|
|
44
|
+
"react-native": "*",
|
|
45
|
+
"react-native-file-access": "*",
|
|
46
|
+
"react-native-sha256": "*",
|
|
47
|
+
"react-native-sqlite-storage": "*"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@types/react-native-sqlite-storage": "^6.0.5"
|
|
50
51
|
}
|
|
51
|
-
}
|
|
52
|
+
}
|
|
@@ -8,7 +8,7 @@ const MAX_INLINE_BLOB = 1024;
|
|
|
8
8
|
const DIR_PATH = `${Platform.OS === 'android' ? Dirs.DatabaseDir : Dirs.MainBundleDir}/MOSQUITO`;
|
|
9
9
|
const resolvePath = (path = '') => `${DIR_PATH}/${path.startsWith('/') ? path : '/' + path}`;
|
|
10
10
|
|
|
11
|
-
const DIR_CREATION_PROMISE = FileSystem.mkdir(DIR_PATH);
|
|
11
|
+
const DIR_CREATION_PROMISE = FileSystem.mkdir(DIR_PATH).catch(() => null);
|
|
12
12
|
|
|
13
13
|
const fsWrite = async (path, data) => {
|
|
14
14
|
await DIR_CREATION_PROMISE;
|
|
@@ -114,7 +114,7 @@ export const useSqliteLinearAccessId = (builder, access_id, node) => async (task
|
|
|
114
114
|
try {
|
|
115
115
|
resolve(await task(sqlite, db_filename));
|
|
116
116
|
} catch (error) {
|
|
117
|
-
console.error('useSqliteLinearAccessId err:', error);
|
|
117
|
+
console.error('useSqliteLinearAccessId err:', error, ' builder:', builder);
|
|
118
118
|
reject(error);
|
|
119
119
|
} finally {
|
|
120
120
|
if (Scoped.linearSqliteProcess[node][nodeId] === thisPromise)
|