@aws-amplify/ui-react-liveness 3.6.1 → 3.6.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.
- package/dist/esm/components/FaceLivenessDetector/service/machine/machine.mjs +6 -1
- package/dist/esm/components/FaceLivenessDetector/service/utils/createStreamingClient/CustomWebSocketFetchHandler.mjs +1 -1
- package/dist/esm/components/FaceLivenessDetector/service/utils/createStreamingClient/createStreamingClient.mjs +1 -1
- package/dist/esm/node_modules/@tensorflow-models/face-detection/dist/face-detection.esm.mjs +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/index.js +7 -2
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
|
@@ -432,7 +432,12 @@ const livenessMachine = createMachine({
|
|
|
432
432
|
],
|
|
433
433
|
},
|
|
434
434
|
userCancel: {
|
|
435
|
-
entry: [
|
|
435
|
+
entry: [
|
|
436
|
+
'cleanUpResources',
|
|
437
|
+
'callUserCancelCallback',
|
|
438
|
+
'freezeStream',
|
|
439
|
+
'resetContext',
|
|
440
|
+
],
|
|
436
441
|
always: { target: 'initCamera' },
|
|
437
442
|
},
|
|
438
443
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { formatUrl } from '@aws-sdk/util-format-url';
|
|
2
|
-
import {
|
|
2
|
+
import { readableStreamtoIterable, iterableToReadableStream } from '@smithy/eventstream-serde-browser';
|
|
3
3
|
import { FetchHttpHandler } from '@smithy/fetch-http-handler';
|
|
4
4
|
import { HttpResponse } from '@smithy/protocol-http';
|
|
5
5
|
import { WS_CLOSURE_CODE } from '../constants.mjs';
|
|
@@ -2,7 +2,7 @@ import { StartFaceLivenessSessionCommand, RekognitionStreamingClient } from '@aw
|
|
|
2
2
|
import { getAmplifyUserAgent } from '@aws-amplify/core/internals/utils';
|
|
3
3
|
import { isString } from '@aws-amplify/ui';
|
|
4
4
|
import { getLivenessUserAgent } from '../../../utils/platform.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { CONNECTION_TIMEOUT, queryParameterString } from '../constants.mjs';
|
|
6
6
|
import { CustomWebSocketFetchHandler } from './CustomWebSocketFetchHandler.mjs';
|
|
7
7
|
import { resolveCredentials } from './resolveCredentials.mjs';
|
|
8
8
|
import { Signer } from './Signer.mjs';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import FaceDetection from '@mediapipe/face_detection';
|
|
2
|
-
import { dispose, tidy, cast, squeeze, image, expandDims,
|
|
2
|
+
import { dispose, tidy, cast, squeeze, image, expandDims, Tensor, browser, tensor1d, tensor2d, slice, add, mul, div, exp, sub, concat, reshape, clipByValue, sigmoid, util } from '@tensorflow/tfjs-core';
|
|
3
3
|
import { loadGraphModel } from '@tensorflow/tfjs-converter';
|
|
4
4
|
|
|
5
5
|
/**
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1078,7 +1078,7 @@ function createRequestStreamGenerator(stream) {
|
|
|
1078
1078
|
};
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
|
-
const VERSION = '3.6.
|
|
1081
|
+
const VERSION = '3.6.2';
|
|
1082
1082
|
|
|
1083
1083
|
const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
|
|
1084
1084
|
const getLivenessUserAgent = () => {
|
|
@@ -2046,7 +2046,12 @@ const livenessMachine = xstate.createMachine({
|
|
|
2046
2046
|
],
|
|
2047
2047
|
},
|
|
2048
2048
|
userCancel: {
|
|
2049
|
-
entry: [
|
|
2049
|
+
entry: [
|
|
2050
|
+
'cleanUpResources',
|
|
2051
|
+
'callUserCancelCallback',
|
|
2052
|
+
'freezeStream',
|
|
2053
|
+
'resetContext',
|
|
2054
|
+
],
|
|
2050
2055
|
always: { target: 'initCamera' },
|
|
2051
2056
|
},
|
|
2052
2057
|
},
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.6.
|
|
1
|
+
export declare const VERSION = "3.6.2";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/ui-react-liveness",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"react-dom": "^16.14 || ^17 || ^18 || ^19"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@aws-amplify/ui": "6.15.
|
|
53
|
-
"@aws-amplify/ui-react": "6.15.
|
|
52
|
+
"@aws-amplify/ui": "6.15.2",
|
|
53
|
+
"@aws-amplify/ui-react": "6.15.2",
|
|
54
54
|
"@aws-sdk/client-rekognitionstreaming": "3.967.0",
|
|
55
55
|
"@aws-sdk/util-format-url": "3.965.0",
|
|
56
56
|
"@smithy/eventstream-serde-browser": "^4.0.4",
|