File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 29
29
"angular" : " >=1.3.8 <1.6" ,
30
30
"selectize" : " ~0.12.1" ,
31
31
"fontawesome" : " ~4.3.0" ,
32
- "lodash" : " ~3.10.1 "
32
+ "lodash" : " ~4.17.4 "
33
33
},
34
34
"devDependencies" : {
35
35
"patternfly" : " 3.5.1"
Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ LabelSelector.prototype.each = function(fn) {
87
87
LabelSelector . prototype . select = function ( resources ) {
88
88
// If passed an array, return an array.
89
89
if ( _ . isArray ( resources ) ) {
90
- return _ . filter ( resources , this . matches , this ) ;
90
+ return _ . filter ( resources , _ . bind ( this . matches , this ) ) ;
91
91
}
92
92
93
93
// Otherwise handle it as a map.
94
- return _ . pick ( resources , this . matches , this ) ;
94
+ return _ . pickBy ( resources , _ . bind ( this . matches , this ) ) ;
95
95
} ;
96
96
97
97
LabelSelector . prototype . matches = function ( resource ) {
@@ -151,7 +151,7 @@ LabelSelector.prototype.hasConjunct = function(conjunct) {
151
151
} ;
152
152
153
153
LabelSelector . prototype . findConjunctsMatching = function ( operator , key ) {
154
- return _ . pick ( this . _conjuncts , _ . matches ( { operator : operator , key : key } ) ) ;
154
+ return _ . pickBy ( this . _conjuncts , _ . matches ( { operator : operator , key : key } ) ) ;
155
155
} ;
156
156
157
157
// Test whether this label selector covers the given selector
You can’t perform that action at this time.
0 commit comments