@functionland/react-native-fula 1.55.17 → 1.55.18

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 +2 -2
  2. package/package.json +1 -1
package/ios/Fula.swift CHANGED
@@ -2219,7 +2219,7 @@ func streamChunks(streamID: String, resolve: @escaping RCTPromiseResolveBlock, r
2219
2219
  throw MyError.runtimeError("ReactNative Fula client is not initialized")
2220
2220
  }
2221
2221
 
2222
- let iterator = fula.getStreamIterator(streamID)
2222
+ let iterator = try fula.getStreamIterator(streamID)
2223
2223
  // Iterator is now non-optional, no need for nil check
2224
2224
 
2225
2225
  // Start listening for chunks on the main thread
@@ -2264,7 +2264,7 @@ private func pollIterator(iterator: FulamobileStreamIterator, resolve: @escaping
2264
2264
  } else if errorMessage.contains("timeout") {
2265
2265
  // Retry on timeout
2266
2266
  DispatchQueue.main.async {
2267
- self.pollIterator(iterator: iterator!, resolve: resolve, reject: reject)
2267
+ self.pollIterator(iterator: iterator, resolve: resolve, reject: reject)
2268
2268
  }
2269
2269
  } else {
2270
2270
  self.emitEvent(eventName: "onStreamError", data: errorMessage)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionland/react-native-fula",
3
- "version": "1.55.17",
3
+ "version": "1.55.18",
4
4
  "description": "This package is a bridge to use the Fula libp2p protocols in the react-native which is using wnfs",
5
5
  "type": "module",
6
6
  "main": "lib/commonjs/index",