@reef-knot/wallet-adapter-dapp-browser-injected 4.2.0-alpha.1 → 4.2.0-alpha.2
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/index.js +2 -8
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -7,10 +7,7 @@ const getDAppBrowserInjectedConnector = () => injected({
|
|
|
7
7
|
target: () => ({
|
|
8
8
|
id,
|
|
9
9
|
name,
|
|
10
|
-
provider: () =>
|
|
11
|
-
var _a;
|
|
12
|
-
return (_a = globalThis.window) === null || _a === void 0 ? void 0 : _a.ethereum;
|
|
13
|
-
}
|
|
10
|
+
provider: () => globalThis.window?.ethereum
|
|
14
11
|
})
|
|
15
12
|
});
|
|
16
13
|
const DAppBrowserInjected = () => ({
|
|
@@ -18,10 +15,7 @@ const DAppBrowserInjected = () => ({
|
|
|
18
15
|
walletId: id,
|
|
19
16
|
type: injected.type,
|
|
20
17
|
autoConnectOnly: true,
|
|
21
|
-
detector: () =>
|
|
22
|
-
var _a;
|
|
23
|
-
return !!((_a = globalThis.window) === null || _a === void 0 ? void 0 : _a.ethereum) && isMobileOrTablet;
|
|
24
|
-
},
|
|
18
|
+
detector: () => !!globalThis.window?.ethereum && isMobileOrTablet,
|
|
25
19
|
createConnectorFn: getDAppBrowserInjectedConnector()
|
|
26
20
|
});
|
|
27
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reef-knot/wallet-adapter-dapp-browser-injected",
|
|
3
|
-
"version": "4.2.0-alpha.
|
|
3
|
+
"version": "4.2.0-alpha.2",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"lint": "eslint --ext ts,tsx,js,mjs ."
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@reef-knot/types": "4.2.0-alpha.
|
|
41
|
-
"@reef-knot/wallets-helpers": "2.3.0-alpha.
|
|
40
|
+
"@reef-knot/types": "4.2.0-alpha.2",
|
|
41
|
+
"@reef-knot/wallets-helpers": "2.3.0-alpha.2",
|
|
42
42
|
"@svgr/rollup": "^6.5.1",
|
|
43
43
|
"eslint-config-custom": "*"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@reef-knot/types": "4.2.0-alpha.
|
|
47
|
-
"@reef-knot/wallets-helpers": "2.3.0-alpha.
|
|
46
|
+
"@reef-knot/types": "4.2.0-alpha.2",
|
|
47
|
+
"@reef-knot/wallets-helpers": "2.3.0-alpha.2",
|
|
48
48
|
"@tanstack/react-query": "^5.29.0",
|
|
49
|
-
"wagmi": ">=
|
|
49
|
+
"wagmi": ">=3.3"
|
|
50
50
|
}
|
|
51
51
|
}
|