verant_id_cloud_scan 1.4.5-beta.13 → 1.4.5-beta.14
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/.github/workflows/publish_library.yml +7 -1
- package/Api.js +0 -1
- package/CHANGELOG.md +1 -3
- package/FaceApi.js +2 -6
- package/package.json +1 -1
package/Api.js
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [1.4.5-beta.
|
|
8
|
+
## [1.4.5-beta.14] - 2026-06-26
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
- **`extractPortraitFromLicense(clientId, licenseImage)`** (VNT-1464 / VNT-1470).
|
|
@@ -14,8 +14,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
14
14
|
comparison. Resolves to `{ extractedPortrait, error? }` where
|
|
15
15
|
`extractedPortrait` is a base64 JPEG data URI or `null` when no face is
|
|
16
16
|
detected. Exported from `CloudScan.js` and typed in `index.d.ts`.
|
|
17
|
-
- **`getExtractPortraitServerAddress()`** — resolves the `/extract_portrait`
|
|
18
|
-
endpoint for the current environment.
|
|
19
17
|
- **`person_digital_image` field support** (VNT-1464). Added to `FIELD_MAPPING`
|
|
20
18
|
(key variants `person_digital_image` / `personDigitalImage` /
|
|
21
19
|
`PersonDigitalImage`) and `FIELD_LABELS` (`"License Portrait"`). `dmvCheck`
|
package/FaceApi.js
CHANGED
|
@@ -106,16 +106,12 @@ export async function compressAndCompareImages(
|
|
|
106
106
|
* @param {number} [maxSize] max compressed size in bytes (defaults to 2 MB)
|
|
107
107
|
* @returns {Promise<{ extractedPortrait: string|null, error?: { error: any, details: any } }>}
|
|
108
108
|
*/
|
|
109
|
-
export async function extractPortraitFromLicense(
|
|
110
|
-
clientId,
|
|
111
|
-
licenseInput,
|
|
112
|
-
maxSize = 2 * 1024 * 1024
|
|
113
|
-
) {
|
|
109
|
+
export async function extractPortraitFromLicense(clientId, licenseInput) {
|
|
114
110
|
let licSource = licenseInput;
|
|
115
111
|
if (typeof licSource === 'string') {
|
|
116
112
|
licSource = await base64ToCanvas(licSource);
|
|
117
113
|
}
|
|
118
|
-
const licenseBase64 = await compressImage(licSource
|
|
114
|
+
const licenseBase64 = await compressImage(licSource);
|
|
119
115
|
|
|
120
116
|
const res = await fetch(getExtractPortraitServerAddress(), {
|
|
121
117
|
method: "POST",
|