@regulaforensics/idv-interfaces 3.2.284-nightly → 3.2.285-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/dist/index.d.ts CHANGED
@@ -64,4 +64,6 @@ export declare const PerformTypes: {
64
64
 
65
65
  export declare function registerModule<TModuleProps = unknown, TModulesConfig = unknown>(name: string, ModuleClass: ModuleClass<TModuleProps, TModulesConfig>): void;
66
66
 
67
+ export declare function wait(ms: number): Promise<unknown>;
68
+
67
69
  export { }
package/dist/main.js CHANGED
@@ -15,13 +15,13 @@ class o {
15
15
  errorCodeKey: i,
16
16
  message: t,
17
17
  underlyingError: n,
18
- underlyingBaseError: f,
18
+ underlyingBaseError: h,
19
19
  domain: g,
20
20
  module: a,
21
21
  errorEnumName: c,
22
22
  shortDomainCode: p
23
23
  }) {
24
- this.errorCode = e, this.errorCodeKey = i, this.message = t, this.underlyingError = n, this.underlyingBaseError = f, this.module = a, this.domain = g, this.errorEnumName = c, this.shortDomainCode = p;
24
+ this.errorCode = e, this.errorCodeKey = i, this.message = t, this.underlyingError = n, this.underlyingBaseError = h, this.module = a, this.domain = g, this.errorEnumName = c, this.shortDomainCode = p;
25
25
  }
26
26
  static getErrorKey(e, i) {
27
27
  const t = Object.keys(i).find((n) => i[n] === e);
@@ -56,9 +56,9 @@ class o {
56
56
  return this.underlyingBaseError instanceof o && (e += `-${this.underlyingBaseError.fullChain}`), e;
57
57
  }
58
58
  }
59
- class b extends HTMLElement {
59
+ class w extends HTMLElement {
60
60
  }
61
- function w(r, e) {
61
+ function b(r, e) {
62
62
  if (e.displayName ? console.log(`Register module: ${e.displayName}`) : console.error('Missed "displayName" when register module'), e.getSupportedTemplates && typeof e.getSupportedTemplates == "function") {
63
63
  const i = e.getSupportedTemplates();
64
64
  console.log(`${e == null ? void 0 : e.displayName} supported templates: ${i.join(", ")}`);
@@ -71,14 +71,14 @@ function w(r, e) {
71
71
  console.error('Missed "getIdentifier" when register module');
72
72
  customElements.get(e.getIdentifier()) ? console.log(`Module ${r} has already registered`) : customElements.define(r, e), console.log("-------");
73
73
  }
74
- const h = (r) => typeof r == "object" && r !== null && !Array.isArray(r);
74
+ const f = (r) => typeof r == "object" && r !== null && !Array.isArray(r);
75
75
  function d(r) {
76
76
  if (Array.isArray(r))
77
77
  return r.map(d);
78
- if (h(r)) {
78
+ if (f(r)) {
79
79
  const e = s({}, r);
80
80
  if (delete e.ios, delete e.android, delete e.web, "web" in r)
81
- if (h(r.web)) {
81
+ if (f(r.web)) {
82
82
  const t = d(e);
83
83
  return s(s({}, t), r.web);
84
84
  } else
@@ -97,11 +97,15 @@ const B = {
97
97
  FORM: "form",
98
98
  DATA: "data"
99
99
  };
100
+ function O(r) {
101
+ return new Promise((e) => setTimeout(e, r));
102
+ }
100
103
  export {
101
104
  o as BaseError,
102
- b as BaseModule,
105
+ w as BaseModule,
103
106
  B as PerformTypes,
104
107
  N as cleanObjectFromUndefined,
105
108
  d as parseClientJSON,
106
- w as registerModule
109
+ b as registerModule,
110
+ O as wait
107
111
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-interfaces",
3
- "version": "3.2.284-nightly",
3
+ "version": "3.2.285-nightly",
4
4
  "description": "Regula framework agnostic web components to work with document idv",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/main.js",