@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 CHANGED
@@ -841,7 +841,9 @@ function parseChainError(chain, errorMessage) {
841
841
  function isBrowser() {
842
842
  return typeof window !== "undefined" && typeof window.document !== "undefined";
843
843
  }
844
- var dynamicImport = new Function("specifier", "return import(specifier)");
844
+ async function dynamicImport(specifier) {
845
+ return import(specifier);
846
+ }
845
847
  async function canUseNativeWdk() {
846
848
  if (isBrowser()) {
847
849
  return false;
@@ -7627,7 +7629,9 @@ async function getPriceForChain2(chain) {
7627
7629
  const prices = await fetchPrices2();
7628
7630
  return prices[chain] || 0;
7629
7631
  }
7630
- var dynamicImport2 = new Function("specifier", "return import(specifier)");
7632
+ async function dynamicImport2(specifier) {
7633
+ return import(specifier);
7634
+ }
7631
7635
  async function loadWdkModules() {
7632
7636
  if (wdkLoaded) return;
7633
7637
  if (wdkLoadError) throw wdkLoadError;