@aws-amplify/ui-react-liveness 3.6.5 → 3.6.6
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.
|
@@ -156,13 +156,21 @@ class CustomWebSocketFetchHandler {
|
|
|
156
156
|
socket.close();
|
|
157
157
|
reject(error);
|
|
158
158
|
};
|
|
159
|
-
socket.onclose = () => {
|
|
159
|
+
socket.onclose = (event) => {
|
|
160
160
|
this.removeNotUsableSockets(socket.url);
|
|
161
161
|
if (socketErrorOccurred)
|
|
162
162
|
return;
|
|
163
163
|
if (streamError) {
|
|
164
164
|
reject(streamError);
|
|
165
165
|
}
|
|
166
|
+
else if (event.code !== WS_CLOSURE_CODE.SUCCESS_CODE &&
|
|
167
|
+
event.code !== 1001) {
|
|
168
|
+
// Server closed the connection with an abnormal code (e.g. 4001
|
|
169
|
+
// StreamIdleTimeout, 4003 SessionExpired, 1006 abnormal closure).
|
|
170
|
+
reject(new Error(`Server ended the connection unexpectedly (code ${event.code}` +
|
|
171
|
+
(event.reason ? `: ${event.reason}` : '') +
|
|
172
|
+
')'));
|
|
173
|
+
}
|
|
166
174
|
else {
|
|
167
175
|
resolve({
|
|
168
176
|
done: true,
|
package/dist/esm/version.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -1227,7 +1227,7 @@ function createRequestStreamGenerator(stream) {
|
|
|
1227
1227
|
};
|
|
1228
1228
|
}
|
|
1229
1229
|
|
|
1230
|
-
const VERSION = '3.6.
|
|
1230
|
+
const VERSION = '3.6.6';
|
|
1231
1231
|
|
|
1232
1232
|
const BASE_USER_AGENT = `ui-react-liveness/${VERSION}`;
|
|
1233
1233
|
const getLivenessUserAgent = () => {
|
|
@@ -1386,13 +1386,21 @@ class CustomWebSocketFetchHandler {
|
|
|
1386
1386
|
socket.close();
|
|
1387
1387
|
reject(error);
|
|
1388
1388
|
};
|
|
1389
|
-
socket.onclose = () => {
|
|
1389
|
+
socket.onclose = (event) => {
|
|
1390
1390
|
this.removeNotUsableSockets(socket.url);
|
|
1391
1391
|
if (socketErrorOccurred)
|
|
1392
1392
|
return;
|
|
1393
1393
|
if (streamError) {
|
|
1394
1394
|
reject(streamError);
|
|
1395
1395
|
}
|
|
1396
|
+
else if (event.code !== WS_CLOSURE_CODE.SUCCESS_CODE &&
|
|
1397
|
+
event.code !== 1001) {
|
|
1398
|
+
// Server closed the connection with an abnormal code (e.g. 4001
|
|
1399
|
+
// StreamIdleTimeout, 4003 SessionExpired, 1006 abnormal closure).
|
|
1400
|
+
reject(new Error(`Server ended the connection unexpectedly (code ${event.code}` +
|
|
1401
|
+
(event.reason ? `: ${event.reason}` : '') +
|
|
1402
|
+
')'));
|
|
1403
|
+
}
|
|
1396
1404
|
else {
|
|
1397
1405
|
resolve({
|
|
1398
1406
|
done: true,
|
package/dist/types/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.6.
|
|
1
|
+
export declare const VERSION = "3.6.6";
|
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.6",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@tensorflow/tfjs-core": "4.11.0",
|
|
66
66
|
"@xstate/react": "^3.2.2",
|
|
67
67
|
"tslib": "^2.5.2",
|
|
68
|
-
"uuid": "^11.1.
|
|
68
|
+
"uuid": "^11.1.1",
|
|
69
69
|
"xstate": "^4.33.6"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|