@minip2p/react-native 0.4.5 → 0.4.7

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 (37) hide show
  1. package/Minip2p.podspec +1 -1
  2. package/android/src/main/java/com/minip2p/Minip2pPackage.kt +2 -2
  3. package/android/src/main/jniLibs/arm64-v8a/libminip2p_ffi.so +0 -0
  4. package/android/src/main/jniLibs/x86_64/libminip2p_ffi.so +0 -0
  5. package/build/Minip2pFfi.xcframework/ios-arm64/libminip2p_ffi.a +0 -0
  6. package/build/Minip2pFfi.xcframework/ios-arm64-simulator/libminip2p_ffi.a +0 -0
  7. package/cpp/generated/minip2p_ffi.cpp +263 -205
  8. package/cpp/generated/minip2p_ffi.hpp +8 -6
  9. package/lib/module/adapter.js +11 -10
  10. package/lib/module/adapter.js.map +1 -1
  11. package/lib/module/event-drain.js +71 -0
  12. package/lib/module/event-drain.js.map +1 -0
  13. package/lib/module/generated/minip2p_ffi-ffi.js.map +1 -1
  14. package/lib/module/generated/minip2p_ffi.js +665 -693
  15. package/lib/module/generated/minip2p_ffi.js.map +1 -1
  16. package/lib/typescript/src/NativeMinip2p.d.ts.map +1 -1
  17. package/lib/typescript/src/adapter.d.ts.map +1 -1
  18. package/lib/typescript/src/event-drain.d.ts +10 -0
  19. package/lib/typescript/src/event-drain.d.ts.map +1 -0
  20. package/lib/typescript/src/generated/minip2p_ffi-ffi.d.ts +16 -14
  21. package/lib/typescript/src/generated/minip2p_ffi-ffi.d.ts.map +1 -1
  22. package/lib/typescript/src/generated/minip2p_ffi.d.ts +785 -782
  23. package/lib/typescript/src/generated/minip2p_ffi.d.ts.map +1 -1
  24. package/lib/typescript/src/hook-lifecycle.d.ts.map +1 -1
  25. package/lib/typescript/src/hooks.d.ts.map +1 -1
  26. package/lib/typescript/src/native.d.ts.map +1 -1
  27. package/lib/typescript/tests/adapter-event-drain.test.d.ts +2 -0
  28. package/lib/typescript/tests/adapter-event-drain.test.d.ts.map +1 -0
  29. package/lib/typescript/tests/event-drain.test.d.ts +2 -0
  30. package/lib/typescript/tests/event-drain.test.d.ts.map +1 -0
  31. package/lib/typescript/vitest.built.config.d.ts +3 -0
  32. package/lib/typescript/vitest.built.config.d.ts.map +1 -0
  33. package/package.json +18 -18
  34. package/src/adapter.ts +15 -11
  35. package/src/event-drain.ts +80 -0
  36. package/src/generated/minip2p_ffi-ffi.ts +16 -14
  37. package/src/generated/minip2p_ffi.ts +665 -705
package/Minip2p.podspec CHANGED
@@ -17,7 +17,7 @@ Pod::Spec.new do |s|
17
17
 
18
18
  s.source_files = "ios/**/*.{h,m,mm,swift}", "ios/generated/**/*.{h,m,mm}", "cpp/**/*.{hpp,cpp,c,h}", "cpp/generated/**/*.{hpp,cpp,c,h}"
19
19
  s.vendored_frameworks = "build/Minip2pFfi.xcframework"
20
- s.dependency "uniffi-bindgen-react-native", "0.31.0-3"
20
+ s.dependency "uniffi-bindgen-react-native", "0.31.0-5"
21
21
 
22
22
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
23
23
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.
@@ -1,14 +1,14 @@
1
1
  // Generated by uniffi-bindgen-react-native
2
2
  package com.minip2p
3
3
 
4
- import com.facebook.react.TurboReactPackage
4
+ import com.facebook.react.BaseReactPackage
5
5
  import com.facebook.react.bridge.NativeModule
6
6
  import com.facebook.react.bridge.ReactApplicationContext
7
7
  import com.facebook.react.module.model.ReactModuleInfo
8
8
  import com.facebook.react.module.model.ReactModuleInfoProvider
9
9
  import java.util.HashMap
10
10
 
11
- class Minip2pPackage : TurboReactPackage() {
11
+ class Minip2pPackage : BaseReactPackage() {
12
12
  override fun getModule(name: String, reactContext: ReactApplicationContext): NativeModule? {
13
13
  return if (name == Minip2pModule.NAME) {
14
14
  Minip2pModule(reactContext)