@wagmi/connectors 0.2.6-cjs → 0.2.7-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.
- package/dist/{chunk-GVHCJA6Q.js → chunk-SCGCTBHA.js} +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/injected.d.ts +1 -1
- package/dist/injected.js +2 -2
- package/dist/metaMask.d.ts +1 -1
- package/dist/metaMask.js +2 -2
- package/dist/{types-b0e19493.d.ts → types-86dbb446.d.ts} +1 -0
- package/package.json +1 -1
|
@@ -63,6 +63,8 @@ function getInjectedName(ethereum) {
|
|
|
63
63
|
return "Trust Wallet";
|
|
64
64
|
if (provider.isMetaMask)
|
|
65
65
|
return "MetaMask";
|
|
66
|
+
if (provider.isXDEFI)
|
|
67
|
+
return "XDEFI Wallet";
|
|
66
68
|
};
|
|
67
69
|
if (_optionalChain([ethereum, 'access', _ => _.providers, 'optionalAccess', _2 => _2.length])) {
|
|
68
70
|
const nameSet = /* @__PURE__ */ new Set();
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { C as Connector, a as ConnectorData, b as ConnectorEvents } from './base-84a689bb.js';
|
|
2
|
-
export { E as Ethereum } from './types-
|
|
2
|
+
export { E as Ethereum } from './types-86dbb446.js';
|
|
3
3
|
import '@wagmi/core';
|
|
4
4
|
import '@wagmi/core/chains';
|
|
5
5
|
import 'eventemitter3';
|
package/dist/injected.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Address } from '@wagmi/core';
|
|
|
2
2
|
import { Chain } from '@wagmi/core/chains';
|
|
3
3
|
import { providers } from 'ethers';
|
|
4
4
|
import { C as Connector } from './base-84a689bb.js';
|
|
5
|
-
import { E as Ethereum } from './types-
|
|
5
|
+
import { E as Ethereum } from './types-86dbb446.js';
|
|
6
6
|
import 'eventemitter3';
|
|
7
7
|
import 'abitype';
|
|
8
8
|
|
package/dist/injected.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkSCGCTBHAjs = require('./chunk-SCGCTBHA.js');
|
|
4
4
|
require('./chunk-5NCTPR6C.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
exports.InjectedConnector =
|
|
7
|
+
exports.InjectedConnector = _chunkSCGCTBHAjs.InjectedConnector;
|
package/dist/metaMask.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Chain } from '@wagmi/core/chains';
|
|
2
2
|
import { InjectedConnectorOptions, InjectedConnector } from './injected.js';
|
|
3
|
-
import { E as Ethereum } from './types-
|
|
3
|
+
import { E as Ethereum } from './types-86dbb446.js';
|
|
4
4
|
import '@wagmi/core';
|
|
5
5
|
import 'ethers';
|
|
6
6
|
import './base-84a689bb.js';
|
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
|
|
3
|
+
var _chunkSCGCTBHAjs = require('./chunk-SCGCTBHA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -17,7 +17,7 @@ var _chunk5NCTPR6Cjs = require('./chunk-5NCTPR6C.js');
|
|
|
17
17
|
var _core = require('@wagmi/core');
|
|
18
18
|
var _utilsjs = require('ethers/lib/utils.js');
|
|
19
19
|
var _UNSTABLE_shimOnConnectSelectAccount;
|
|
20
|
-
var MetaMaskConnector = class extends
|
|
20
|
+
var MetaMaskConnector = class extends _chunkSCGCTBHAjs.InjectedConnector {
|
|
21
21
|
constructor({
|
|
22
22
|
chains,
|
|
23
23
|
options: options_
|