idmission-web-sdk 2.2.17 → 2.2.19

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.
@@ -211,7 +211,7 @@
211
211
  return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
212
212
  };
213
213
 
214
- var webSdkVersion = '2.2.17';
214
+ var webSdkVersion = '2.2.19';
215
215
 
216
216
  function getPlatform() {
217
217
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -15375,9 +15375,12 @@
15375
15375
  }
15376
15376
  };
15377
15377
  var models = {};
15378
- function loadFocusModel(modelAssetPath) {
15379
- return __awaiter(this, void 0, void 0, function () {
15378
+ function loadFocusModel() {
15379
+ return __awaiter(this, arguments, void 0, function (modelAssetPath) {
15380
15380
  var id, _a, _b, _c, _d;
15381
+ if (modelAssetPath === void 0) {
15382
+ modelAssetPath = defaultFocusModelPath;
15383
+ }
15381
15384
  return __generator(this, function (_e) {
15382
15385
  switch (_e.label) {
15383
15386
  case 0:
@@ -15399,6 +15402,7 @@
15399
15402
  modelAssetPath: modelAssetPath,
15400
15403
  delegate: modelCapabilities.delegate
15401
15404
  },
15405
+ canvas: document.createElement('canvas'),
15402
15406
  runningMode: 'VIDEO'
15403
15407
  }])];
15404
15408
  case 3:
@@ -15531,6 +15535,7 @@
15531
15535
  return [4 /*yield*/, Uo.forVisionTasks(visionTasksBasePath)];
15532
15536
  case 2:
15533
15537
  return [4 /*yield*/, _b.apply(_a, [_c.sent(), {
15538
+ canvas: document.createElement('canvas'),
15534
15539
  baseOptions: {
15535
15540
  modelAssetPath: defaultFaceDetectorModelPath,
15536
15541
  delegate: modelCapabilities.delegate
@@ -16003,6 +16008,7 @@
16003
16008
  modelAssetPath: modelAssetPath,
16004
16009
  delegate: modelCapabilities.delegate
16005
16010
  },
16011
+ canvas: document.createElement('canvas'),
16006
16012
  scoreThreshold: scoreThreshold,
16007
16013
  runningMode: 'VIDEO'
16008
16014
  }])];