@authme/identity-verification 2.8.46 → 2.8.47
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.
- package/index.cjs.js +5 -5
- package/index.esm.js +5 -5
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -34489,7 +34489,7 @@ class LivenessModule {
|
|
|
34489
34489
|
const dataString = JSON.stringify(data);
|
|
34490
34490
|
const encoder = new TextEncoder();
|
|
34491
34491
|
const uint8Array = encoder.encode(dataString);
|
|
34492
|
-
const resultEncrypt = await _this.fasService.encryptBlob(uint8Array
|
|
34492
|
+
const resultEncrypt = await _this.fasService.encryptBlob(uint8Array, pubKey);
|
|
34493
34493
|
if (!resultEncrypt) {
|
|
34494
34494
|
console.error('[encryptDataBase64] encryptBlob returned null/empty');
|
|
34495
34495
|
throw new core.AuthmeError(core.ErrorCode.SDK_INTERNAL_ERROR, 'encryptBlob failed');
|
|
@@ -34719,7 +34719,7 @@ class LivenessModule {
|
|
|
34719
34719
|
uploadTarget = [...resultList.map((x, index) => ({
|
|
34720
34720
|
index,
|
|
34721
34721
|
result: x
|
|
34722
|
-
})).filter(x => x.result.iIsKeyFrame
|
|
34722
|
+
})).filter(x => !!x.result.iIsKeyFrame || options.uploadFullFrame).map(x => ({
|
|
34723
34723
|
index: x.index,
|
|
34724
34724
|
data: frameList[x.index]
|
|
34725
34725
|
}))];
|
|
@@ -35040,7 +35040,7 @@ class MRZModule {
|
|
|
35040
35040
|
const dataString = JSON.stringify(data);
|
|
35041
35041
|
const encoder = new TextEncoder();
|
|
35042
35042
|
const uint8Array = encoder.encode(dataString);
|
|
35043
|
-
const resultEncrypt = await _this.mrzService.encryptBlob(uint8Array
|
|
35043
|
+
const resultEncrypt = await _this.mrzService.encryptBlob(uint8Array, pubKey);
|
|
35044
35044
|
return resultEncrypt;
|
|
35045
35045
|
};
|
|
35046
35046
|
try {
|
|
@@ -35675,7 +35675,7 @@ class OCRModule {
|
|
|
35675
35675
|
const dataString = JSON.stringify(data);
|
|
35676
35676
|
const encoder = new TextEncoder();
|
|
35677
35677
|
const uint8Array = encoder.encode(dataString);
|
|
35678
|
-
const resultEncrypt = await _this.ocrService.encryptBlob(uint8Array
|
|
35678
|
+
const resultEncrypt = await _this.ocrService.encryptBlob(uint8Array, pubKey);
|
|
35679
35679
|
return resultEncrypt;
|
|
35680
35680
|
};
|
|
35681
35681
|
util.Storage.setItem('encryptDataBase64', encryptDataBase64);
|
|
@@ -37344,7 +37344,7 @@ class AuthmeIdentityVerification extends engine.AuthmeFunctionModule {
|
|
|
37344
37344
|
}
|
|
37345
37345
|
|
|
37346
37346
|
var name = "authme/sdk";
|
|
37347
|
-
var version$1 = "2.8.
|
|
37347
|
+
var version$1 = "2.8.47";
|
|
37348
37348
|
var packageInfo = {
|
|
37349
37349
|
name: name,
|
|
37350
37350
|
version: version$1};
|
package/index.esm.js
CHANGED
|
@@ -34487,7 +34487,7 @@ class LivenessModule {
|
|
|
34487
34487
|
const dataString = JSON.stringify(data);
|
|
34488
34488
|
const encoder = new TextEncoder();
|
|
34489
34489
|
const uint8Array = encoder.encode(dataString);
|
|
34490
|
-
const resultEncrypt = await _this.fasService.encryptBlob(uint8Array
|
|
34490
|
+
const resultEncrypt = await _this.fasService.encryptBlob(uint8Array, pubKey);
|
|
34491
34491
|
if (!resultEncrypt) {
|
|
34492
34492
|
console.error('[encryptDataBase64] encryptBlob returned null/empty');
|
|
34493
34493
|
throw new AuthmeError(ErrorCode.SDK_INTERNAL_ERROR, 'encryptBlob failed');
|
|
@@ -34717,7 +34717,7 @@ class LivenessModule {
|
|
|
34717
34717
|
uploadTarget = [...resultList.map((x, index) => ({
|
|
34718
34718
|
index,
|
|
34719
34719
|
result: x
|
|
34720
|
-
})).filter(x => x.result.iIsKeyFrame
|
|
34720
|
+
})).filter(x => !!x.result.iIsKeyFrame || options.uploadFullFrame).map(x => ({
|
|
34721
34721
|
index: x.index,
|
|
34722
34722
|
data: frameList[x.index]
|
|
34723
34723
|
}))];
|
|
@@ -35038,7 +35038,7 @@ class MRZModule {
|
|
|
35038
35038
|
const dataString = JSON.stringify(data);
|
|
35039
35039
|
const encoder = new TextEncoder();
|
|
35040
35040
|
const uint8Array = encoder.encode(dataString);
|
|
35041
|
-
const resultEncrypt = await _this.mrzService.encryptBlob(uint8Array
|
|
35041
|
+
const resultEncrypt = await _this.mrzService.encryptBlob(uint8Array, pubKey);
|
|
35042
35042
|
return resultEncrypt;
|
|
35043
35043
|
};
|
|
35044
35044
|
try {
|
|
@@ -35673,7 +35673,7 @@ class OCRModule {
|
|
|
35673
35673
|
const dataString = JSON.stringify(data);
|
|
35674
35674
|
const encoder = new TextEncoder();
|
|
35675
35675
|
const uint8Array = encoder.encode(dataString);
|
|
35676
|
-
const resultEncrypt = await _this.ocrService.encryptBlob(uint8Array
|
|
35676
|
+
const resultEncrypt = await _this.ocrService.encryptBlob(uint8Array, pubKey);
|
|
35677
35677
|
return resultEncrypt;
|
|
35678
35678
|
};
|
|
35679
35679
|
Storage.setItem('encryptDataBase64', encryptDataBase64);
|
|
@@ -37342,7 +37342,7 @@ class AuthmeIdentityVerification extends AuthmeFunctionModule {
|
|
|
37342
37342
|
}
|
|
37343
37343
|
|
|
37344
37344
|
var name = "authme/sdk";
|
|
37345
|
-
var version$1 = "2.8.
|
|
37345
|
+
var version$1 = "2.8.47";
|
|
37346
37346
|
var packageInfo = {
|
|
37347
37347
|
name: name,
|
|
37348
37348
|
version: version$1};
|