@web3auth/no-modal 10.3.0 → 10.4.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.
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
145
145
  ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig1 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig1 === void 0 ? void 0 : _walletServicesConfig1.defaultPortfolio
146
146
  };
147
147
  };
148
- const sdkVersion = "10.3.0";
148
+ const sdkVersion = "10.4.0";
149
149
  const getErrorAnalyticsProperties = error => {
150
150
  try {
151
151
  const code = error instanceof index.Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
@@ -56,7 +56,7 @@ class MetaMaskConnector extends baseEvmConnector.BaseEvmConnector {
56
56
  const appMetadata = {
57
57
  name: utils.getSiteName(window) || "web3auth",
58
58
  url: window.location.origin || "https://web3auth.io",
59
- iconUrl
59
+ iconUrl: iconUrl !== null && iconUrl !== void 0 ? iconUrl : undefined
60
60
  };
61
61
  // initialize the MetaMask SDK
62
62
  const metamaskOptions = deepmerge(this.metamaskOptions || {}, {
@@ -56,7 +56,7 @@ async function getSiteIcon(window) {
56
56
  if (icon && (await imgExists(icon.href))) {
57
57
  return icon.href;
58
58
  }
59
- return null;
59
+ return undefined;
60
60
  }
61
61
  function parseToken(token) {
62
62
  const [header, payload] = token.split(".");
@@ -5,7 +5,7 @@ export declare const getSiteName: (window: Window) => string;
5
5
  /**
6
6
  * Extracts an icon for the site from the DOM
7
7
  */
8
- export declare function getSiteIcon(window: Window): Promise<string | null>;
8
+ export declare function getSiteIcon(window: Window): Promise<string | undefined>;
9
9
  export declare function parseToken<T>(token: string): {
10
10
  header: {
11
11
  alg: string;
@@ -145,7 +145,7 @@ const getWalletServicesAnalyticsProperties = walletServicesConfig => {
145
145
  ws_default_portfolio: walletServicesConfig === null || walletServicesConfig === void 0 || (_walletServicesConfig1 = walletServicesConfig.whiteLabel) === null || _walletServicesConfig1 === void 0 ? void 0 : _walletServicesConfig1.defaultPortfolio
146
146
  };
147
147
  };
148
- const sdkVersion = "10.3.0";
148
+ const sdkVersion = "10.4.0";
149
149
  const getErrorAnalyticsProperties = error => {
150
150
  try {
151
151
  const code = error instanceof Web3AuthError ? error.code : error === null || error === void 0 ? void 0 : error.code;
@@ -50,7 +50,7 @@ class MetaMaskConnector extends BaseEvmConnector {
50
50
  const appMetadata = {
51
51
  name: getSiteName(window) || "web3auth",
52
52
  url: window.location.origin || "https://web3auth.io",
53
- iconUrl
53
+ iconUrl: iconUrl !== null && iconUrl !== void 0 ? iconUrl : undefined
54
54
  };
55
55
 
56
56
  // initialize the MetaMask SDK
@@ -58,7 +58,7 @@ async function getSiteIcon(window) {
58
58
  if (icon && (await imgExists(icon.href))) {
59
59
  return icon.href;
60
60
  }
61
- return null;
61
+ return undefined;
62
62
  }
63
63
  function parseToken(token) {
64
64
  const [header, payload] = token.split(".");