Commit 94d6ee7 1 parent 902cb80 commit 94d6ee7 Copy full SHA for 94d6ee7
File tree 7 files changed +23
-13
lines changed
7 files changed +23
-13
lines changed Original file line number Diff line number Diff line change 2
2
"author" : " Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)" ,
3
3
"name" : " glob" ,
4
4
"description" : " the most correct and second fastest glob implementation in JavaScript" ,
5
- "version" : " 10.2.2 " ,
5
+ "version" : " 10.2.4 " ,
6
6
"bin" : " ./dist/cjs/src/bin.js" ,
7
7
"repository" : {
8
8
"type" : " git" ,
63
63
"foreground-child" : " ^3.1.0" ,
64
64
"jackspeak" : " ^2.0.3" ,
65
65
"minimatch" : " ^9.0.0" ,
66
- "minipass" : " ^5.0.0" ,
66
+ "minipass" : " ^5.0.0 || ^6.0.0 " ,
67
67
"path-scurry" : " ^1.7.0"
68
68
},
69
69
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -130,14 +130,19 @@ class Glob {
130
130
} ) ;
131
131
}
132
132
this . nocase = this . scurry . nocase ;
133
+ // If you do nocase:true on a case-sensitive file system, then
134
+ // we need to use regexps instead of strings for non-magic
135
+ // path portions, because statting `aBc` won't return results
136
+ // for the file `AbC` for example.
137
+ const nocaseMagicOnly = this . platform === 'darwin' || this . platform === 'win32' ;
133
138
const mmo = {
134
139
// default nocase based on platform
135
140
...opts ,
136
141
dot : this . dot ,
137
142
matchBase : this . matchBase ,
138
143
nobrace : this . nobrace ,
139
144
nocase : this . nocase ,
140
- nocaseMagicOnly : true ,
145
+ nocaseMagicOnly,
141
146
nocomment : true ,
142
147
noext : this . noext ,
143
148
nonegate : true ,
Original file line number Diff line number Diff line change @@ -127,14 +127,19 @@ export class Glob {
127
127
} ) ;
128
128
}
129
129
this . nocase = this . scurry . nocase ;
130
+ // If you do nocase:true on a case-sensitive file system, then
131
+ // we need to use regexps instead of strings for non-magic
132
+ // path portions, because statting `aBc` won't return results
133
+ // for the file `AbC` for example.
134
+ const nocaseMagicOnly = this . platform === 'darwin' || this . platform === 'win32' ;
130
135
const mmo = {
131
136
// default nocase based on platform
132
137
...opts ,
133
138
dot : this . dot ,
134
139
matchBase : this . matchBase ,
135
140
nobrace : this . nobrace ,
136
141
nocase : this . nocase ,
137
- nocaseMagicOnly : true ,
142
+ nocaseMagicOnly,
138
143
nocomment : true ,
139
144
noext : this . noext ,
140
145
nonegate : true ,
Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 10.2.1 " ,
2
+ "version" : " 10.2.3 " ,
3
3
"type" : " module"
4
4
}
Original file line number Diff line number Diff line change 2
2
"author" : " Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)" ,
3
3
"name" : " glob" ,
4
4
"description" : " the most correct and second fastest glob implementation in JavaScript" ,
5
- "version" : " 10.2.2 " ,
5
+ "version" : " 10.2.4 " ,
6
6
"bin" : " ./dist/cjs/src/bin.js" ,
7
7
"repository" : {
8
8
"type" : " git" ,
63
63
"foreground-child" : " ^3.1.0" ,
64
64
"jackspeak" : " ^2.0.3" ,
65
65
"minimatch" : " ^9.0.0" ,
66
- "minipass" : " ^5.0.0" ,
66
+ "minipass" : " ^5.0.0 || ^6.0.0 " ,
67
67
"path-scurry" : " ^1.7.0"
68
68
},
69
69
"devDependencies" : {
Original file line number Diff line number Diff line change 99
99
"columnify": "^1.6.0",
100
100
"fastest-levenshtein": "^1.0.16",
101
101
"fs-minipass": "^3.0.2",
102
- "glob": "^10.2.2 ",
102
+ "glob": "^10.2.4 ",
103
103
"graceful-fs": "^4.2.11",
104
104
"hosted-git-info": "^6.1.1",
105
105
"ini": "^4.1.0",
5730
5730
"dev": true
5731
5731
},
5732
5732
"node_modules/glob": {
5733
- "version": "10.2.2 ",
5734
- "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.2 .tgz",
5735
- "integrity": "sha512-Xsa0BcxIC6th9UwNjZkhrMtNo/MnyRL8jGCP+uEwhA5oFOCY1f2s1/oNKY47xQ0Bg5nkjsfAEIej1VeH62bDDQ ==",
5733
+ "version": "10.2.4 ",
5734
+ "resolved": "https://registry.npmjs.org/glob/-/glob-10.2.4 .tgz",
5735
+ "integrity": "sha512-fDboBse/sl1oXSLhIp0FcCJgzW9KmhC/q8ULTKC82zc+DL3TL7FNb8qlt5qqXN53MsKEUSIcb+7DLmEygOE5Yw ==",
5736
5736
"inBundle": true,
5737
5737
"dependencies": {
5738
5738
"foreground-child": "^3.1.0",
5739
5739
"jackspeak": "^2.0.3",
5740
5740
"minimatch": "^9.0.0",
5741
- "minipass": "^5.0.0",
5741
+ "minipass": "^5.0.0 || ^6.0.0 ",
5742
5742
"path-scurry": "^1.7.0"
5743
5743
},
5744
5744
"bin": {
Original file line number Diff line number Diff line change 68
68
"columnify" : " ^1.6.0" ,
69
69
"fastest-levenshtein" : " ^1.0.16" ,
70
70
"fs-minipass" : " ^3.0.2" ,
71
- "glob" : " ^10.2.2 " ,
71
+ "glob" : " ^10.2.4 " ,
72
72
"graceful-fs" : " ^4.2.11" ,
73
73
"hosted-git-info" : " ^6.1.1" ,
74
74
"ini" : " ^4.1.0" ,
You can’t perform that action at this time.
0 commit comments