-
Notifications
You must be signed in to change notification settings - Fork 5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/mark-all-as-read-button
- Loading branch information
Showing
23 changed files
with
222 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.yarn/patches/@metamask-assets-controllers-patch-26d4328777.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/dist/chunk-6W5EQ3JQ.js b/dist/chunk-6W5EQ3JQ.js | ||
index 0dc70ec5f77484f8d4021bdfff7bca90dd87bd51..81c2d0d1e6a0ad6db8b361423774b9a843fb46f6 100644 | ||
--- a/dist/chunk-6W5EQ3JQ.js | ||
+++ b/dist/chunk-6W5EQ3JQ.js | ||
@@ -380,7 +380,7 @@ fetchAndMapExchangeRatesForSupportedNativeCurrency_fn = async function({ | ||
(obj, [tokenAddress, token]) => { | ||
obj = { | ||
...obj, | ||
- [tokenAddress.toLowerCase()]: { ...token } | ||
+ [tokenAddress]: { ...token } | ||
}; | ||
return obj; | ||
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,7 @@ | |
"[email protected]": "^7.5.4", | ||
"@trezor/schema-utils@npm:1.0.2": "patch:@trezor/schema-utils@npm%3A1.0.2#~/.yarn/patches/@trezor-schema-utils-npm-1.0.2-7dd48689b2.patch", | ||
"lavamoat-core@npm:^15.1.1": "patch:lavamoat-core@npm%3A15.1.1#~/.yarn/patches/lavamoat-core-npm-15.1.1-51fbe39988.patch", | ||
"@metamask/snaps-sdk": "^4.3.0", | ||
"@metamask/snaps-sdk": "^4.4.2", | ||
"@metamask/transaction-controller": "^32.0.0", | ||
"@babel/runtime@npm:^7.7.6": "patch:@babel/runtime@npm%3A7.24.0#~/.yarn/patches/@babel-runtime-npm-7.24.0-7eb1dd11a2.patch", | ||
"@babel/runtime@npm:^7.9.2": "patch:@babel/runtime@npm%3A7.24.0#~/.yarn/patches/@babel-runtime-npm-7.24.0-7eb1dd11a2.patch", | ||
|
@@ -252,7 +252,8 @@ | |
"sucrase@npm:3.34.0": "^3.35.0", | ||
"@expo/config/glob": "^10.3.10", | ||
"@expo/config-plugins/glob": "^10.3.10", | ||
"@metamask/network-controller": "patch:@metamask/network-controller@npm%3A18.1.2#~/.yarn/patches/@metamask-network-controller-npm-18.1.2-1bcb8d8610.patch" | ||
"@metamask/network-controller": "patch:@metamask/network-controller@npm%3A18.1.2#~/.yarn/patches/@metamask-network-controller-npm-18.1.2-1bcb8d8610.patch", | ||
"@solana/web3.js/rpc-websockets": "^8.0.1" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "patch:@babel/runtime@npm%3A7.24.0#~/.yarn/patches/@babel-runtime-npm-7.24.0-7eb1dd11a2.patch", | ||
|
@@ -284,7 +285,7 @@ | |
"@metamask/address-book-controller": "^4.0.1", | ||
"@metamask/announcement-controller": "^6.1.0", | ||
"@metamask/approval-controller": "^6.0.1", | ||
"@metamask/assets-controllers": "patch:@metamask/assets-controllers@npm%3A30.0.0#~/.yarn/patches/@metamask-assets-controllers-npm-30.0.0-8747c20871.patch", | ||
"@metamask/assets-controllers": "patch:@metamask/assets-controllers@patch%3A@metamask/assets-controllers@npm%253A30.0.0%23~/.yarn/patches/@metamask-assets-controllers-npm-30.0.0-8747c20871.patch%3A%3Aversion=30.0.0&hash=9269c8#~/.yarn/patches/@metamask-assets-controllers-patch-26d4328777.patch", | ||
"@metamask/base-controller": "^4.1.0", | ||
"@metamask/browser-passworder": "^4.3.0", | ||
"@metamask/contract-metadata": "^2.5.0", | ||
|
@@ -331,11 +332,11 @@ | |
"@metamask/selected-network-controller": "^13.0.0", | ||
"@metamask/signature-controller": "^14.0.1", | ||
"@metamask/smart-transactions-controller": "^10.1.2", | ||
"@metamask/snaps-controllers": "^8.2.0", | ||
"@metamask/snaps-execution-environments": "^6.2.0", | ||
"@metamask/snaps-rpc-methods": "^9.1.0", | ||
"@metamask/snaps-sdk": "^4.3.0", | ||
"@metamask/snaps-utils": "^7.4.0", | ||
"@metamask/snaps-controllers": "^8.4.0", | ||
"@metamask/snaps-execution-environments": "^6.3.0", | ||
"@metamask/snaps-rpc-methods": "^9.1.2", | ||
"@metamask/snaps-sdk": "^4.4.2", | ||
"@metamask/snaps-utils": "^7.5.0", | ||
"@metamask/transaction-controller": "^32.0.0", | ||
"@metamask/user-operation-controller": "^10.0.0", | ||
"@metamask/utils": "^8.2.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { env } from 'process'; | ||
|
||
type HeadlessCapableServiceName = 'SELENIUM' | 'PLAYWRIGHT'; | ||
|
||
export function isHeadless(serviceName: HeadlessCapableServiceName): boolean { | ||
if (serviceName) { | ||
const serviceKey = `${serviceName}_HEADLESS`; | ||
if (env[serviceKey]) { | ||
return parseBoolean(env[serviceKey]); | ||
} | ||
} | ||
return Boolean(env.HEADLESS) && parseBoolean(env.HEADLESS); | ||
} | ||
|
||
export function parseBoolean(value: undefined | string): boolean { | ||
if (!value) { | ||
return false; | ||
} | ||
if (typeof value === 'boolean') { | ||
return value; | ||
} | ||
if (typeof value !== 'string') { | ||
throw new Error(`Not-a-Boolean: '${value}'`); | ||
} | ||
switch (value.toLowerCase().trim()) { | ||
case 'false': | ||
case '0': | ||
case '': | ||
return false; | ||
case 'true': | ||
case '1': | ||
return true; | ||
default: | ||
throw new Error(`Not-a-Boolean: '${value}'`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.