File tree 3 files changed +8
-5
lines changed
3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @web3-onboard/injected-wallets" ,
3
- "version" : " 2.0.1 " ,
3
+ "version" : " 2.0.2 " ,
4
4
"description" : " Injected wallets module for web3-onboard" ,
5
5
"module" : " dist/index.js" ,
6
6
"browser" : " dist/index.js" ,
31
31
"window" : " ^4.2.7"
32
32
},
33
33
"dependencies" : {
34
- "@web3-onboard/common" : " ^2.0.0 " ,
34
+ "@web3-onboard/common" : " ^2.0.2 " ,
35
35
"joi" : " ^17.4.2" ,
36
36
"lodash.uniqby" : " ^4.7.0"
37
37
}
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ export type InjectedProvider = ExternalProvider &
104
104
MeetOneProvider &
105
105
Record < string , boolean >
106
106
107
- export type WalletExclusions = {
107
+ export type WalletFilters = {
108
108
// A provider label mapped to a list of excluded platforms
109
109
// or a boolean indicating if it should be included.
110
110
[ key in ProviderLabel | string ] ?: Platform [ ] | boolean
@@ -118,7 +118,7 @@ export interface InjectedWalletOptions {
118
118
// or a boolean indicating if it should be included or not.
119
119
// By default all wallets listed in ./packages/injected/
120
120
// are included add them to here to remove them.
121
- filter ?: WalletExclusions
121
+ filter ?: WalletFilters
122
122
}
123
123
124
124
export interface InjectedWalletModule extends WalletModule {
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ const walletModule = Joi.object({
12
12
} )
13
13
14
14
const wallets = Joi . array ( ) . items ( walletModule )
15
- const filter = Joi . object ( ) . pattern ( / \w / , Joi . string ( ) )
15
+ const filter = Joi . object ( ) . pattern (
16
+ / \w + / ,
17
+ Joi . any ( ) . allow ( Joi . boolean ( ) , Joi . array ( ) . items ( Joi . string ( ) ) )
18
+ )
16
19
const walletOptions = Joi . object ( {
17
20
custom : wallets ,
18
21
filter
You can’t perform that action at this time.
0 commit comments