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.
@@ -24,4 +24,10 @@ jobs:
24
24
  run: npm install -g npm@latest
25
25
 
26
26
  - name: Publish to npm
27
- run: npm publish
27
+ run: |
28
+ VERSION="$(node -p "require('./package.json').version")"
29
+ if [[ "$VERSION" == *-* ]]; then
30
+ npm publish --tag beta
31
+ else
32
+ npm publish
33
+ fi
package/Api.js CHANGED
@@ -1,4 +1,3 @@
1
- import { compressAndCompareImages } from "./FaceApi.js";
2
1
  import { formatDateToISO, DATE_FIELDS } from "./DateUtils.js";
3
2
  import { FIELD_MAPPING, FIELD_DEFAULTS, getFieldValue } from "./FieldMapping.js";
4
3
  import { sanitizeFieldForDmv } from "./FormatUtils.js";
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.13] - 2026-06-26
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, maxSize);
114
+ const licenseBase64 = await compressImage(licSource);
119
115
 
120
116
  const res = await fetch(getExtractPortraitServerAddress(), {
121
117
  method: "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "verant_id_cloud_scan",
3
- "version": "1.4.5-beta.13",
3
+ "version": "1.4.5-beta.14",
4
4
  "description": "Verant ID Cloud Scan NPM Library",
5
5
  "main": "CloudScan.js",
6
6
  "types": "index.d.ts",