@aws-amplify/ui-react-liveness 3.4.0 → 3.4.2
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.
|
@@ -13,11 +13,11 @@ function useMediaStreamInVideo(stream) {
|
|
|
13
13
|
if (isObject(videoRef.current)) {
|
|
14
14
|
videoRef.current.srcObject = stream;
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
const settings = stream.getTracks()?.[0]?.getSettings();
|
|
17
|
+
if (settings) {
|
|
18
|
+
setVideoHeight(settings.height);
|
|
19
|
+
setVideoWidth(settings.width);
|
|
20
|
+
}
|
|
21
21
|
}
|
|
22
22
|
return () => {
|
|
23
23
|
if (stream) {
|
|
@@ -34,7 +34,7 @@ const REQUEST_EXPIRY = 299;
|
|
|
34
34
|
const CONNECTION_TIMEOUT = 10000;
|
|
35
35
|
const FACE_MOVEMENT_AND_LIGHT_CHALLENGE = {
|
|
36
36
|
type: 'FaceMovementAndLightChallenge',
|
|
37
|
-
version: '
|
|
37
|
+
version: '2.0.0',
|
|
38
38
|
};
|
|
39
39
|
const FACE_MOVEMENT_CHALLENGE = {
|
|
40
40
|
type: 'FaceMovementChallenge',
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -130,7 +130,7 @@ const REQUEST_EXPIRY = 299;
|
|
|
130
130
|
const CONNECTION_TIMEOUT = 10000;
|
|
131
131
|
const FACE_MOVEMENT_AND_LIGHT_CHALLENGE = {
|
|
132
132
|
type: 'FaceMovementAndLightChallenge',
|
|
133
|
-
version: '
|
|
133
|
+
version: '2.0.0',
|
|
134
134
|
};
|
|
135
135
|
const FACE_MOVEMENT_CHALLENGE = {
|
|
136
136
|
type: 'FaceMovementChallenge',
|
|
@@ -1055,7 +1055,7 @@ function createRequestStreamGenerator(stream) {
|
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
1057
1057
|
|
|
1058
|
-
const VERSION = '3.4.
|
|
1058
|
+
const VERSION = '3.4.2';
|
|
1059
1059
|
|
|
1060
1060
|
const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
|
|
1061
1061
|
const getLivenessUserAgent = () => {
|
|
@@ -2706,11 +2706,11 @@ function useMediaStreamInVideo(stream) {
|
|
|
2706
2706
|
if (ui.isObject(videoRef.current)) {
|
|
2707
2707
|
videoRef.current.srcObject = stream;
|
|
2708
2708
|
}
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2711
|
-
.
|
|
2712
|
-
|
|
2713
|
-
|
|
2709
|
+
const settings = stream.getTracks()?.[0]?.getSettings();
|
|
2710
|
+
if (settings) {
|
|
2711
|
+
setVideoHeight(settings.height);
|
|
2712
|
+
setVideoWidth(settings.width);
|
|
2713
|
+
}
|
|
2714
2714
|
}
|
|
2715
2715
|
return () => {
|
|
2716
2716
|
if (stream) {
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.4.
|
|
1
|
+
export declare const VERSION = "3.4.2";
|