@regulaforensics/idv-capture-web 2.3.145-nightly → 2.3.148-nightly

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/README.md CHANGED
@@ -116,13 +116,13 @@ service.eventListener = idvEventListener;
116
116
  /** for convenience, we will use an asynchronous function. You also can use Promises */
117
117
  (async function () {
118
118
  /** set modules */
119
- const initResilt = await service.initialize({
119
+ const initResult = await service.initialize({
120
120
  modulesConfig: { docreader: { devLicense: 'yourBase64license' } },
121
121
  includedModules: [IdvModules.LIVENESS, IdvModules.DOC_READER],
122
122
  });
123
123
  /** if something goes wrong, the command error will contain an error field. */
124
- if (initResilt.error) {
125
- console.log(initResilt.error);
124
+ if (initResult.error) {
125
+ console.log(initResult.error);
126
126
  return;
127
127
  }
128
128
 
@@ -147,7 +147,8 @@ service.eventListener = idvEventListener;
147
147
  }
148
148
 
149
149
  const metadata = { anyMetadata: 'Any Metadata' };
150
- const startWorkflowResult = await service?.startWorkflow(metadata);
150
+ const locale = 'en-us'; // 'en-us' for example. Should be the language of your workflow
151
+ const startWorkflowResult = await service?.startWorkflow({ locale: locale, metadata: metadata });
151
152
 
152
153
  if (startWorkflowResult.error) {
153
154
  console.log(startWorkflowResult.error);
@@ -22,7 +22,7 @@ var N1 = (e) => {
22
22
  throw l;
23
23
  }, "return" in r && i("return"), o;
24
24
  };
25
- import { B as cc, r as Bs, j as gE } from "./index-DRjr9OaZ.js";
25
+ import { B as cc, r as Bs, j as gE } from "./index-roTpX8DE.js";
26
26
  var QT = Object.defineProperty, JT = Object.defineProperties, XT = Object.getOwnPropertyDescriptors, RE = Object.getOwnPropertySymbols, $T = Object.prototype.hasOwnProperty, eb = Object.prototype.propertyIsEnumerable, Fo = (e, r) => (r = Symbol[e]) ? r : Symbol.for("Symbol." + e), tb = (e) => {
27
27
  throw TypeError(e);
28
28
  }, IE = (e, r, t) => r in e ? QT(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, xe = (e, r) => {
@@ -1,4 +1,4 @@
1
- import { B as Vu, r as la, j as lD } from "./index-DRjr9OaZ.js";
1
+ import { B as Vu, r as la, j as lD } from "./index-roTpX8DE.js";
2
2
  var m0 = Object.defineProperty, k0 = Object.defineProperties, h0 = Object.getOwnPropertyDescriptors, jD = Object.getOwnPropertySymbols, v0 = Object.prototype.hasOwnProperty, b0 = Object.prototype.propertyIsEnumerable, sD = (M, r, i) => r in M ? m0(M, r, { enumerable: !0, configurable: !0, writable: !0, value: i }) : M[r] = i, sl = (M, r) => {
3
3
  for (var i in r || (r = {}))
4
4
  v0.call(r, i) && sD(M, i, r[i]);