@wagmi/core 0.4.7 → 0.4.8
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/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.dev.js +2 -1
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.cjs.prod.js +2 -1
- package/connectors/coinbaseWallet/dist/wagmi-core-connectors-coinbaseWallet.esm.js +2 -1
- package/package.json +1 -1
|
@@ -159,7 +159,8 @@ class CoinbaseWalletConnector extends base.Connector {
|
|
|
159
159
|
let CoinbaseWalletSDK = (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@coinbase/wallet-sdk')); })).default; // Workaround for Vite dev import errors
|
|
160
160
|
// https://github.com/vitejs/vite/issues/7112
|
|
161
161
|
|
|
162
|
-
if (
|
|
162
|
+
if (typeof CoinbaseWalletSDK !== 'function' && // @ts-expect-error This import error is not visible to TypeScript
|
|
163
|
+
typeof CoinbaseWalletSDK.default === 'function') CoinbaseWalletSDK = CoinbaseWalletSDK.default;
|
|
163
164
|
|
|
164
165
|
base._classPrivateFieldSet(this, _client, new CoinbaseWalletSDK(this.options));
|
|
165
166
|
|
|
@@ -159,7 +159,8 @@ class CoinbaseWalletConnector extends base.Connector {
|
|
|
159
159
|
let CoinbaseWalletSDK = (await Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@coinbase/wallet-sdk')); })).default; // Workaround for Vite dev import errors
|
|
160
160
|
// https://github.com/vitejs/vite/issues/7112
|
|
161
161
|
|
|
162
|
-
if (
|
|
162
|
+
if (typeof CoinbaseWalletSDK !== 'function' && // @ts-expect-error This import error is not visible to TypeScript
|
|
163
|
+
typeof CoinbaseWalletSDK.default === 'function') CoinbaseWalletSDK = CoinbaseWalletSDK.default;
|
|
163
164
|
|
|
164
165
|
base._classPrivateFieldSet(this, _client, new CoinbaseWalletSDK(this.options));
|
|
165
166
|
|
|
@@ -137,7 +137,8 @@ class CoinbaseWalletConnector extends Connector {
|
|
|
137
137
|
let CoinbaseWalletSDK = (await import('@coinbase/wallet-sdk')).default; // Workaround for Vite dev import errors
|
|
138
138
|
// https://github.com/vitejs/vite/issues/7112
|
|
139
139
|
|
|
140
|
-
if (
|
|
140
|
+
if (typeof CoinbaseWalletSDK !== 'function' && // @ts-expect-error This import error is not visible to TypeScript
|
|
141
|
+
typeof CoinbaseWalletSDK.default === 'function') CoinbaseWalletSDK = CoinbaseWalletSDK.default;
|
|
141
142
|
|
|
142
143
|
_classPrivateFieldSet(this, _client, new CoinbaseWalletSDK(this.options));
|
|
143
144
|
|