@velocitycareerlabs/vcl-react-native 2.6.0 → 2.6.2

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.
@@ -230,7 +230,10 @@ object Converter {
230
230
  val jwtMap = Arguments.createMap()
231
231
  jwtMap.putString("encodedJwt", presentationRequest.jwt.encodedJwt)
232
232
  presentationRequestMap.putMap("jwt", jwtMap)
233
- presentationRequestMap.putMap("verifiedProfile", verifiedProfileToMap(presentationRequest.verifiedProfile))
233
+ presentationRequestMap.putMap(
234
+ "verifiedProfile",
235
+ verifiedProfileToMap(presentationRequest.verifiedProfile)
236
+ )
234
237
  presentationRequestMap.putString("iss", presentationRequest.iss)
235
238
  presentationRequestMap.putString("exchangeId", presentationRequest.exchangeId)
236
239
  presentationRequestMap.putString(
@@ -706,7 +709,9 @@ object Converter {
706
709
  fun mapToVerifiedProfile(
707
710
  verifiedProfileMap: ReadableMap?
708
711
  ): VCLVerifiedProfile {
709
- return VCLVerifiedProfile(payload = verifiedProfileMap?.getMapOpt("payload")?.toJsonObject() ?: JSONObject("{}"))
712
+ return VCLVerifiedProfile(
713
+ payload = verifiedProfileMap?.getMapOpt("payload")?.toJsonObject() ?: JSONObject("{}")
714
+ )
710
715
  }
711
716
 
712
717
  fun mapToJwtDescriptor(
@@ -8,12 +8,12 @@
8
8
  import Foundation
9
9
 
10
10
  extension Dictionary {
11
- func toJsonString() -> String? {
12
- do {
13
- let jsonData = try JSONSerialization.data(withJSONObject: self, options: [])
14
- return String(data: jsonData, encoding: .utf8)
15
- } catch {
16
- return nil
17
- }
11
+ func toJsonString() -> String? {
12
+ do {
13
+ let jsonData = try JSONSerialization.data(withJSONObject: self, options: [])
14
+ return String(data: jsonData, encoding: .utf8)
15
+ } catch {
16
+ return nil
18
17
  }
18
+ }
19
19
  }
@@ -11,13 +11,13 @@
11
11
  import Foundation
12
12
 
13
13
  extension String {
14
- func toDictionary() -> [String: Any]? {
15
- if let data = self.data(using: .utf8) {
16
- do {
17
- return try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any]
18
- } catch {
19
- }
20
- }
21
- return nil
14
+ func toDictionary() -> [String: Sendable]? {
15
+ if let data = self.data(using: .utf8) {
16
+ do {
17
+ return try JSONSerialization.jsonObject(with: data, options: []) as? [String: Sendable]
18
+ } catch {
19
+ }
22
20
  }
21
+ return nil
22
+ }
23
23
  }
@@ -11,12 +11,12 @@ import Foundation
11
11
  import VCL
12
12
 
13
13
  struct GlobalConfig {
14
-
15
- static var CurrentEnvironment = VCLEnvironment.Prod
16
-
17
- static var IsDebugOn = false
18
-
19
- static let LogTagPrefix = "VCL RN iOS "
20
-
21
- static var IsLoggerOn: Bool { get { CurrentEnvironment != VCLEnvironment.Prod || GlobalConfig.IsDebugOn } }
14
+
15
+ static var CurrentEnvironment = VCLEnvironment.Prod
16
+
17
+ static var IsDebugOn = false
18
+
19
+ static let LogTagPrefix = "VCL RN iOS "
20
+
21
+ static var IsLoggerOn: Bool { get { CurrentEnvironment != VCLEnvironment.Prod || GlobalConfig.IsDebugOn } }
22
22
  }