File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
machine :
2
2
node :
3
- version : 8.2.0
3
+ version : 6.12.3
4
4
dependencies :
5
5
pre :
6
6
-
npm install -g [email protected]
Original file line number Diff line number Diff line change @@ -72,14 +72,14 @@ export function isRefSelector (refOptionsObject: any) {
72
72
}
73
73
74
74
const validFindKeys = [ 'ref' ]
75
- const entries = Object . entries ( refOptionsObject )
76
-
77
- if ( ! entries . length ) {
75
+ const keys = Object . keys ( refOptionsObject )
76
+ if ( ! keys . length ) {
78
77
return false
79
78
}
80
79
81
- const isValid = entries . every ( ( [ key , value ] ) => {
82
- return validFindKeys . includes ( key ) && typeof value === 'string'
80
+ const isValid = Object . keys ( refOptionsObject ) . every ( ( key ) => {
81
+ return validFindKeys . includes ( key ) &&
82
+ typeof refOptionsObject [ key ] === 'string'
83
83
} )
84
84
85
85
return isValid
You can’t perform that action at this time.
0 commit comments