@regulaforensics/vp-frontend-face-components 8.4.2321-nightly → 8.4.2323-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 +6 -6
- package/dist/main.js +18 -9
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -5445,11 +5445,20 @@ function io() {
|
|
|
5445
5445
|
let s = yield navigator.mediaDevices.getUserMedia({
|
|
5446
5446
|
video: o,
|
|
5447
5447
|
audio: !1
|
|
5448
|
-
}), c = s.getVideoTracks()[0], l = c.getSettings(), u = l.deviceId, d = l.groupId, f = l.facingMode
|
|
5448
|
+
}), c = s.getVideoTracks()[0], l = c.getSettings(), u = l.deviceId, d = l.groupId, f = l.facingMode;
|
|
5449
|
+
if (!f && t.facing) {
|
|
5450
|
+
let e = t.facing === nr.environment ? nr.user : nr.environment;
|
|
5451
|
+
try {
|
|
5452
|
+
(yield navigator.mediaDevices.getUserMedia({ video: { facingMode: { exact: t.facing } } })).getTracks().forEach((e) => e.stop()), f = t.facing;
|
|
5453
|
+
} catch (t) {
|
|
5454
|
+
f = e;
|
|
5455
|
+
}
|
|
5456
|
+
}
|
|
5457
|
+
let p = {
|
|
5449
5458
|
deviceId: u || t.deviceId,
|
|
5450
5459
|
label: c.label || t.label,
|
|
5451
5460
|
groupId: d || t.groupId,
|
|
5452
|
-
facing: f
|
|
5461
|
+
facing: f
|
|
5453
5462
|
};
|
|
5454
5463
|
return {
|
|
5455
5464
|
status: Y.READY,
|
|
@@ -6384,7 +6393,7 @@ var ec = Js.create("main"), tc = {
|
|
|
6384
6393
|
livenessType: Fo.ACTIVE,
|
|
6385
6394
|
holdStillDuration: void 0,
|
|
6386
6395
|
timeoutInterval: void 0,
|
|
6387
|
-
workerPath: "https://wasm-development.regulaforensics.com/face/nightly/8.4/
|
|
6396
|
+
workerPath: "https://wasm-development.regulaforensics.com/face/nightly/8.4/644d7b74-b82e9715d",
|
|
6388
6397
|
detectOcclusion: !0,
|
|
6389
6398
|
captureButton: !1
|
|
6390
6399
|
}, nc = (e) => Xs(Xs({}, tc), {}, {
|
|
@@ -9490,7 +9499,7 @@ var Wd = Js.create("wasm"), Gd = class {
|
|
|
9490
9499
|
prepare(e) {
|
|
9491
9500
|
var t = this;
|
|
9492
9501
|
return Ga(function* () {
|
|
9493
|
-
let n = $.getState().workerPath, r = Bd(n), i = $.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/8.4/
|
|
9502
|
+
let n = $.getState().workerPath, r = Bd(n), i = $.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/8.4/644d7b74-b82e9715d";
|
|
9494
9503
|
try {
|
|
9495
9504
|
let e = yield (yield fetch(r + "/Liveness.worker.js")).text();
|
|
9496
9505
|
i || (e = Zo(e, r));
|
|
@@ -9506,7 +9515,7 @@ var Wd = Js.create("wasm"), Gd = class {
|
|
|
9506
9515
|
}), t.worker.postMessage({
|
|
9507
9516
|
target: "worker-init",
|
|
9508
9517
|
URL: document.URL,
|
|
9509
|
-
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/8.4/
|
|
9518
|
+
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/8.4/644d7b74-b82e9715d",
|
|
9510
9519
|
preMain: !0
|
|
9511
9520
|
}));
|
|
9512
9521
|
})();
|
|
@@ -9869,7 +9878,7 @@ var hf = 1500, gf = (e) => e * 1e3, _f = Js.create("main"), vf = (e) => e === Fo
|
|
|
9869
9878
|
metadata: {
|
|
9870
9879
|
serviceUrl: l || "https://faceapi.regulaforensics.com",
|
|
9871
9880
|
hostAppId: po(),
|
|
9872
|
-
sdkVersion: Yo("8.4.
|
|
9881
|
+
sdkVersion: Yo("8.4.2323-nightly"),
|
|
9873
9882
|
deviceModel: `${La.osName}/${La.osVersion} ${La.browserName}/${La.fullBrowserVersion}`,
|
|
9874
9883
|
camera: h.camera
|
|
9875
9884
|
}
|
|
@@ -9882,7 +9891,7 @@ var hf = 1500, gf = (e) => e * 1e3, _f = Js.create("main"), vf = (e) => e === Fo
|
|
|
9882
9891
|
let n = yield mo({
|
|
9883
9892
|
cameras: [...h.sortedDevices.frontCameras, ...h.sortedDevices.backCameras],
|
|
9884
9893
|
cameraID: h.camera.deviceId,
|
|
9885
|
-
sdkVersion: Yo("8.4.
|
|
9894
|
+
sdkVersion: Yo("8.4.2323-nightly"),
|
|
9886
9895
|
serviceUrl: l || "https://faceapi.regulaforensics.com",
|
|
9887
9896
|
customMetadata: x
|
|
9888
9897
|
});
|
|
@@ -13225,7 +13234,7 @@ var Up = Js.create("main"), Wp = [
|
|
|
13225
13234
|
this.dispatchEvent(t), Up(`Component event: ${JSON.stringify(t.detail)}`);
|
|
13226
13235
|
}
|
|
13227
13236
|
get version() {
|
|
13228
|
-
return "8.4.
|
|
13237
|
+
return "8.4.2323-nightly";
|
|
13229
13238
|
}
|
|
13230
13239
|
set translations(e) {
|
|
13231
13240
|
this._translations = e, this._mounted && this.render();
|
|
@@ -13664,7 +13673,7 @@ var hm = Js.create("main"), gm = [
|
|
|
13664
13673
|
});
|
|
13665
13674
|
}
|
|
13666
13675
|
get version() {
|
|
13667
|
-
return "8.4.
|
|
13676
|
+
return "8.4.2323-nightly";
|
|
13668
13677
|
}
|
|
13669
13678
|
set translations(e) {
|
|
13670
13679
|
this._translations = e, this._mounted && this.render();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/vp-frontend-face-components",
|
|
3
|
-
"version": "8.4.
|
|
3
|
+
"version": "8.4.2323-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",
|