From 6b9dd5d5aae6c383aacfd8436db3f7bb9cdec5b5 Mon Sep 17 00:00:00 2001 From: Artem Tsybulko Date: Fri, 13 Dec 2024 10:04:20 +0300 Subject: [PATCH 1/6] Add expectedPass --- src/.openapi-generator/FILES | 1 + src/models/image-qa.ts | 7 +++ src/models/index.ts | 1 + src/models/input-image-quality-checks.ts | 58 ++++++++++++++++++++++++ src/models/process-request-image.ts | 2 +- 5 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 src/models/input-image-quality-checks.ts diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index dddc7ef3..8d221ac0 100755 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -84,6 +84,7 @@ models/in-data.ts models/index.ts models/inline-response200.ts models/inline-response2001.ts +models/input-image-quality-checks.ts models/lcid.ts models/lexical-analysis-result-all-of.ts models/lexical-analysis-result.ts diff --git a/src/models/image-qa.ts b/src/models/image-qa.ts index 8ae5e6ed..fe72fb6a 100644 --- a/src/models/image-qa.ts +++ b/src/models/image-qa.ts @@ -13,6 +13,7 @@ */ +import { InputImageQualityChecks } from './input-image-quality-checks'; /** * @@ -62,6 +63,12 @@ export interface ImageQA { * @memberof ImageQA */ documentPositionIndent?: number; + /** + * This parameter controls the quality checks that the image should pass to be considered a valid input during the scanning process. + * @type {Array} + * @memberof ImageQA + */ + expectedPass?: Array; } diff --git a/src/models/index.ts b/src/models/index.ts index 6a81f2d0..87d456a3 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -78,6 +78,7 @@ export * from './in-data-transaction-images-field-value'; export * from './in-data-video'; export * from './inline-response200'; export * from './inline-response2001'; +export * from './input-image-quality-checks'; export * from './lcid'; export * from './lexical-analysis-result'; export * from './lexical-analysis-result-all-of'; diff --git a/src/models/input-image-quality-checks.ts b/src/models/input-image-quality-checks.ts new file mode 100644 index 00000000..18fe4295 --- /dev/null +++ b/src/models/input-image-quality-checks.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula Document Reader Web API + * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 7.2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Input image quality checks for the document processing + * @export + * @enum {string} + */ +export enum InputImageQualityChecks { + /** + * Signals glare presence on the image + */ + Glares = 'glaresCheck', + /** + * Signals whether image is in focus + */ + Focus = 'focusCheck', + /** + * Signals if image resolution is below threshold + */ + Resolution = 'dpiThreshold', + /** + * Signals if image is colorless + */ + Colorness = 'colornessCheck', + /** + * Signals if document in the image has prespective distortion above threshold + */ + Perspective = 'perspectiveCheck', + /** + * Signals if document is not fully present in the image + */ + Bounds = 'documentPosition', + /** + * Signals if the portrait is present + */ + Portrait = 'portraitCheck', + /** + * Signals if the document image is bright enough + */ + Brightness = 'brightnessCheck' +} + + + diff --git a/src/models/process-request-image.ts b/src/models/process-request-image.ts index d2b194b1..502c3f96 100644 --- a/src/models/process-request-image.ts +++ b/src/models/process-request-image.ts @@ -27,7 +27,7 @@ export interface ProcessRequestImage { * @type {ImageData} * @memberof ProcessRequestImage */ - ImageData: ImageData; + ImageData?: ImageData; /** * * @type {Light} From 2cccd867f01430c51804acfa1df6f3cd700d1db5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Feb 2025 10:51:28 +0000 Subject: [PATCH 2/6] Bump elliptic from 6.6.0 to 6.6.1 in /examples/auth/server Bumps [elliptic](https://github.com/indutny/elliptic) from 6.6.0 to 6.6.1. - [Commits](https://github.com/indutny/elliptic/compare/v6.6.0...v6.6.1) --- updated-dependencies: - dependency-name: elliptic dependency-type: indirect ... Signed-off-by: dependabot[bot] --- examples/auth/server/package-lock.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/auth/server/package-lock.json b/examples/auth/server/package-lock.json index 76757841..64ab4f97 100644 --- a/examples/auth/server/package-lock.json +++ b/examples/auth/server/package-lock.json @@ -293,9 +293,10 @@ "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==" }, "node_modules/elliptic": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.0.tgz", - "integrity": "sha512-dpwoQcLc/2WLQvJvLRHKZ+f9FgOdjnq11rurqwekGQygGPsYSK29OMMD2WalatiqQ+XGFDglTNixpPfI+lpaAA==", + "version": "6.6.1", + "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.6.1.tgz", + "integrity": "sha512-RaddvvMatK2LJHqFJ+YA4WysVN5Ita9E35botqIYspQ4TkRAlCicdzKOjlyv/1Za5RyTNn7di//eEV0uTAfe3g==", + "license": "MIT", "dependencies": { "bn.js": "^4.11.9", "brorand": "^1.1.0", From 6c470b8fa39459c8d5fd88b899e4748d2e01ae2c Mon Sep 17 00:00:00 2001 From: Artem Tsybulko Date: Thu, 20 Feb 2025 14:21:26 +0300 Subject: [PATCH 3/6] SP-21312 - add livenessChecks --- src/ext/authenticity/authenticity.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ext/authenticity/authenticity.ts b/src/ext/authenticity/authenticity.ts index 81d60ee4..9086b70b 100644 --- a/src/ext/authenticity/authenticity.ts +++ b/src/ext/authenticity/authenticity.ts @@ -82,6 +82,10 @@ export class Authenticity implements AuthenticityCheckList { return this.securityFeatureOrUndefined(AuthenticityResultType.EXTENDED_MRZ_CHECK); } + public livenessChecks(): IdentChecks | undefined { + return this.identOrUndefined(AuthenticityResultType.LIVENESS); + } + public resultByType(authenticityType: number): AuthenticityCheckResult | undefined { for (const result of this.List) { if (result.Type == authenticityType) { From 579cfe6d8b3b355e1bf5bd07f458d16b19f472c9 Mon Sep 17 00:00:00 2001 From: Artem Tsybulko Date: Thu, 20 Feb 2025 14:27:20 +0300 Subject: [PATCH 4/6] SP-21312 - update models --- src/.openapi-generator/FILES | 1 + src/models/face-api.ts | 12 ++++ src/models/index.ts | 1 + src/models/input-barcode-type.ts | 106 +++++++++++++++++++++++++++++++ src/models/process-params.ts | 7 ++ 5 files changed, 127 insertions(+) create mode 100644 src/models/input-barcode-type.ts diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index 8d221ac0..4fd7e453 100755 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -84,6 +84,7 @@ models/in-data.ts models/index.ts models/inline-response200.ts models/inline-response2001.ts +models/input-barcode-type.ts models/input-image-quality-checks.ts models/lcid.ts models/lexical-analysis-result-all-of.ts diff --git a/src/models/face-api.ts b/src/models/face-api.ts index ab16c526..fb3f8a5b 100644 --- a/src/models/face-api.ts +++ b/src/models/face-api.ts @@ -69,6 +69,18 @@ export interface FaceApi { * @memberof FaceApi */ proxy_type?: number; + /** + * Minimum age of a child, at which portrait comparison result will be effective. Default: 13. + * @type {number} + * @memberof FaceApi + */ + childAgeThreshold?: number; + /** + * Estimated duration of validity for a child\'s passport, years. Default: 5. + * @type {number} + * @memberof FaceApi + */ + childDocValidityYears?: number; } diff --git a/src/models/index.ts b/src/models/index.ts index 87d456a3..061be8b4 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -78,6 +78,7 @@ export * from './in-data-transaction-images-field-value'; export * from './in-data-video'; export * from './inline-response200'; export * from './inline-response2001'; +export * from './input-barcode-type'; export * from './input-image-quality-checks'; export * from './lcid'; export * from './lexical-analysis-result'; diff --git a/src/models/input-barcode-type.ts b/src/models/input-barcode-type.ts new file mode 100644 index 00000000..2d6ccb0e --- /dev/null +++ b/src/models/input-barcode-type.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Regula Document Reader Web API + * Documents recognition as easy as reading two bytes. # Clients: * [JavaScript](https://github.com/regulaforensics/DocumentReader-web-js-client) client for the browser and node.js based on axios * [Java](https://github.com/regulaforensics/DocumentReader-web-java-client) client compatible with jvm and android * [Python](https://github.com/regulaforensics/DocumentReader-web-python-client) 3.5+ client * [C#](https://github.com/regulaforensics/DocumentReader-web-csharp-client) client for .NET & .NET Core + * + * The version of the OpenAPI document: 7.2.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * Enumeration contains the types of barcodes that can be processed + * @export + * @enum {string} + */ +export enum InputBarcodeType { + /** + * Unknown + */ + UNKNOWN = 'bct_unknown', + /** + * Code 128 + */ + CODE128 = 'bct_Code128', + /** + * Code 39 + */ + CODE39 = 'bct_Code39', + /** + * EAN-8 + */ + EAN8 = 'bct_EAN8', + /** + * ITF + */ + ITF = 'bct_ITF', + /** + * PDF417 + */ + PDF417 = 'bct_PDF417', + /** + * STF + */ + STF = 'bct_STF', + /** + * MTF + */ + MTF = 'bct_MTF', + /** + * IATA + */ + IATA = 'bct_IATA', + /** + * Codabar + */ + CODABAR = 'bct_CODABAR', + /** + * UPC-A + */ + UPCA = 'bct_UPCA', + /** + * Code 93 + */ + CODE93 = 'bct_CODE93', + /** + * UPC-E + */ + UPCE = 'bct_UPCE', + /** + * EAN-13 + */ + EAN13 = 'bct_EAN13', + /** + * QR code + */ + QRCODE = 'bct_QRCODE', + /** + * Aztec code + */ + AZTEC = 'bct_AZTEC', + /** + * Datamatrix + */ + DATAMATRIX = 'bct_DATAMATRIX', + /** + * All 1D barcodes + */ + ALL_1D = 'bct_ALL_1D', + /** + * Code 11 + */ + CODE11 = 'bct_Code11', + /** + * JAB code + */ + JABCODE = 'bct_JABCODE' +} + + + diff --git a/src/models/process-params.ts b/src/models/process-params.ts index 467ec96f..dcb52ad4 100644 --- a/src/models/process-params.ts +++ b/src/models/process-params.ts @@ -18,6 +18,7 @@ import { DocumentFormat } from './document-format'; import { DocumentType } from './document-type'; import { FaceApi } from './face-api'; import { ImageQA } from './image-qa'; +import { InputBarcodeType } from './input-barcode-type'; import { LogLevel } from './log-level'; import { MRZFormat } from './mrzformat'; import { MeasureSystem } from './measure-system'; @@ -386,6 +387,12 @@ export interface ProcessParams { * @memberof ProcessParams */ selectLongestNames?: boolean; + /** + * Set the types of barcodes to process. + * @type {Array} + * @memberof ProcessParams + */ + doBarcodes?: Array; } From 1d3517cbed1fd5692d3ca089b7db1cc9cee0aa84 Mon Sep 17 00:00:00 2001 From: Artem Tsybulko Date: Wed, 12 Mar 2025 11:56:01 +0300 Subject: [PATCH 5/6] Update deps --- package-lock.json | 32 +++++++++++++++++--------------- package.json | 4 ++-- 2 files changed, 19 insertions(+), 17 deletions(-) diff --git a/package-lock.json b/package-lock.json index fd7f0536..2cae9f37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,8 +9,8 @@ "version": "0.0.0", "license": "MIT", "dependencies": { - "@swc/helpers": "^0.5.13", - "axios": "^1.7.7", + "@swc/helpers": "^0.5.15", + "axios": "^1.8.3", "base64-arraybuffer": "^1.0.2", "pako": "^2.1.0" }, @@ -2222,12 +2222,12 @@ "dev": true }, "node_modules/@swc/helpers": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.13.tgz", - "integrity": "sha512-UoKGxQ3r5kYI9dALKJapMmuK+1zWM/H17Z1+iwnNmzcJRnfFuevZs375TA5rW31pu4BS4NoSy1fRsexDXfWn5w==", + "version": "0.5.15", + "resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.15.tgz", + "integrity": "sha512-JQ5TuMi45Owi4/BIMAJBoSQoOJu12oOk/gADqlcUL9JEdHB8vyjUSsxqeNXnmXHjYKMi2WcYtezGEEhqUI/E2g==", "license": "Apache-2.0", "dependencies": { - "tslib": "^2.4.0" + "tslib": "^2.8.0" } }, "node_modules/@swc/types": { @@ -2556,9 +2556,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz", + "integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", @@ -2871,10 +2871,11 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -5542,9 +5543,10 @@ } }, "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" }, "node_modules/type-check": { "version": "0.4.0", diff --git a/package.json b/package.json index ea0dbd8d..9749496e 100644 --- a/package.json +++ b/package.json @@ -51,8 +51,8 @@ "*.{js,ts}": "eslint --fix" }, "dependencies": { - "@swc/helpers": "^0.5.13", - "axios": "^1.7.7", + "@swc/helpers": "^0.5.15", + "axios": "^1.8.3", "base64-arraybuffer": "^1.0.2", "pako": "^2.1.0" }, From 23a37ae7c59231c7cc588fcab3ac40e9d1c7d72d Mon Sep 17 00:00:00 2001 From: Artem Tsybulko Date: Wed, 12 Mar 2025 12:01:26 +0300 Subject: [PATCH 6/6] Update deps --- examples/auth/client/package-lock.json | 252 ++++++++++++++++--------- examples/auth/client/package.json | 4 +- examples/auth/server/package-lock.json | 19 +- examples/auth/server/package.json | 4 +- examples/basic/package-lock.json | 4 +- 5 files changed, 179 insertions(+), 104 deletions(-) diff --git a/examples/auth/client/package-lock.json b/examples/auth/client/package-lock.json index 87ee73f0..ba01a33f 100644 --- a/examples/auth/client/package-lock.json +++ b/examples/auth/client/package-lock.json @@ -9,8 +9,8 @@ "version": "0.0.0", "dependencies": { "@regulaforensics/document-reader-webclient": "file:../../..", - "axios": "^1.7.7", - "qs": "^6.13.0" + "axios": "^1.8.3", + "qs": "^6.14.0" } }, "..": { @@ -45,8 +45,8 @@ "version": "0.0.0", "license": "MIT", "dependencies": { - "@swc/helpers": "^0.5.13", - "axios": "^1.7.7", + "@swc/helpers": "^0.5.15", + "axios": "^1.8.3", "base64-arraybuffer": "^1.0.2", "pako": "^2.1.0" }, @@ -76,9 +76,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz", + "integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", @@ -86,16 +86,27 @@ "proxy-from-env": "^1.1.0" } }, - "node_modules/call-bind": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", - "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", "dependencies": { - "es-define-property": "^1.0.0", "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "set-function-length": "^1.2.1" + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" }, "engines": { "node": ">= 0.4" @@ -115,22 +126,6 @@ "node": ">= 0.8" } }, - "node_modules/define-data-property": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.4.tgz", - "integrity": "sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A==", - "dependencies": { - "es-define-property": "^1.0.0", - "es-errors": "^1.3.0", - "gopd": "^1.0.1" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -139,21 +134,46 @@ "node": ">=0.4.0" } }, - "node_modules/es-define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", - "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", "dependencies": { - "get-intrinsic": "^1.2.4" + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" }, "engines": { "node": ">= 0.4" } }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es-errors": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, "engines": { "node": ">= 0.4" } @@ -194,20 +214,27 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" } }, "node_modules/get-intrinsic": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.4.tgz", - "integrity": "sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", "function-bind": "^1.1.2", - "has-proto": "^1.0.1", - "has-symbols": "^1.0.3", - "hasown": "^2.0.0" + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" }, "engines": { "node": ">= 0.4" @@ -216,32 +243,24 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/gopd": { + "node_modules/get-proto": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", - "dependencies": { - "get-intrinsic": "^1.1.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-property-descriptors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", - "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", "dependencies": { - "es-define-property": "^1.0.0" + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" }, - "funding": { - "url": "https://github.com/sponsors/ljharb" + "engines": { + "node": ">= 0.4" } }, - "node_modules/has-proto": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.3.tgz", - "integrity": "sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q==", + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -250,9 +269,10 @@ } }, "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -264,6 +284,7 @@ "version": "2.0.2", "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", "dependencies": { "function-bind": "^1.1.2" }, @@ -271,6 +292,15 @@ "node": ">= 0.4" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -291,9 +321,13 @@ } }, "node_modules/object-inspect": { - "version": "1.13.1", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.1.tgz", - "integrity": "sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -304,11 +338,12 @@ "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.0.6" + "side-channel": "^1.1.0" }, "engines": { "node": ">=0.6" @@ -317,31 +352,70 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/set-function-length": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/set-function-length/-/set-function-length-1.2.2.tgz", - "integrity": "sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==", + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", "dependencies": { - "define-data-property": "^1.1.4", "es-errors": "^1.3.0", - "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.4", - "gopd": "^1.0.1", - "has-property-descriptors": "^1.0.2" + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/side-channel": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.6.tgz", - "integrity": "sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==", + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.7", + "call-bound": "^1.0.2", "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.4", - "object-inspect": "^1.13.1" + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" }, "engines": { "node": ">= 0.4" diff --git a/examples/auth/client/package.json b/examples/auth/client/package.json index e530c67e..8ba2a61c 100755 --- a/examples/auth/client/package.json +++ b/examples/auth/client/package.json @@ -3,8 +3,8 @@ "type": "module", "dependencies": { "@regulaforensics/document-reader-webclient": "file:../../..", - "axios": "^1.7.7", - "qs": "^6.13.0" + "axios": "^1.8.3", + "qs": "^6.14.0" }, "version": "0.0.0" } diff --git a/examples/auth/server/package-lock.json b/examples/auth/server/package-lock.json index 64ab4f97..4e792075 100644 --- a/examples/auth/server/package-lock.json +++ b/examples/auth/server/package-lock.json @@ -9,13 +9,13 @@ "version": "0.0.0", "license": "MIT", "dependencies": { - "axios": "^1.7.7", + "axios": "^1.8.3", "body-parser": "^1.20.3", "cors": "^2.8.5", "express": "^5.0.1", "helmet": "^7.1.0", "jsonwebtoken": "^9.0.2", - "jwk-to-pem": "^2.0.6", + "jwk-to-pem": "^2.0.7", "morgan": "^1.10.0", "ramda": "^0.30.1" } @@ -77,9 +77,9 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "1.7.7", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz", - "integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==", + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.8.3.tgz", + "integrity": "sha512-iP4DebzoNlP/YN2dpwCgb8zoCmhtkajzS48JvwmkSkXvPI3DHc7m+XYL5tGnSlJtR6nImXZmdCuN5aP8dh1d8A==", "license": "MIT", "dependencies": { "follow-redirects": "^1.15.6", @@ -838,12 +838,13 @@ } }, "node_modules/jwk-to-pem": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/jwk-to-pem/-/jwk-to-pem-2.0.6.tgz", - "integrity": "sha512-zPC/5vjyR08TpknpTGW6Z3V3lDf9dU92oHbf0jJlG8tGOzslF9xk2UiO/seSx2llCUrNAe+AvmuGTICSXiYU7A==", + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/jwk-to-pem/-/jwk-to-pem-2.0.7.tgz", + "integrity": "sha512-cSVphrmWr6reVchuKQZdfSs4U9c5Y4hwZggPoz6cbVnTpAVgGRpEuQng86IyqLeGZlhTh+c4MAreB6KbdQDKHQ==", + "license": "Apache-2.0", "dependencies": { "asn1.js": "^5.3.0", - "elliptic": "^6.5.7", + "elliptic": "^6.6.1", "safe-buffer": "^5.0.1" } }, diff --git a/examples/auth/server/package.json b/examples/auth/server/package.json index 7bee1fb0..671b0fa5 100644 --- a/examples/auth/server/package.json +++ b/examples/auth/server/package.json @@ -9,13 +9,13 @@ "start": "node index.js" }, "dependencies": { - "axios": "^1.7.7", + "axios": "^1.8.3", "body-parser": "^1.20.3", "cors": "^2.8.5", "express": "^5.0.1", "helmet": "^7.1.0", "jsonwebtoken": "^9.0.2", - "jwk-to-pem": "^2.0.6", + "jwk-to-pem": "^2.0.7", "morgan": "^1.10.0", "ramda": "^0.30.1" } diff --git a/examples/basic/package-lock.json b/examples/basic/package-lock.json index 6b219c72..e6126d64 100644 --- a/examples/basic/package-lock.json +++ b/examples/basic/package-lock.json @@ -41,8 +41,8 @@ "version": "0.0.0", "license": "MIT", "dependencies": { - "@swc/helpers": "^0.5.13", - "axios": "^1.7.7", + "@swc/helpers": "^0.5.15", + "axios": "^1.8.3", "base64-arraybuffer": "^1.0.2", "pako": "^2.1.0" },