@powercred/liveness-web 0.1.0 → 0.1.1

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/sdk.d.ts CHANGED
@@ -16,6 +16,8 @@ export declare class PowerCredLiveness {
16
16
  constructor(config: LivenessConfig);
17
17
  /** Runs the check inside `container`. Resolves once; never rejects for user-facing problems. */
18
18
  start(container: HTMLElement): Promise<LivenessResult>;
19
+ /** Phones often stop the camera while the browser is in the background: reopen it if so. */
20
+ private ensureCamera;
19
21
  /** Stops a running check (also while it waits on a "Try again" button); start() then resolves "cancelled". */
20
22
  cancel(): void;
21
23
  /** Waits for a user action, unless the host cancels first. */
@@ -18,6 +18,7 @@ export interface Strings {
18
18
  great: string;
19
19
  wrongDirection: string;
20
20
  faceLost: string;
21
+ interrupted: string;
21
22
  timeUp: string;
22
23
  tooSlow: string;
23
24
  flashIntro: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powercred/liveness-web",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "PowerCred Liveness for the web: guided liveness challenges, recorded and verified by the PowerCred backend.",
5
5
  "type": "module",
6
6
  "module": "./dist/liveness.js",