@wagmi/connectors 3.1.4 → 3.1.5

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.
@@ -153,7 +153,7 @@ var InjectedConnector = class extends Connector {
153
153
  if (typeof window === "undefined")
154
154
  return;
155
155
  const ethereum = window.ethereum;
156
- if (ethereum?.providers)
156
+ if (ethereum?.providers && ethereum.providers.length > 0)
157
157
  return ethereum.providers[0];
158
158
  return ethereum;
159
159
  },
package/dist/injected.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-HX7NWRCD.js";
3
+ } from "./chunk-JTELPB65.js";
4
4
  import "./chunk-UGBGYVBH.js";
5
5
  import "./chunk-OQILYQDO.js";
6
6
  import "./chunk-W65LBPLT.js";
package/dist/metaMask.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  InjectedConnector
3
- } from "./chunk-HX7NWRCD.js";
3
+ } from "./chunk-JTELPB65.js";
4
4
  import {
5
5
  ConnectorNotFoundError
6
6
  } from "./chunk-UGBGYVBH.js";
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.4",
5
+ "version": "3.1.5",
6
6
  "peerDependencies": {
7
7
  "typescript": ">=5.0.4",
8
8
  "viem": ">=0.3.35"