@functionland/react-native-fula 1.54.26 → 1.54.27

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.
Files changed (2) hide show
  1. package/ios/Fula.swift +5 -1
  2. package/package.json +1 -1
package/ios/Fula.swift CHANGED
@@ -1972,7 +1972,11 @@ func replicateInPool(cidArray: [String], account: String, poolID: String, resolv
1972
1972
 
1973
1973
  let result: Data
1974
1974
  do {
1975
- result = try fula.replicate(inPool: cidsBytes, account: account, poolID: poolIDInt)
1975
+ if let replicationResult = try fula.replicate(inPool: cidsBytes, account: account, poolID: poolIDInt) {
1976
+ result = replicationResult
1977
+ } else {
1978
+ throw NSError(domain: "FULAErrorDomain", code: 1007, userInfo: [NSLocalizedDescriptionKey: "Replication result is nil"])
1979
+ }
1976
1980
  } catch {
1977
1981
  print("Error replicating in pool: \(error)")
1978
1982
  DispatchQueue.main.async {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionland/react-native-fula",
3
- "version": "1.54.26",
3
+ "version": "1.54.27",
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",