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 2929 "angular" : " >=1.3.8 <1.6" ,
3030 "selectize" : " ~0.12.1" ,
3131 "fontawesome" : " ~4.3.0" ,
32- "lodash" : " ~3.10.1 "
32+ "lodash" : " ~4.17.4 "
3333 },
3434 "devDependencies" : {
3535 "patternfly" : " 3.5.1"
Original file line number Diff line number Diff line change @@ -87,11 +87,11 @@ LabelSelector.prototype.each = function(fn) {
8787LabelSelector . prototype . select = function ( resources ) {
8888 // If passed an array, return an array.
8989 if ( _ . isArray ( resources ) ) {
90- return _ . filter ( resources , this . matches , this ) ;
90+ return _ . filter ( resources , _ . bind ( this . matches , this ) ) ;
9191 }
9292
9393 // Otherwise handle it as a map.
94- return _ . pick ( resources , this . matches , this ) ;
94+ return _ . pickBy ( resources , _ . bind ( this . matches , this ) ) ;
9595} ;
9696
9797LabelSelector . prototype . matches = function ( resource ) {
@@ -151,7 +151,7 @@ LabelSelector.prototype.hasConjunct = function(conjunct) {
151151} ;
152152
153153LabelSelector . 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 } ) ) ;
155155} ;
156156
157157// Test whether this label selector covers the given selector
You can’t perform that action at this time.
0 commit comments