@yidun/livedetect-sdk-h5 2.2.0 → 2.3.0

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.
@@ -13,6 +13,8 @@ declare class NELiveDetection extends EventEmitter implements Dispose {
13
13
  options: Required<Options>;
14
14
  container: HTMLElement | null;
15
15
  el: HTMLElement;
16
+ cameraOpened: Boolean;
17
+ loadOver: Boolean;
16
18
  readonly collector: Collector;
17
19
  readonly netCollector: Collector;
18
20
  readonly request: <T>(opts: Omit<RequestOptions, 'apiServer'>, callback?: Function) => Promise<T>;
@@ -2,7 +2,7 @@ import NELiveDetection from '@Src/main/live-detection';
2
2
  import { DomNode } from '@Src/main/utils/domNode';
3
3
  export declare class Footer extends DomNode {
4
4
  private readonly neLiveDetection;
5
- iconTips: Array<[string, string, string]>;
5
+ iconTips: Array<[string, string]>;
6
6
  constructor(container: HTMLElement, neLiveDetection: NELiveDetection);
7
7
  initFooter(): void;
8
8
  }
@@ -22,6 +22,7 @@ export interface Options extends PirvateOptions {
22
22
  footerTip?: boolean;
23
23
  lang?: Lang;
24
24
  apiServer?: string;
25
+ preload?: boolean;
25
26
  onMount?: (instance?: NELiveDetection) => void;
26
27
  onReady?: (instance?: NELiveDetection) => void;
27
28
  }
@@ -7,7 +7,7 @@ declare class I18n {
7
7
  setCurrentLang(lang: Lang): void;
8
8
  }
9
9
  export declare const i18n: I18n;
10
- export declare const LOADING = "Loading";
10
+ export declare const LOADING = "Loading...";
11
11
  export declare const FACE_THE_SCREEN = "FaceTheScreen";
12
12
  export declare const DETECTION_COMPLETED = "DetectionCompleted";
13
13
  export declare const WELL_LIT = "WellLit";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yidun/livedetect-sdk-h5",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "活体检测 H5",
5
5
  "main": "dist/NELiveDetection.umd.js",
6
6
  "module": "dist/es/NELiveDetection.esm.js",
@@ -110,6 +110,6 @@
110
110
  "@yidun/snaker": "^0.4.3"
111
111
  },
112
112
  "volta": {
113
- "node": "14.21.3"
113
+ "node": "18.20.5"
114
114
  }
115
115
  }