@web3auth/no-modal 10.3.0 → 10.3.1
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/lib.cjs/base/utils.js +1 -1
- package/dist/lib.cjs/connectors/metamask-connector/metamaskConnector.js +1 -1
- package/dist/lib.cjs/connectors/utils.js +1 -1
- package/dist/lib.cjs/types/connectors/utils.d.ts +1 -1
- package/dist/lib.esm/base/utils.js +1 -1
- package/dist/lib.esm/connectors/metamask-connector/metamaskConnector.js +1 -1
- package/dist/lib.esm/connectors/utils.js +1 -1
- package/dist/noModal.umd.min.js +1 -1
- package/package.json +2 -2
|
@@ -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.
|
|
148
|
+
const sdkVersion = "10.3.1";
|
|
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 || {}, {
|
|
@@ -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 |
|
|
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.
|
|
148
|
+
const sdkVersion = "10.3.1";
|
|
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
|