From 717b0095573eb0fc44ef47441eb27e1c3122f6f9 Mon Sep 17 00:00:00 2001 From: thaddmt <68032955+thaddmt@users.noreply.github.com> Date: Wed, 13 Sep 2023 17:38:15 -0700 Subject: [PATCH] chore(liveness): remove predictions super class (#4441) * chore(liveness): remove predictions super class * Create cold-news-jump.md --- .changeset/cold-news-jump.md | 5 +++++ .../FaceLivenessDetector/service/utils/streamProvider.ts | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .changeset/cold-news-jump.md diff --git a/.changeset/cold-news-jump.md b/.changeset/cold-news-jump.md new file mode 100644 index 00000000000..2a4a1b2da54 --- /dev/null +++ b/.changeset/cold-news-jump.md @@ -0,0 +1,5 @@ +--- +"@aws-amplify/ui-react-liveness": patch +--- + +chore(liveness): remove predictions super class diff --git a/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/streamProvider.ts b/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/streamProvider.ts index 1324a04b9c8..0924f602e51 100644 --- a/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/streamProvider.ts +++ b/packages/react-liveness/src/components/FaceLivenessDetector/service/utils/streamProvider.ts @@ -2,7 +2,6 @@ import { Credentials as AmplifyCredentials, getAmplifyUserAgent, } from '@aws-amplify/core'; -import { AmazonAIInterpretPredictionsProvider } from '@aws-amplify/predictions'; import { ClientSessionInformationEvent, LivenessResponseStream, @@ -59,7 +58,7 @@ function isEndStreamWithCodeEvent(obj: unknown): obj is EndStreamWithCodeEvent { return (obj as EndStreamWithCodeEvent).code !== undefined; } -export class LivenessStreamProvider extends AmazonAIInterpretPredictionsProvider { +export class LivenessStreamProvider { public sessionId: string; public region: string; public videoRecorder: VideoRecorder; @@ -79,7 +78,6 @@ export class LivenessStreamProvider extends AmazonAIInterpretPredictionsProvider videoEl, credentialProvider, }: StreamProviderArgs) { - super(); this.sessionId = sessionId; this.region = region; this._stream = stream;