@velocitycareerlabs/vcl-react-native 1.21.4 → 1.22.0

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.
@@ -100,7 +100,7 @@ dependencies {
100
100
 
101
101
  // VCL:
102
102
  implementation "com.nimbusds:nimbus-jose-jwt:9.35"
103
- implementation "io.velocitycareerlabs:vcl:1.21.4"
103
+ implementation "io.velocitycareerlabs:vcl:1.22.0"
104
104
  }
105
105
 
106
106
  if (isNewArchitectureEnabled()) {
@@ -199,6 +199,9 @@ object Converter {
199
199
  fun tokenToMap(token: VCLToken): ReadableMap {
200
200
  val retVal = Arguments.createMap()
201
201
  retVal.putString("value", token.value)
202
+ token.expiresIn?.toDouble()?.let {
203
+ retVal.putDouble("expiresIn", it)
204
+ }
202
205
  return retVal
203
206
  }
204
207
 
@@ -188,7 +188,12 @@ func dictionaryToToken(_ tokenDictionary: [String: Any]?) -> VCLToken {
188
188
  }
189
189
 
190
190
  func tokenToDictionary(_ token: VCLToken) -> [String: Any] {
191
- return ["value": token.value]
191
+ var retVal = [String: Any]()
192
+ retVal["value"] = token.value
193
+ if let expiresIn = token.expiresIn {
194
+ retVal["expiresIn"] = expiresIn
195
+ }
196
+ return retVal
192
197
  }
193
198
 
194
199
  func dictionaryToIssuingType(
@@ -6,5 +6,6 @@
6
6
  */
7
7
  export interface VCLToken {
8
8
  value: string;
9
+ expirationDate: BigInt;
9
10
  }
10
11
  //# sourceMappingURL=VCLToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VCLToken.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/VCLToken.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;CACf"}
1
+ {"version":3,"file":"VCLToken.d.ts","sourceRoot":"","sources":["../../../../src/api/entities/VCLToken.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAA;CACvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@velocitycareerlabs/vcl-react-native",
3
- "version": "1.21.4",
3
+ "version": "1.22.0",
4
4
  "description": "Velocity Career Labs React Native SDK",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -54,14 +54,16 @@
54
54
  "registry": "https://registry.npmjs.org/"
55
55
  },
56
56
  "devDependencies": {
57
+ "@commitlint/config-conventional": "^18.4.3",
57
58
  "@evilmartians/lefthook": "^1.5.5",
58
59
  "@react-native-community/eslint-config": "^3.2.0",
59
60
  "@release-it/conventional-changelog": "^8.0.1",
60
61
  "@types/jest": "^29.5.11",
61
62
  "@types/react": "~18.2.45",
62
- "@types/react-native": "~0.72.8",
63
+ "@types/react-native": "~0.72.8",
63
64
  "commitlint": "^18.4.3",
64
- "@commitlint/config-conventional": "^18.4.3",
65
+ "del-cli": "^5.1.0",
66
+ "eslint": "^8.56.0",
65
67
  "eslint-config-airbnb": "^19.0.4",
66
68
  "eslint-config-airbnb-typescript": "^17.1.0",
67
69
  "eslint-config-prettier": "^9.1.0",
@@ -70,13 +72,11 @@
70
72
  "eslint-plugin-jest": "^27.6.0",
71
73
  "eslint-plugin-jsx-a11y": "^6.8.0",
72
74
  "eslint-plugin-prefer-arrow-functions": "^3.2.4",
75
+ "eslint-plugin-prettier": "^5.1.0",
73
76
  "eslint-plugin-react": "^7.33.2",
74
77
  "eslint-plugin-react-hooks": "^4.6.0",
75
78
  "eslint-plugin-unused-imports": "^3.0.0",
76
79
  "husky": "^8.0.3",
77
- "del-cli": "^5.1.0",
78
- "eslint": "^8.56.0",
79
- "eslint-plugin-prettier": "^5.1.0",
80
80
  "jest": "^29.7.0",
81
81
  "pod-install": "^0.1.39",
82
82
  "prettier": "^3.1.1",
@@ -97,7 +97,7 @@
97
97
  "engines": {
98
98
  "node": ">= 16.0.0"
99
99
  },
100
- "packageManager": "^yarn@1.22.15",
100
+ "packageManager": "yarn@1.22.21",
101
101
  "jest": {
102
102
  "preset": "react-native",
103
103
  "modulePathIgnorePatterns": [
@@ -170,5 +170,8 @@
170
170
  }
171
171
  ]
172
172
  ]
173
+ },
174
+ "dependencies": {
175
+ "yarn": "1.22.21"
173
176
  }
174
177
  }
@@ -7,4 +7,5 @@
7
7
 
8
8
  export interface VCLToken {
9
9
  value: string;
10
+ expirationDate: BigInt
10
11
  }
@@ -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", "1.21.4"
22
+ s.dependency "VCL", "1.22.0"
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.