@regulaforensics/idv-interfaces 3.2.283 → 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 +4 -2
- package/dist/main.js +14 -10
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -55,13 +55,15 @@ 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
|
|
58
|
+
export declare type PerformType = (typeof PerformTypes)[keyof typeof PerformTypes] | undefined;
|
|
59
59
|
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const PerformTypes: {
|
|
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
|
+
|
|
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:
|
|
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 =
|
|
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
|
|
59
|
+
class w extends HTMLElement {
|
|
60
60
|
}
|
|
61
|
-
function
|
|
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
|
|
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 (
|
|
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 (
|
|
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
|
-
|
|
105
|
+
w as BaseModule,
|
|
106
|
+
B as PerformTypes,
|
|
103
107
|
N as cleanObjectFromUndefined,
|
|
104
108
|
d as parseClientJSON,
|
|
105
|
-
|
|
106
|
-
|
|
109
|
+
b as registerModule,
|
|
110
|
+
O as wait
|
|
107
111
|
};
|
package/package.json
CHANGED