@kingstinct/react-native-healthkit 7.1.0 → 7.1.1

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.
@@ -716,13 +716,15 @@ class ReactNativeHealthkit: RCTEventEmitter {
716
716
 
717
717
  #if canImport(WorkoutKit)
718
718
  if #available(iOS 17.0, *) {
719
- do {
720
- let workoutplan = try await workout.workoutPlan
721
- if let workoutplanId = workoutplan?.id {
722
- dict["workoutPlanId"] = workoutplanId.uuidString
719
+ Task {
720
+ do {
721
+ let workoutplan = try await workout.workoutPlan
722
+ if let workoutplanId = workoutplan?.id {
723
+ dict["workoutPlanId"] = workoutplanId.uuidString
724
+ }
725
+ } catch {
726
+ // handle error
723
727
  }
724
- } catch {
725
- // handle error
726
728
  }
727
729
  }
728
730
  #endif
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kingstinct/react-native-healthkit",
3
- "version": "7.1.0",
3
+ "version": "7.1.1",
4
4
  "description": "React Native bindings for HealthKit",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",