@velocitycareerlabs/vcl-react-native 2.4.6 → 2.5.4

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.
@@ -91,8 +91,10 @@ dependencies {
91
91
  implementation "com.facebook.react:react-native:+"
92
92
  implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
93
93
 
94
- // VCL:
95
- implementation "com.nimbusds:nimbus-jose-jwt:9.37.3"
96
- implementation "io.velocitycareerlabs:vcl:2.4.6"
94
+ //--------- Must: be added:
95
+ implementation "io.velocitycareerlabs:vcl:2.5.4"
96
+ implementation 'com.nimbusds:nimbus-jose-jwt:9.40'
97
+ implementation "androidx.security:security-crypto:1.1.0-alpha06"
98
+ //-------------------------
97
99
  }
98
100
 
@@ -647,7 +647,7 @@ object Converter {
647
647
  finalizedOffersDescriptorMap: ReadableMap
648
648
  ) = VCLFinalizeOffersDescriptor(
649
649
  credentialManifest = mapToCredentialManifest(finalizedOffersDescriptorMap.getMapOpt("credentialManifest")),
650
- offers = mapToOffers(finalizedOffersDescriptorMap.getMapOpt("offers")),
650
+ challenge = finalizedOffersDescriptorMap.getString("challenge"),
651
651
  approvedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("approvedOfferIds")?.toArrayList()
652
652
  ?.toList() as? List<String>) ?: listOf(),
653
653
  rejectedOfferIds = (finalizedOffersDescriptorMap.getArrayOpt("rejectedOfferIds")?.toArrayList()
@@ -592,7 +592,7 @@ func dictionaryToFinalizedOffersDescriptor(
592
592
  ) -> VCLFinalizeOffersDescriptor {
593
593
  return VCLFinalizeOffersDescriptor(
594
594
  credentialManifest: dictionaryToCredentialManifest(finalizedOffersDescriptorDictionary["credentialManifest"] as? [String : Any]),
595
- offers: dictionaryToOffers(finalizedOffersDescriptorDictionary["offers"] as? [String : Any]),
595
+ challenge: finalizedOffersDescriptorDictionary["challenge"] as? String,
596
596
  approvedOfferIds: finalizedOffersDescriptorDictionary["approvedOfferIds"] as? [String] ?? [String](),
597
597
  rejectedOfferIds: finalizedOffersDescriptorDictionary["rejectedOfferIds"] as? [String] ?? [String]()
598
598
  )
@@ -5,10 +5,9 @@
5
5
  * SPDX-License-Identifier: Apache-2.0
6
6
  */
7
7
  import type { VCLCredentialManifest } from './VCLCredentialManifest';
8
- import type { VCLOffers } from './VCLOffers';
9
8
  export interface VCLFinalizeOffersDescriptor {
10
9
  credentialManifest: VCLCredentialManifest;
11
- offers: VCLOffers;
10
+ challenge?: string;
12
11
  rejectedOfferIds: string[];
13
12
  approvedOfferIds: string[];
14
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"VCLFinalizeOffersDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLFinalizeOffersDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,2BAA2B;IAC1C,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,MAAM,EAAE,SAAS,CAAC;IAClB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B"}
1
+ {"version":3,"file":"VCLFinalizeOffersDescriptor.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLFinalizeOffersDescriptor.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAAM,WAAW,2BAA2B;IAC1C,kBAAkB,EAAE,qBAAqB,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B"}
@@ -12,6 +12,6 @@ export interface VCLOffers {
12
12
  all: VCLOffer[];
13
13
  responseCode: number;
14
14
  sessionToken: VCLToken;
15
- challenge: string;
15
+ challenge?: string;
16
16
  }
17
17
  //# sourceMappingURL=VCLOffers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VCLOffers.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLOffers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,GAAG,EAAE,QAAQ,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"VCLOffers.d.ts","sourceRoot":"","sources":["../../../../../src/api/entities/VCLOffers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IACzB,GAAG,EAAE,QAAQ,EAAE,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,QAAQ,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "2.4.6",
3
+ "version": "2.5.4",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -6,11 +6,10 @@
6
6
  */
7
7
 
8
8
  import type { VCLCredentialManifest } from './VCLCredentialManifest';
9
- import type { VCLOffers } from './VCLOffers';
10
9
 
11
10
  export interface VCLFinalizeOffersDescriptor {
12
11
  credentialManifest: VCLCredentialManifest;
13
- offers: VCLOffers;
12
+ challenge?: string;
14
13
  rejectedOfferIds: string[];
15
14
  approvedOfferIds: string[];
16
15
  }
@@ -14,5 +14,5 @@ export interface VCLOffers {
14
14
  all: VCLOffer[];
15
15
  responseCode: number;
16
16
  sessionToken: VCLToken;
17
- challenge: string;
17
+ challenge?: string;
18
18
  }
@@ -19,7 +19,7 @@ Pod::Spec.new do |s|
19
19
  # https://github.com/CocoaPods/CocoaPods/issues/7234#issuecomment-346136322
20
20
  # s.static_framework = true
21
21
 
22
- s.dependency "VCL", "2.4.6"
22
+ s.dependency "VCL", "2.5.4"
23
23
 
24
24
  # Use install_modules_dependencies helper to install the dependencies if React Native version >=0.71.0.
25
25
  # See https://github.com/facebook/react-native/blob/febf6b7f33fdb4904669f99d795eba4c0f95d7bf/scripts/cocoapods/new_architecture.rb#L79.