@functionland/react-native-fula 1.1.8 → 1.1.9
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.
|
@@ -1019,7 +1019,13 @@ public class FulaModule extends ReactContextBaseJavaModule {
|
|
|
1019
1019
|
@ReactMethod
|
|
1020
1020
|
public void shutdown(Promise promise) {
|
|
1021
1021
|
ThreadUtils.runOnExecutor(() -> {
|
|
1022
|
-
|
|
1022
|
+
try {
|
|
1023
|
+
shutdownInternal();
|
|
1024
|
+
promise.resolve(true);
|
|
1025
|
+
} catch (Exception e) {
|
|
1026
|
+
promise.reject(e);
|
|
1027
|
+
Log.d("ReactNative", "shutdown"+ e.getMessage());
|
|
1028
|
+
}
|
|
1023
1029
|
});
|
|
1024
1030
|
}
|
|
1025
1031
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@functionland/react-native-fula",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|