File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 1
1
import path from 'node:path' ;
2
2
import fs from 'node:fs' ;
3
3
import { globbySync , isDynamicPattern } from 'globby' ;
4
- import junk from 'junk' ;
4
+ import { isNotJunk } from 'junk' ;
5
5
6
6
export default class GlobPattern {
7
7
/**
@@ -17,8 +17,8 @@ export default class GlobPattern {
17
17
18
18
if (
19
19
! isDynamicPattern ( pattern )
20
- && fs . existsSync ( pattern )
21
- && fs . lstatSync ( pattern ) . isDirectory ( )
20
+ && fs . existsSync ( pattern )
21
+ && fs . lstatSync ( pattern ) . isDirectory ( )
22
22
) {
23
23
this . path = [ pattern , '**' ] . join ( '/' ) ;
24
24
}
@@ -53,7 +53,7 @@ export default class GlobPattern {
53
53
} ) ;
54
54
55
55
if ( this . options . ignoreJunk ) {
56
- matches = matches . filter ( file => junk . not ( path . basename ( file ) ) ) ;
56
+ matches = matches . filter ( file => isNotJunk ( path . basename ( file ) ) ) ;
57
57
}
58
58
59
59
return matches ;
Original file line number Diff line number Diff line change 48
48
"dependencies" : {
49
49
"arrify" : " ^3.0.0" ,
50
50
"cp-file" : " ^9.1.0" ,
51
- "globby" : " ^12.0.0 " ,
52
- "junk" : " ^3.1 .0" ,
51
+ "globby" : " ^12.0.2 " ,
52
+ "junk" : " ^4.0 .0" ,
53
53
"nested-error-stacks" : " ^2.1.0" ,
54
- "p-filter" : " ^2.1 .0" ,
55
- "p-map" : " ^5.0 .0"
54
+ "p-filter" : " ^3.0 .0" ,
55
+ "p-map" : " ^5.3 .0"
56
56
},
57
57
"devDependencies" : {
58
58
"ava" : " ^3.15.0" ,
59
59
"proxyquire" : " ^2.1.3" ,
60
60
"rimraf" : " ^3.0.2" ,
61
- "tempy" : " ^1 .0.1 " ,
62
- "tsd" : " ^0.17 .0" ,
63
- "typescript" : " ^4.3.5 " ,
61
+ "tempy" : " ^2 .0.0 " ,
62
+ "tsd" : " ^0.18 .0" ,
63
+ "typescript" : " ^4.4.4 " ,
64
64
"xo" : " ^0.42.0"
65
65
}
66
66
}
You can’t perform that action at this time.
0 commit comments