UNPKG

@privateid/ultra-web-sdk-alpha

Version:
26 lines 1.41 kB
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; import { DocumentService } from './modules/core/document'; import { FaceService } from './modules/core/face'; import CameraServiceFactory from './modules/support/camera'; import { WasmService } from './modules/support/wasm'; // Support Modules export const cameraService = CameraServiceFactory.create(); export const wasmService = new WasmService(); // TODO: Migrate to top-level await when upgrading to node 20 (() => __awaiter(void 0, void 0, void 0, function* () { yield wasmService.initialize(); }))(); // Core Modules // FACE export const faceService = new FaceService(wasmService, cameraService); // DOCUMENT export const documentService = new DocumentService(wasmService, cameraService); //# sourceMappingURL=index.js.map