File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 93
93
"@babel/core" : " ^7.12.3" ,
94
94
"@commitlint/cli" : " ^16.2.3" ,
95
95
"@commitlint/config-conventional" : " ^16.2.1" ,
96
- "@committed/components" : " ^7.0.1 " ,
96
+ "@committed/components" : " ^7.0.2 " ,
97
97
"@fontsource/dosis" : " ^4.5.7" ,
98
98
"@fontsource/inter" : " ^4.5.7" ,
99
99
"@size-limit/preset-small-lib" : " ^4.6.2" ,
136
136
"typescript" : " ^4.6.3"
137
137
},
138
138
"dependencies" : {}
139
- }
139
+ }
Original file line number Diff line number Diff line change @@ -87,10 +87,10 @@ export const Usage = () => {
87
87
const { data : countries } = useSwr <
88
88
Array < { name : string ; alpha3Code : string } >
89
89
> (
90
- [ 'https://restcountries.eu/rest /v2/name/' , debouncedName ] ,
90
+ [ 'https://restcountries.com /v2/name/' , debouncedName ] ,
91
91
( url : string , name : string ) => {
92
92
setCalls ( calls + 1 )
93
- return fetch ( `${ url } ${ name } ` ) . then ( ( res ) => res . json ( ) )
93
+ return fetch ( `${ url } ${ name . toLowerCase ( ) } ` ) . then ( ( res ) => res . json ( ) )
94
94
} ,
95
95
{ refreshInterval : 0 , shouldRetryOnError : false }
96
96
)
@@ -154,10 +154,10 @@ export const Flush = () => {
154
154
const { data : countries } = useSwr <
155
155
Array < { name : string ; alpha3Code : string ; capital : string } >
156
156
> (
157
- [ 'https://restcountries.eu/rest /v2/capital/' , debouncedName ] ,
157
+ [ 'https://restcountries.com /v2/capital/' , debouncedName ] ,
158
158
( url : string , name : string ) => {
159
159
setCalls ( calls + 1 )
160
- return fetch ( `${ url } ${ name } ` ) . then ( ( res ) => res . json ( ) )
160
+ return fetch ( `${ url } ${ name . toLowerCase ( ) } ` ) . then ( ( res ) => res . json ( ) )
161
161
} ,
162
162
{ refreshInterval : 0 , shouldRetryOnError : false }
163
163
)
Original file line number Diff line number Diff line change 2170
2170
dependencies:
2171
2171
chalk "^4.0.0"
2172
2172
2173
- "@committed/components@^7.0.1 ":
2174
- version "7.0.1 "
2175
- resolved "https://registry.yarnpkg.com/@committed/components/-/components-7.0.1 .tgz#b0ff39f7c6a7dc364507a6c29c21a54cf0823e46 "
2176
- integrity sha512-rMw2oCHqtA6mo41S73U+sR7o/bMYhKVw69F37dWnN/jhpKRP1evUgVbnGFbNLjwE0xhwY76JDfSRg3fxgQwAQg ==
2173
+ "@committed/components@^7.0.2 ":
2174
+ version "7.0.2 "
2175
+ resolved "https://registry.yarnpkg.com/@committed/components/-/components-7.0.2 .tgz#cb8ffb2e9b2f3d19a9ed5363cabeef63bfcee114 "
2176
+ integrity sha512-JcgAPXm88UnIAXCS57LkLKiRaEzCEhv8ctYiTNXRH9PAq5BH8ckDWk10Gm3RqK+lgixWr3dSroojLKg0za/CAw ==
2177
2177
dependencies:
2178
2178
"@committed/hooks" "^0.5.0"
2179
2179
"@mdi/js" "^6.6.96"
You can’t perform that action at this time.
0 commit comments