@reef-knot/wallet-adapter-metamask 4.2.0 → 4.3.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAO1D,eAAO,MAAM,EAAE,aAAa,CAAC;AAC7B,eAAO,MAAM,IAAI,aAAa,CAAC;AAC/B,eAAO,MAAM,IAAI,gBAAgB,CAAC;AAKlC,eAAO,MAAM,QAAQ,EAAE,iBAiBrB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAI1D,eAAO,MAAM,EAAE,aAAa,CAAC;AAC7B,eAAO,MAAM,IAAI,aAAa,CAAC;AAC/B,eAAO,MAAM,IAAI,gBAAgB,CAAC;AAElC,eAAO,MAAM,QAAQ,EAAE,iBAUrB,CAAC"}
package/dist/index.js CHANGED
@@ -1,13 +1,11 @@
1
- import { injected } from 'wagmi/connectors';
2
- import { isProviderExistsEIP6963, getTargetEIP6963 } from '@reef-knot/wallets-helpers';
1
+ import { injected, metaMask } from 'wagmi/connectors';
2
+ import { isProviderExistsEIP6963 } from '@reef-knot/wallets-helpers';
3
3
  import Memo from './icons/metamask.svg.js';
4
4
  import Memo$1 from './icons/metamask-inverted.svg.js';
5
5
 
6
6
  const id = 'metaMask';
7
7
  const name = 'MetaMask';
8
8
  const rdns = 'io.metamask';
9
- const currentHref = globalThis.window ? globalThis.window.location.hostname + globalThis.window.location.pathname // encoding not supported
10
- : '';
11
9
  const MetaMask = ({
12
10
  providersStore
13
11
  }) => ({
@@ -19,14 +17,7 @@ const MetaMask = ({
19
17
  dark: Memo$1
20
18
  },
21
19
  detector: () => isProviderExistsEIP6963(providersStore, rdns),
22
- downloadURLs: {
23
- default: 'https://metamask.io/download/'
24
- },
25
- deeplink: `https://metamask.app.link/dapp/${currentHref}`,
26
- createConnectorFn: injected({
27
- target: () => getTargetEIP6963(providersStore, rdns),
28
- shimDisconnect: true
29
- })
20
+ createConnectorFn: metaMask()
30
21
  });
31
22
 
32
23
  export { MetaMask, id, name, rdns };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reef-knot/wallet-adapter-metamask",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "exports": {