Skip to content

Commit

Permalink
chore(liveness): remove predictions super class (#4441)
Browse files Browse the repository at this point in the history
* chore(liveness): remove predictions super class

* Create cold-news-jump.md
  • Loading branch information
thaddmt authored Sep 14, 2023
1 parent c393b74 commit 717b009
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-news-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aws-amplify/ui-react-liveness": patch
---

chore(liveness): remove predictions super class
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
Credentials as AmplifyCredentials,
getAmplifyUserAgent,
} from '@aws-amplify/core';
import { AmazonAIInterpretPredictionsProvider } from '@aws-amplify/predictions';
import {
ClientSessionInformationEvent,
LivenessResponseStream,
Expand Down Expand Up @@ -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;
Expand All @@ -79,7 +78,6 @@ export class LivenessStreamProvider extends AmazonAIInterpretPredictionsProvider
videoEl,
credentialProvider,
}: StreamProviderArgs) {
super();
this.sessionId = sessionId;
this.region = region;
this._stream = stream;
Expand Down

0 comments on commit 717b009

Please sign in to comment.