@aptos-labs/wallet-adapter-core 2.3.0 → 2.3.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @aptos-labs/wallet-adapter-core
2
2
 
3
+ ## 2.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 06f334f: @aptos-labs/wallet-adapter-core:
8
+ Fixes ssr issue with checking for mobile wallets
9
+
10
+ @aptos-labs/wallet-adapter-mui-design:
11
+ Breaking:
12
+ When on a mobile phone on the native browser, we removed all wallets that are not able to be deep linked to.
13
+ The previous functionally would take them to the extension, which would not help users on mobile phones.
14
+
3
15
  ## 2.3.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.js CHANGED
@@ -210,7 +210,7 @@ function isInAppBrowser() {
210
210
  return isIphone || isAndroid;
211
211
  }
212
212
  function isRedirectable() {
213
- if (!navigator)
213
+ if (typeof navigator === "undefined" || !navigator)
214
214
  return false;
215
215
  return isMobile() && !isInAppBrowser();
216
216
  }
package/dist/index.mjs CHANGED
@@ -169,7 +169,7 @@ function isInAppBrowser() {
169
169
  return isIphone || isAndroid;
170
170
  }
171
171
  function isRedirectable() {
172
- if (!navigator)
172
+ if (typeof navigator === "undefined" || !navigator)
173
173
  return false;
174
174
  return isMobile() && !isInAppBrowser();
175
175
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/wallet-adapter-core",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "Aptos Wallet Adapter Core",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -18,7 +18,7 @@ export function isInAppBrowser(): boolean {
18
18
 
19
19
  export function isRedirectable(): boolean {
20
20
  // SSR: return false
21
- if (!navigator) return false;
21
+ if (typeof navigator === 'undefined' || !navigator) return false;
22
22
 
23
23
  // if we are on mobile and NOT in a in-app browser we will redirect to a wallet app
24
24