@oscilar/react-native-oscilar-module 3.0.4 → 3.0.5

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.
@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
16
16
 
17
17
  s.source_files = "ios/**/*.{h,m,mm,swift}"
18
18
 
19
- s.dependency "OscilarSDK", "3.0.3"
19
+ s.dependency "OscilarSDK", "3.0.4"
20
20
 
21
21
  s.ios.deployment_target = '15.0'
22
22
 
@@ -36,6 +36,9 @@ RCT_EXTERN_METHOD(generateTransactionIDWithFlowTypeAndUserInfo:(NSString*)flowTy
36
36
  withResolver:(RCTPromiseResolveBlock)resolve
37
37
  withRejecter:(RCTPromiseRejectBlock)reject)
38
38
 
39
+ RCT_EXTERN_METHOD(getIntegrationHealthInfo:(RCTPromiseResolveBlock)resolve
40
+ withRejecter:(RCTPromiseRejectBlock)reject)
41
+
39
42
  + (BOOL)requiresMainQueueSetup
40
43
  {
41
44
  return NO;
@@ -172,4 +172,19 @@ class OscilarModule: NSObject {
172
172
  }
173
173
  }
174
174
 
175
+ @objc(getIntegrationHealthInfo:withRejecter:)
176
+ func getIntegrationHealthInfo(
177
+ resolve: @escaping RCTPromiseResolveBlock,
178
+ reject: @escaping RCTPromiseRejectBlock
179
+ ) -> Void {
180
+ Task {
181
+ do {
182
+ let info = try await Oscilar.shared.getIntegrationHealthInfo()
183
+ resolve(info)
184
+ } catch {
185
+ reject(nil, nil, error)
186
+ }
187
+ }
188
+ }
189
+
175
190
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oscilar/react-native-oscilar-module",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "Oscilar module for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",