@regulaforensics/vp-frontend-face-components 7.2.1763-rc → 7.2.1764-nightly
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/dist/main.iife.js +2 -2
- package/dist/main.js +10 -10
- package/package.json +2 -3
package/dist/main.js
CHANGED
@@ -9903,7 +9903,7 @@ const AL = un.create("main"), tA = {
|
|
9903
9903
|
livenessType: AM.ACTIVE,
|
9904
9904
|
holdStillDuration: void 0,
|
9905
9905
|
timeoutInterval: void 0,
|
9906
|
-
workerPath: "https://wasm-development.regulaforensics.com/face/
|
9906
|
+
workerPath: "https://wasm-development.regulaforensics.com/face/nightly/7.2/f5c63870-e8be584bd",
|
9907
9907
|
detectOcclusion: !0
|
9908
9908
|
}, dL = (t) => Eg(Eg({}, tA), {}, {
|
9909
9909
|
onEvent: () => AL('Function "onEvent" not defined.'),
|
@@ -13126,14 +13126,14 @@ class $C {
|
|
13126
13126
|
}
|
13127
13127
|
prepare(i) {
|
13128
13128
|
return it(this, null, function* () {
|
13129
|
-
const a = "Liveness.worker.js", o = we.getState().workerPath, s = PC(o), I = we.getState().workerPath === "https://wasm-development.regulaforensics.com/face/
|
13129
|
+
const a = "Liveness.worker.js", o = we.getState().workerPath, s = PC(o), I = we.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/7.2/f5c63870-e8be584bd";
|
13130
13130
|
try {
|
13131
13131
|
let l = yield (yield fetch(s + "/" + a)).text();
|
13132
13132
|
I || (l = fS(l, s));
|
13133
13133
|
const j = new Blob([l], {
|
13134
13134
|
type: "text/plain"
|
13135
13135
|
}), D = URL.createObjectURL(j);
|
13136
|
-
this.worker = new Worker(D);
|
13136
|
+
this.worker = new Worker(D), URL.revokeObjectURL(D);
|
13137
13137
|
} catch (g) {
|
13138
13138
|
zl("Creating worker error: ".concat(JSON.stringify(g)));
|
13139
13139
|
}
|
@@ -13144,7 +13144,7 @@ class $C {
|
|
13144
13144
|
}), this.worker.postMessage({
|
13145
13145
|
target: "worker-init",
|
13146
13146
|
URL: document.URL,
|
13147
|
-
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/
|
13147
|
+
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/7.2/f5c63870-e8be584bd",
|
13148
13148
|
preMain: !0
|
13149
13149
|
}));
|
13150
13150
|
});
|
@@ -13311,7 +13311,7 @@ class HC {
|
|
13311
13311
|
fetch(l, j);
|
13312
13312
|
});
|
13313
13313
|
}
|
13314
|
-
|
13314
|
+
getInitializingData(o, s) {
|
13315
13315
|
return it(this, arguments, function* (i, a) {
|
13316
13316
|
let I = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : za, g = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
|
13317
13317
|
const l = "".concat(I, "/api/v2/liveness/start"), j = {
|
@@ -13503,7 +13503,7 @@ const ep = 1500, lE = (t) => t * 1e3, fl = un.create("main"), rp = (t) => t ===
|
|
13503
13503
|
metadata: {
|
13504
13504
|
serviceUrl: D || za,
|
13505
13505
|
hostAppId: zx(),
|
13506
|
-
sdkVersion: ME("7.2.
|
13506
|
+
sdkVersion: ME("7.2.1764-nightly"),
|
13507
13507
|
deviceModel: "".concat(Mr.osName, "/").concat(Mr.osVersion, " ").concat(Mr.browserName, "/").concat(Mr.fullBrowserVersion),
|
13508
13508
|
camera: y.camera
|
13509
13509
|
}
|
@@ -13513,8 +13513,8 @@ const ep = 1500, lE = (t) => t * 1e3, fl = un.create("main"), rp = (t) => t ===
|
|
13513
13513
|
data: null
|
13514
13514
|
}), fl("Service initialized");
|
13515
13515
|
} else {
|
13516
|
-
const Y = gS([...y.sortedDevices.frontCameras, ...y.sortedDevices.backCameras], y.camera.deviceId, ME("7.2.
|
13517
|
-
Pi.
|
13516
|
+
const Y = gS([...y.sortedDevices.frontCameras, ...y.sortedDevices.backCameras], y.camera.deviceId, ME("7.2.1764-nightly"), D || za, f);
|
13517
|
+
Pi.getInitializingData(Y, d, D, E).then((B) => {
|
13518
13518
|
if ("alwaysShowMsg" in B.config && p(!B.config.alwaysShowMsg), !zS(B.publicKey))
|
13519
13519
|
return w((b) => hn(hn({}, b), {}, {
|
13520
13520
|
error: new Ri(Ct.WEBSERVICE_NOT_COMPATIBLE)
|
@@ -15897,7 +15897,7 @@ class uq extends HTMLElement {
|
|
15897
15897
|
this.dispatchEvent(a), oq("Component event: ".concat(JSON.stringify(a.detail)));
|
15898
15898
|
}
|
15899
15899
|
get version() {
|
15900
|
-
return "".concat("7.2.
|
15900
|
+
return "".concat("7.2.1764-nightly".trim());
|
15901
15901
|
}
|
15902
15902
|
set translations(i) {
|
15903
15903
|
this._translations = i, this._mounted && this.render();
|
@@ -16327,7 +16327,7 @@ class zq extends HTMLElement {
|
|
16327
16327
|
});
|
16328
16328
|
}
|
16329
16329
|
get version() {
|
16330
|
-
return "".concat("7.2.
|
16330
|
+
return "".concat("7.2.1764-nightly".trim());
|
16331
16331
|
}
|
16332
16332
|
set translations(i) {
|
16333
16333
|
this._translations = i, this._mounted && this.render();
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@regulaforensics/vp-frontend-face-components",
|
3
|
-
"version": "7.2.
|
3
|
+
"version": "7.2.1764-nightly",
|
4
4
|
"description": "Regula framework agnostic web components to work with webcamera",
|
5
5
|
"types": "./dist/index.d.ts",
|
6
6
|
"main": "./dist/main.iife.js",
|
@@ -19,8 +19,7 @@
|
|
19
19
|
"license": "MIT",
|
20
20
|
"homepage": "https://storybook-face.regulaforensics.com/",
|
21
21
|
"scripts": {
|
22
|
-
"build": "vite build"
|
23
|
-
"test": "jest --testPathPattern=src/tests"
|
22
|
+
"build": "vite build"
|
24
23
|
},
|
25
24
|
"dependencies": {
|
26
25
|
"@regulaforensics/facesdk-webclient": "^6.2.0-beta.8",
|