@yidun/livedetect-sdk-h5 2.2.1 → 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>;
@@ -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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yidun/livedetect-sdk-h5",
3
- "version": "2.2.1",
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
  }