@regulaforensics/idv-interfaces 3.2.289-nightly → 3.2.290

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
@@ -55,15 +55,13 @@ export declare type ModuleClass<TModuleProps = unknown, TModulesConfig = unknown
55
55
 
56
56
  export declare function parseClientJSON<T>(json: T): T;
57
57
 
58
- export declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
58
+ export declare type PerformType = (typeof performType)[keyof typeof performType] | undefined;
59
59
 
60
- export declare const PerformTypes: {
60
+ export declare const performType: {
61
61
  readonly FORM: "form";
62
62
  readonly DATA: "data";
63
63
  };
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
-
69
67
  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: h,
18
+ underlyingBaseError: f,
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 = h, 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 = f, 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 w extends HTMLElement {
59
+ class b extends HTMLElement {
60
60
  }
61
- function b(r, e) {
61
+ function w(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 b(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 f = (r) => typeof r == "object" && r !== null && !Array.isArray(r);
74
+ const h = (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 (f(r)) {
78
+ if (h(r)) {
79
79
  const e = s({}, r);
80
80
  if (delete e.ios, delete e.android, delete e.web, "web" in r)
81
- if (f(r.web)) {
81
+ if (h(r.web)) {
82
82
  const t = d(e);
83
83
  return s(s({}, t), r.web);
84
84
  } else
@@ -97,15 +97,11 @@ 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
- }
103
100
  export {
104
101
  o as BaseError,
105
- w as BaseModule,
106
- B as PerformTypes,
102
+ b as BaseModule,
107
103
  N as cleanObjectFromUndefined,
108
104
  d as parseClientJSON,
109
- b as registerModule,
110
- O as wait
105
+ B as performType,
106
+ w as registerModule
111
107
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@regulaforensics/idv-interfaces",
3
- "version": "3.2.289-nightly",
3
+ "version": "3.2.290",
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",