@wagmi/connectors 3.1.0-cjs → 3.1.1-cjs

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.
@@ -49,6 +49,7 @@ type InjectedProviderFlags = {
49
49
  isTrustWallet?: true;
50
50
  isTTWallet?: true;
51
51
  isXDEFI?: true;
52
+ isZeal?: true;
52
53
  isZerion?: true;
53
54
  };
54
55
  type InjectedProviders = InjectedProviderFlags & {
@@ -112,6 +112,8 @@ function getInjectedName(ethereum) {
112
112
  return "TTWallet";
113
113
  if (provider.isXDEFI)
114
114
  return "XDEFI Wallet";
115
+ if (provider.isZeal)
116
+ return "Zeal";
115
117
  if (provider.isZerion)
116
118
  return "Zerion";
117
119
  if (provider.isMetaMask)
@@ -1,7 +1,7 @@
1
1
  import { CoinbaseWalletProvider } from '@coinbase/wallet-sdk';
2
2
  import { CoinbaseWalletSDKOptions } from '@coinbase/wallet-sdk/dist/CoinbaseWalletSDK';
3
3
  import { Chain } from 'viem/chains';
4
- import { C as Connector, c as WalletClient } from './base-ff961c9d.js';
4
+ import { C as Connector, c as WalletClient } from './base-70e3a8a9.js';
5
5
  import 'eventemitter3';
6
6
  import 'viem';
7
7
 
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as Connector, a as ConnectorData, b as ConnectorEvents, W as WindowProvider } from './base-ff961c9d.js';
1
+ export { C as Connector, a as ConnectorData, b as ConnectorEvents, W as WindowProvider } from './base-70e3a8a9.js';
2
2
  import 'eventemitter3';
3
3
  import 'viem';
4
4
  import 'viem/chains';
@@ -1,6 +1,6 @@
1
1
  import { Address } from 'viem';
2
2
  import { Chain } from 'viem/chains';
3
- import { W as WindowProvider, C as Connector, c as WalletClient } from './base-ff961c9d.js';
3
+ import { W as WindowProvider, C as Connector, c as WalletClient } from './base-70e3a8a9.js';
4
4
  import 'eventemitter3';
5
5
 
6
6
  type InjectedConnectorOptions = {
package/dist/injected.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJA6XQLQAjs = require('./chunk-JA6XQLQA.js');
3
+ var _chunk2UFLHRLTjs = require('./chunk-2UFLHRLT.js');
4
4
  require('./chunk-UGBGYVBH.js');
5
5
  require('./chunk-OQILYQDO.js');
6
6
  require('./chunk-W65LBPLT.js');
7
7
 
8
8
 
9
- exports.InjectedConnector = _chunkJA6XQLQAjs.InjectedConnector;
9
+ exports.InjectedConnector = _chunk2UFLHRLTjs.InjectedConnector;
package/dist/ledger.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { EthereumProvider } from '@ledgerhq/connect-kit-loader';
2
2
  import { EthereumProviderOptions } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider';
3
3
  import { Chain } from 'viem/chains';
4
- import { C as Connector, c as WalletClient } from './base-ff961c9d.js';
4
+ import { C as Connector, c as WalletClient } from './base-70e3a8a9.js';
5
5
  import 'eventemitter3';
6
6
  import 'viem';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { Chain } from 'viem/chains';
2
2
  import { InjectedConnectorOptions, InjectedConnector } from './injected.js';
3
- import { W as WindowProvider } from './base-ff961c9d.js';
3
+ import { W as WindowProvider } from './base-70e3a8a9.js';
4
4
  import 'viem';
5
5
  import 'eventemitter3';
6
6
 
package/dist/metaMask.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkJA6XQLQAjs = require('./chunk-JA6XQLQA.js');
3
+ var _chunk2UFLHRLTjs = require('./chunk-2UFLHRLT.js');
4
4
 
5
5
 
6
6
  var _chunkUGBGYVBHjs = require('./chunk-UGBGYVBH.js');
@@ -18,7 +18,7 @@ var _chunkW65LBPLTjs = require('./chunk-W65LBPLT.js');
18
18
 
19
19
  var _viem = require('viem');
20
20
  var _UNSTABLE_shimOnConnectSelectAccount;
21
- var MetaMaskConnector = class extends _chunkJA6XQLQAjs.InjectedConnector {
21
+ var MetaMaskConnector = class extends _chunk2UFLHRLTjs.InjectedConnector {
22
22
  constructor({
23
23
  chains,
24
24
  options: options_
@@ -63,6 +63,8 @@ var MetaMaskConnector = class extends _chunkJA6XQLQAjs.InjectedConnector {
63
63
  return;
64
64
  if (ethereum2.isTokenary)
65
65
  return;
66
+ if (ethereum2.isZeal)
67
+ return;
66
68
  if (ethereum2.isZerion)
67
69
  return;
68
70
  return ethereum2;
@@ -1,5 +1,5 @@
1
1
  import { Chain } from 'viem/chains';
2
- import { c as WalletClient, C as Connector, a as ConnectorData } from '../base-ff961c9d.js';
2
+ import { c as WalletClient, C as Connector, a as ConnectorData } from '../base-70e3a8a9.js';
3
3
  import EventEmitter from 'eventemitter3';
4
4
  import 'viem';
5
5
 
package/dist/safe.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { SafeAppProvider } from '@safe-global/safe-apps-provider';
2
2
  import { Opts } from '@safe-global/safe-apps-sdk';
3
3
  import { Chain } from 'viem/chains';
4
- import { C as Connector, c as WalletClient } from './base-ff961c9d.js';
4
+ import { C as Connector, c as WalletClient } from './base-70e3a8a9.js';
5
5
  import 'eventemitter3';
6
6
  import 'viem';
7
7
 
@@ -1,7 +1,7 @@
1
1
  import WalletConnectProvider from '@walletconnect/ethereum-provider';
2
2
  import { EthereumProviderOptions } from '@walletconnect/ethereum-provider/dist/types/EthereumProvider';
3
3
  import { Chain } from 'viem/chains';
4
- import { C as Connector, c as WalletClient } from './base-ff961c9d.js';
4
+ import { C as Connector, c as WalletClient } from './base-70e3a8a9.js';
5
5
  import 'eventemitter3';
6
6
  import 'viem';
7
7
 
@@ -1,5 +1,5 @@
1
1
  import WalletConnectProvider from '@walletconnect/legacy-provider';
2
- import { C as Connector, c as WalletClient } from './base-ff961c9d.js';
2
+ import { C as Connector, c as WalletClient } from './base-70e3a8a9.js';
3
3
  import 'eventemitter3';
4
4
  import 'viem';
5
5
  import 'viem/chains';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@wagmi/connectors",
3
3
  "description": "A collection of connectors for wagmi",
4
4
  "license": "MIT",
5
- "version": "3.1.0-cjs",
5
+ "version": "3.1.1-cjs",
6
6
  "peerDependencies": {
7
7
  "typescript": ">=5.0.4",
8
8
  "viem": ">=0.3.35"