@zubari/sdk 0.5.9 → 0.5.10
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.js +6 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -2
- package/dist/index.mjs.map +1 -1
- package/dist/react/index.js +3 -1
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +3 -1
- package/dist/react/index.mjs.map +1 -1
- package/dist/services/index.js +6 -2
- package/dist/services/index.js.map +1 -1
- package/dist/services/index.mjs +6 -2
- package/dist/services/index.mjs.map +1 -1
- package/dist/wallet/index.js +3 -1
- package/dist/wallet/index.js.map +1 -1
- package/dist/wallet/index.mjs +3 -1
- package/dist/wallet/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/services/index.mjs
CHANGED
|
@@ -1330,7 +1330,9 @@ function parseChainError(chain, errorMessage) {
|
|
|
1330
1330
|
function isBrowser() {
|
|
1331
1331
|
return typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
1332
1332
|
}
|
|
1333
|
-
|
|
1333
|
+
async function dynamicImport(specifier) {
|
|
1334
|
+
return import(specifier);
|
|
1335
|
+
}
|
|
1334
1336
|
async function canUseNativeWdk() {
|
|
1335
1337
|
if (isBrowser()) {
|
|
1336
1338
|
return false;
|
|
@@ -1839,7 +1841,9 @@ async function getPriceForChain(chain) {
|
|
|
1839
1841
|
const prices = await fetchPrices();
|
|
1840
1842
|
return prices[chain] || 0;
|
|
1841
1843
|
}
|
|
1842
|
-
|
|
1844
|
+
async function dynamicImport2(specifier) {
|
|
1845
|
+
return import(specifier);
|
|
1846
|
+
}
|
|
1843
1847
|
async function loadWdkModules() {
|
|
1844
1848
|
if (wdkLoaded) return;
|
|
1845
1849
|
if (wdkLoadError) throw wdkLoadError;
|