@broxus/evm-connect 1.7.5 → 1.7.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.
@@ -1,10 +1,10 @@
1
- import { isAndroid, isBrowser, isChrome, isFirefox, isIos, isMobile } from '@broxus/js-utils';
1
+ import { getUserAgent, isAndroid, isBrowser, isChrome, isFirefox, isIos, isMobile } from '@broxus/js-utils';
2
2
  export function getEvmProviderPlatformLink(links) {
3
3
  const [platform] = Array.from(new Map([
4
- ['android', isMobile(navigator.userAgent) && isAndroid(navigator.userAgent)],
5
- ['ios', isMobile(navigator.userAgent) && isIos(navigator.userAgent)],
6
- ['chromeExtension', isBrowser() && isChrome(navigator.userAgent)],
7
- ['firefoxExtension', isBrowser() && isFirefox(navigator.userAgent)],
4
+ ['android', isMobile(getUserAgent()) && isAndroid(getUserAgent())],
5
+ ['ios', isMobile(getUserAgent()) && isIos(getUserAgent())],
6
+ ['chromeExtension', isBrowser() && isChrome(getUserAgent())],
7
+ ['firefoxExtension', isBrowser() && isFirefox(getUserAgent())],
8
8
  ])).find(([, enabled]) => enabled) ?? [];
9
9
  return platform ? [platform, links[platform]] : undefined;
10
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broxus/evm-connect",
3
- "version": "1.7.5",
3
+ "version": "1.7.7",
4
4
  "description": "Ethereum wallets connector.",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -35,7 +35,8 @@
35
35
  "module": "./dist/esm/index.js",
36
36
  "types": "./dist/esm/index.d.ts",
37
37
  "sideEffects": [
38
- "*.css"
38
+ "*.css",
39
+ "*.scss"
39
40
  ],
40
41
  "engines": {
41
42
  "node": ">=16",
@@ -59,10 +60,10 @@
59
60
  "prepare": "npx yarn cleanup && npx yarn build"
60
61
  },
61
62
  "dependencies": {
62
- "@broxus/js-core": "^0.17.10",
63
- "@broxus/js-utils": "^1.3.9",
64
- "@broxus/react-components": "^0.19.6",
65
- "@broxus/react-uikit": "^0.15.1",
63
+ "@broxus/js-core": "^0.18.1",
64
+ "@broxus/js-utils": "^1.3.10",
65
+ "@broxus/react-components": "^0.19.8",
66
+ "@broxus/react-uikit": "^0.15.2",
66
67
  "@metamask/detect-provider": "^2.0.0",
67
68
  "@walletconnect/ethereum-provider": "^2.16.1",
68
69
  "classnames": "^2.5.1"
@@ -83,5 +84,5 @@
83
84
  "web3-types": "^1.x",
84
85
  "web3-utils": "^4.x"
85
86
  },
86
- "gitHead": "507ae292c8081fb4e3e30745b20e5750586ece5c"
87
+ "gitHead": "b23a9f55a95c35f5c66aa9e21ddca05fe945538e"
87
88
  }