Skip to content

Commit

Permalink
build(deps): bump swr from 2.1.2 to 2.3.0 (#2174)
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanshparashar authored Jan 10, 2025
1 parent 6a4430c commit a45c962
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion packages/arb-token-bridge-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"react-use": "^17.6.0",
"react-virtualized": "^9.22.3",
"sharp": "^0.33.5",
"swr": "^2.1.2",
"swr": "^2.3.0",
"tailwind-merge": "^2.5.5",
"use-query-params": "^2.2.1",
"wagmi": "^0.12.18",
Expand Down
7 changes: 5 additions & 2 deletions packages/arb-token-bridge-ui/src/hooks/useAccountIsBlocked.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ export function useAccountIsBlocked() {
return null
}

return [address.toLowerCase(), 'useAccountIsBlocked']
return [
address.toLocaleLowerCase() as Address,
'useAccountIsBlocked'
] as const
}, [address])

const { data: isBlocked } = useSWRImmutable<boolean>(
const { data: isBlocked } = useSWRImmutable(
queryKey,
// Extracts the first element of the query key as the fetcher param
([_address]) => fetcher(_address)
Expand Down
16 changes: 11 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13600,12 +13600,13 @@ supports-preserve-symlinks-flag@^1.0.0:
resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz"
integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==

swr@^2.1.2:
version "2.1.5"
resolved "https://registry.npmjs.org/swr/-/swr-2.1.5.tgz"
integrity sha512-/OhfZMcEpuz77KavXST5q6XE9nrOBOVcBLWjMT+oAE/kQHyE3PASrevXCtQDZ8aamntOfFkbVJp7Il9tNBQWrw==
swr@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/swr/-/swr-2.3.0.tgz#66fa45023efd4199f4e7ce608c255709a135943d"
integrity sha512-NyZ76wA4yElZWBHzSgEJc28a0u6QZvhb6w0azeL2k7+Q1gAzVK+IqQYXhVOC/mzi+HZIozrZvBVeSeOZNR2bqA==
dependencies:
use-sync-external-store "^1.2.0"
dequal "^2.0.3"
use-sync-external-store "^1.4.0"

symbol-observable@^4.0.0:
version "4.0.0"
Expand Down Expand Up @@ -14363,6 +14364,11 @@ [email protected], use-sync-external-store@^1.2.0:
resolved "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz"
integrity sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==

use-sync-external-store@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.4.0.tgz#adbc795d8eeb47029963016cefdf89dc799fcebc"
integrity sha512-9WXSPC5fMv61vaupRkCKCxsPxBocVnwakBEkMIHHpkTTg6icbJtg6jzgtLDm4bl3cSHAca52rYWih0k4K3PfHw==

user-home@^2.0.0:
version "2.0.0"
resolved "https://registry.npmjs.org/user-home/-/user-home-2.0.0.tgz"
Expand Down

0 comments on commit a45c962

Please sign in to comment.