@onekeyfe/react-native-sni-connect 3.0.72 → 3.0.74

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/ios/SniConnect.mm CHANGED
@@ -50,7 +50,7 @@ RCT_EXPORT_MODULE(SniConnect)
50
50
 
51
51
  #ifdef RCT_NEW_ARCH_ENABLED
52
52
  // TurboModule interface implementation
53
- - (void)request:(JS::NativeSniConnect::SniConnectRequest &)config
53
+ - (void)request:(JS::NativeSniConnect::NativeSniConnectRequest &)config
54
54
  resolve:(RCTPromiseResolveBlock)resolve
55
55
  reject:(RCTPromiseRejectBlock)reject {
56
56
  // Convert Codegen struct to NSDictionary for the Swift implementation.
@@ -680,9 +680,9 @@ final class SniConnectClient {
680
680
 
681
681
  do {
682
682
  return try await SniConnectWallClockDeadline.run(timeoutMilliseconds: config.effectiveTotalTimeout) {
683
- let lease = try await sessionLease(for: config)
683
+ let lease = try await self.sessionLease(for: config)
684
684
  defer {
685
- releaseSessionLease(lease)
685
+ self.releaseSessionLease(lease)
686
686
  }
687
687
  let (bodyBytes, response) = try await lease.session.bytes(for: request)
688
688
  guard let httpResponse = response as? HTTPURLResponse else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-sni-connect",
3
- "version": "3.0.72",
3
+ "version": "3.0.74",
4
4
  "description": "A React Native library for SNI-based HTTP requests with DNS caching and request management",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",