adapter-connect 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -3
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1,10 +1,11 @@
1
1
  // src/WhatWagmiProvider.tsx
2
- import { WagmiProvider } from "@privy-io/wagmi";
2
+ import { WagmiProvider as WagmiProvider2 } from "@privy-io/wagmi";
3
3
  import { PrivyProvider } from "@privy-io/react-auth";
4
4
 
5
5
  // src/config.ts
6
- import { createConfig, http, injected } from "@privy-io/wagmi";
7
6
  import { base } from "viem/chains";
7
+ import { createConfig } from "@privy-io/wagmi";
8
+ import { http, injected } from "wagmi";
8
9
  var createConnectors = () => {
9
10
  return [injected()];
10
11
  };
@@ -37,6 +38,7 @@ var useWalletConnect = () => {
37
38
  const disconnect = async () => {
38
39
  try {
39
40
  disconnectWagmiFunction();
41
+ logout();
40
42
  } catch (e) {
41
43
  }
42
44
  };
@@ -646,7 +648,7 @@ function WhatWagmiProvider({
646
648
  walletChainType: "ethereum-and-solana"
647
649
  }
648
650
  },
649
- children: /* @__PURE__ */ jsxs3(WagmiProvider, { config, children: [
651
+ children: /* @__PURE__ */ jsxs3(WagmiProvider2, { config, children: [
650
652
  children,
651
653
  /* @__PURE__ */ jsx3(ModalPrivyConnect, {}),
652
654
  /* @__PURE__ */ jsx3(ModalPrivyWallet, {})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adapter-connect",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",