@functionland/react-native-fula 1.54.29 → 1.54.30

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.
@@ -1197,8 +1197,7 @@ public class FulaModule extends ReactContextBaseJavaModule {
1197
1197
 
1198
1198
  }
1199
1199
  } catch (Exception e) {
1200
- Log.d("ReactNative", "shutdownInternal"+ e.getMessage());
1201
- throw (e);
1200
+ Log.d("ReactNative", "shutdownInternal error: "+ e.getMessage());
1202
1201
  }
1203
1202
  }
1204
1203
 
package/ios/Fula.swift CHANGED
@@ -1220,12 +1220,18 @@ class FulaModule: NSObject {
1220
1220
 
1221
1221
  }
1222
1222
 
1223
- func shutdownInternal() throws {
1223
+ func shutdownInternal() {
1224
1224
  NSLog("ReactNative shutdownInternal")
1225
- if(self.fula != nil) {
1225
+ if self.fula != nil {
1226
1226
  NSLog("ReactNative shutdownInternal fula is not null")
1227
- try self.fula?.shutdown()
1228
- NSLog("ReactNative shutdownInternal fula.shutdown called")
1227
+ do {
1228
+ try self.fula?.shutdown()
1229
+ NSLog("ReactNative shutdownInternal fula.shutdown called")
1230
+ } catch {
1231
+ // Handle specific errors if needed or log them
1232
+ NSLog("ReactNative shutdownInternal error: \(error.localizedDescription)")
1233
+ }
1234
+ // Ensure resources are cleaned up regardless of errors
1229
1235
  self.fula = nil
1230
1236
  self.client = nil
1231
1237
  self.wnfs = nil
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionland/react-native-fula",
3
- "version": "1.54.29",
3
+ "version": "1.54.30",
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",