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 11machine :
22 node :
3- version : 8.2.0
3+ version : 6.12.3
44dependencies :
55 pre :
66 - npm install -g npm@5.2.0
Original file line number Diff line number Diff line change @@ -72,14 +72,14 @@ export function isRefSelector (refOptionsObject: any) {
7272 }
7373
7474 const validFindKeys = [ 'ref' ]
75- const entries = Object . entries ( refOptionsObject )
76-
77- if ( ! entries . length ) {
75+ const keys = Object . keys ( refOptionsObject )
76+ if ( ! keys . length ) {
7877 return false
7978 }
8079
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'
8383 } )
8484
8585 return isValid
You can’t perform that action at this time.
0 commit comments