@veryai/react-native-sdk 1.0.54 → 1.0.56

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.
@@ -25,7 +25,8 @@ class VerySDKModuleImpl(private val reactContext: ReactApplicationContext) {
25
25
  userId = if (configMap.hasKey("userId") && !configMap.isNull("userId")) configMap.getString("userId") else null,
26
26
  language = if (configMap.hasKey("language") && !configMap.isNull("language")) configMap.getString("language") else null,
27
27
  themeMode = configMap.getString("themeMode") ?: "dark",
28
- debugLogging = configMap.hasKey("debugLogging") && !configMap.isNull("debugLogging") && configMap.getBoolean("debugLogging")
28
+ debugLogging = configMap.hasKey("debugLogging") && !configMap.isNull("debugLogging") && configMap.getBoolean("debugLogging"),
29
+ clientReferenceId = if (configMap.hasKey("clientReferenceId") && !configMap.isNull("clientReferenceId")) configMap.getString("clientReferenceId") else null
29
30
  )
30
31
 
31
32
  val style = when (configMap.getString("presentationStyle")) {
@@ -31,6 +31,7 @@ class VerySDKRN: NSObject {
31
31
  livenessMode: livenessMode,
32
32
  debugLogging: config["debugLogging"] as? Bool ?? false
33
33
  )
34
+ veryConfig.clientReferenceId = config["clientReferenceId"] as? String
34
35
 
35
36
  let style: VeryPresentationStyle = .modal
36
37
 
@@ -15,6 +15,12 @@ export interface VeryConfig {
15
15
  * console. Errors always log regardless of this flag.
16
16
  */
17
17
  debugLogging?: boolean;
18
+ /**
19
+ * Partner-supplied session/transaction id (distinct from `userId`), echoed
20
+ * back on the registration dashboard so partners can join our rows to their
21
+ * own records. Optional.
22
+ */
23
+ clientReferenceId?: string;
18
24
  }
19
25
  export interface VeryResult {
20
26
  code: string;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;IACjD;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACnC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;CACpB"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7B,iBAAiB,CAAC,EAAE,YAAY,GAAG,aAAa,CAAC;IACjD;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IACnC;;;;OAIG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veryai/react-native-sdk",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "description": "React Native wrapper for Very SDK - Palm biometrics verification",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -19,6 +19,7 @@
19
19
  ],
20
20
  "scripts": {
21
21
  "typescript": "tsc --noEmit",
22
+ "test": "jest",
22
23
  "prepare": "bob build",
23
24
  "clean": "rm -rf lib"
24
25
  },
@@ -37,9 +38,12 @@
37
38
  "react-native": "*"
38
39
  },
39
40
  "devDependencies": {
41
+ "@types/jest": "^29.5.14",
42
+ "jest": "^29.7.0",
40
43
  "react": "18.3.1",
41
44
  "react-native": "0.76.5",
42
45
  "react-native-builder-bob": "^0.30.0",
46
+ "ts-jest": "^29.2.5",
43
47
  "typescript": "^5.0.0"
44
48
  },
45
49
  "react-native-builder-bob": {
@@ -63,5 +67,18 @@
63
67
  "android": {
64
68
  "javaPackageName": "com.verysdk.rn"
65
69
  }
70
+ },
71
+ "jest": {
72
+ "testEnvironment": "node",
73
+ "transform": {
74
+ "^.+\\.tsx?$": [
75
+ "ts-jest",
76
+ {
77
+ "tsconfig": {
78
+ "module": "commonjs"
79
+ }
80
+ }
81
+ ]
82
+ }
66
83
  }
67
84
  }
package/src/types.ts CHANGED
@@ -15,6 +15,12 @@ export interface VeryConfig {
15
15
  * console. Errors always log regardless of this flag.
16
16
  */
17
17
  debugLogging?: boolean;
18
+ /**
19
+ * Partner-supplied session/transaction id (distinct from `userId`), echoed
20
+ * back on the registration dashboard so partners can join our rows to their
21
+ * own records. Optional.
22
+ */
23
+ clientReferenceId?: string;
18
24
  }
19
25
 
20
26
  export interface VeryResult {