@evervault/js 2.16.0 → 2.18.0
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/evervault-js.js +22 -27
- package/dist/evervault-js.umd.cjs +1 -1
- package/dist/evervault.d.ts +69403 -18
- package/package.json +6 -6
package/dist/evervault-js.js
CHANGED
|
@@ -1,32 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
document.head.appendChild(e);
|
|
12
|
-
}), t);
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
var e = null;
|
|
3
|
+
async function t() {
|
|
4
|
+
return e || (e = new Promise((t, n) => {
|
|
5
|
+
let r = document.createElement("script");
|
|
6
|
+
if (r.src = "https://js.evervault.com/v2", r.onload = () => t(), r.onerror = () => {
|
|
7
|
+
e = null, n();
|
|
8
|
+
}, !document.head) throw Error("Expected document.head not to be null. Evervault.js requires a <head> element.");
|
|
9
|
+
document.head.appendChild(r);
|
|
10
|
+
}), e);
|
|
13
11
|
}
|
|
14
|
-
async function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
12
|
+
async function n() {
|
|
13
|
+
if (window.Evervault) return window.Evervault;
|
|
14
|
+
try {
|
|
15
|
+
return await t(), window.Evervault;
|
|
16
|
+
} catch {
|
|
17
|
+
throw Error("Failed to load Evervault.js");
|
|
18
|
+
}
|
|
22
19
|
}
|
|
23
|
-
async function
|
|
24
|
-
|
|
25
|
-
return new a(n, r, e);
|
|
20
|
+
async function r(e, t, r) {
|
|
21
|
+
return new (await (n()))(e, t, r);
|
|
26
22
|
}
|
|
27
23
|
Promise.resolve().then(() => {
|
|
28
|
-
|
|
24
|
+
n();
|
|
29
25
|
});
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { r as loadEvervault };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports):typeof define==`function`&&define.amd?define([`exports`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.Evervault={}))})(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=null;async function n(){return t||(t=new Promise((e,n)=>{let r=document.createElement(`script`);if(r.src=`https://js.evervault.com/v2`,r.onload=()=>e(),r.onerror=()=>{t=null,n()},!document.head)throw Error(`Expected document.head not to be null. Evervault.js requires a <head> element.`);document.head.appendChild(r)}),t)}async function r(){if(window.Evervault)return window.Evervault;try{return await n(),window.Evervault}catch{throw Error(`Failed to load Evervault.js`)}}async function i(e,t,n){return new(await(r()))(e,t,n)}Promise.resolve().then(()=>{r()}),e.loadEvervault=i});
|