@wagmi/connectors 0.2.5 → 0.2.6

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.
@@ -31,6 +31,8 @@ function getInjectedName(ethereum) {
31
31
  return "Core Wallet";
32
32
  if (provider.isBitKeep)
33
33
  return "BitKeep";
34
+ if (provider.isBitski)
35
+ return "Bitski";
34
36
  if (provider.isBraveWallet)
35
37
  return "Brave Wallet";
36
38
  if (provider.isCoinbaseWallet)
@@ -95,7 +97,7 @@ var InjectedConnector = class extends Connector {
95
97
  ...options_
96
98
  };
97
99
  super({ chains, options });
98
- __publicField(this, "id");
100
+ __publicField(this, "id", "injected");
99
101
  __publicField(this, "name");
100
102
  __publicField(this, "ready");
101
103
  __privateAdd(this, _provider, void 0);
@@ -138,7 +140,6 @@ var InjectedConnector = class extends Connector {
138
140
  }
139
141
  } else
140
142
  this.name = "Injected";
141
- this.id = "injected";
142
143
  this.ready = !!provider;
143
144
  }
144
145
  async connect({ chainId } = {}) {
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-acc5bc95.js';
2
+ export { E as Ethereum } from './types-b0e19493.js';
3
3
  import '@wagmi/core';
4
4
  import '@wagmi/core/chains';
5
5
  import 'eventemitter3';
@@ -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-acc5bc95.js';
5
+ import { E as Ethereum } from './types-b0e19493.js';
6
6
  import 'eventemitter3';
7
7
  import 'abitype';
8
8
 
package/dist/injected.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-N7MKKIYR.js";
3
+ } from "./chunk-GVHCJA6Q.js";
4
4
  import "./chunk-5NCTPR6C.js";
5
5
  export {
6
6
  InjectedConnector
@@ -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-acc5bc95.js';
3
+ import { E as Ethereum } from './types-b0e19493.js';
4
4
  import '@wagmi/core';
5
5
  import 'ethers';
6
6
  import './base-84a689bb.js';
@@ -16,6 +16,7 @@ type MetaMaskConnectorOptions = Pick<InjectedConnectorOptions, 'shimChainChanged
16
16
  declare class MetaMaskConnector extends InjectedConnector {
17
17
  #private;
18
18
  readonly id = "metaMask";
19
+ protected shimDisconnectKey: string;
19
20
  constructor({ chains, options: options_, }?: {
20
21
  chains?: Chain[];
21
22
  options?: MetaMaskConnectorOptions;
package/dist/metaMask.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-N7MKKIYR.js";
3
+ } from "./chunk-GVHCJA6Q.js";
4
4
  import {
5
5
  __privateAdd,
6
6
  __privateGet,
@@ -58,6 +58,7 @@ var MetaMaskConnector = class extends InjectedConnector {
58
58
  };
59
59
  super({ chains, options });
60
60
  __publicField(this, "id", "metaMask");
61
+ __publicField(this, "shimDisconnectKey", `${this.id}.shimDisconnect`);
61
62
  __privateAdd(this, _UNSTABLE_shimOnConnectSelectAccount, void 0);
62
63
  __privateSet(this, _UNSTABLE_shimOnConnectSelectAccount, options.UNSTABLE_shimOnConnectSelectAccount);
63
64
  }
package/dist/safe.js CHANGED
@@ -33,7 +33,10 @@ var SafeConnector = class extends Connector {
33
33
  __privateAdd(this, _provider, void 0);
34
34
  __privateAdd(this, _sdk, void 0);
35
35
  __publicField(this, "shimDisconnectKey", `${this.id}.shimDisconnect`);
36
- __privateSet(this, _sdk, new SafeAppsSDK(options));
36
+ let SDK = SafeAppsSDK;
37
+ if (typeof SafeAppsSDK !== "function" && typeof SafeAppsSDK.default === "function")
38
+ SDK = SafeAppsSDK.default;
39
+ __privateSet(this, _sdk, new SDK(options));
37
40
  }
38
41
  async connect() {
39
42
  const provider = await this.getProvider();
@@ -44,6 +44,7 @@ type InjectedProviderFlags = {
44
44
  isApexWallet?: true;
45
45
  isAvalanche?: true;
46
46
  isBitKeep?: true;
47
+ isBitski?: true;
47
48
  isBraveWallet?: true;
48
49
  isCoinbaseWallet?: true;
49
50
  isExodus?: true;
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": "0.2.5",
5
+ "version": "0.2.6",
6
6
  "peerDependencies": {
7
7
  "@wagmi/core": ">=0.9.x",
8
8
  "ethers": ">=5.5.1 <6",