File tree 3 files changed +9
-17
lines changed
3 files changed +9
-17
lines changed Original file line number Diff line number Diff line change 28
28
"@semantic-release/release-notes-generator" : " ^9.0.2" ,
29
29
"@types/jest" : " ^26.0.20" ,
30
30
"@types/lodash" : " ^4.14.168" ,
31
- "@types/micromatch " : " ^4.0.1 " ,
31
+ "@types/picomatch " : " ^2.2.2 " ,
32
32
"@types/node" : " ^10.5.3" ,
33
33
"@typescript-eslint/eslint-plugin" : " ^4.17.0" ,
34
34
"@typescript-eslint/parser" : " ^4.17.0" ,
53
53
"await-lock" : " ^2.0.1" ,
54
54
"csv-parse" : " ^4.15.3" ,
55
55
"expression-eval" : " ^2.0.0" ,
56
- "micromatch " : " ^4.0.2 "
56
+ "picomatch " : " ^2.2.3 "
57
57
},
58
58
"files" : [
59
59
" lib" ,
Original file line number Diff line number Diff line change 14
14
15
15
import * as rbac from '../rbac' ;
16
16
import { ip } from './ip' ;
17
- import { isMatch } from 'micromatch ' ;
17
+ import * as picomatch from 'picomatch ' ;
18
18
19
19
// regexMatch determines whether key1 matches the pattern of key2 in regular expression.
20
20
function regexMatch ( key1 : string , key2 : string ) : boolean {
@@ -230,8 +230,7 @@ function ipMatchFunc(...args: any[]): boolean {
230
230
* ```
231
231
*/
232
232
function globMatch ( string : string , pattern : string ) : boolean {
233
- const ok = isMatch ( string , pattern ) ;
234
- return ok ;
233
+ return picomatch ( pattern ) ( string ) ;
235
234
}
236
235
237
236
// generateGFunction is the factory method of the g(_, _) function.
Original file line number Diff line number Diff line change 959
959
dependencies :
960
960
" @babel/types" " ^7.3.0"
961
961
962
- " @types/braces@* " :
963
- version "3.0.0"
964
- resolved "https://registry.npmjs.org/@types/braces/-/braces-3.0.0.tgz#7da1c0d44ff1c7eb660a36ec078ea61ba7eb42cb"
965
- integrity sha512-TbH79tcyi9FHwbyboOKeRachRq63mSuWYXOflsNO9ZyE5ClQ/JaozNKl+aWUq87qPNsXasXxi2AbgfwIJ+8GQw==
966
-
967
962
" @types/graceful-fs@^4.1.2 " :
968
963
version "4.1.5"
969
964
resolved "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz#21ffba0d98da4350db64891f92a9e5db3cdb4e15"
1008
1003
resolved "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.168.tgz#fe24632e79b7ade3f132891afff86caa5e5ce008"
1009
1004
integrity sha512-oVfRvqHV/V6D1yifJbVRU3TMp8OT6o6BG+U9MkwuJ3U8/CsDHvalRpsxBqivn71ztOFZBTfJMvETbqHiaNSj7Q==
1010
1005
1011
- " @types/micromatch@^4.0.1 " :
1012
- version "4.0.1"
1013
- resolved "https://registry.npmjs.org/@types/micromatch/-/micromatch-4.0.1.tgz#9381449dd659fc3823fd2a4190ceacc985083bc7"
1014
- integrity sha512-my6fLBvpY70KattTNzYOK6KU1oR1+UCz9ug/JbcF5UrEmeCt9P7DV2t7L8+t18mMPINqGQCE4O8PLOPbI84gxw==
1015
- dependencies :
1016
- " @types/braces" " *"
1017
-
1018
1006
" @types/minimatch@^3.0.3 " :
1019
1007
version "3.0.4"
1020
1008
resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.4.tgz#f0ec25dbf2f0e4b18647313ac031134ca5b24b21"
1045
1033
resolved "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz#2f8bb441434d163b35fb8ffdccd7138927ffb8c0"
1046
1034
integrity sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==
1047
1035
1036
+ " @types/picomatch@^2.2.2 " :
1037
+ version "2.2.2"
1038
+ resolved "https://registry.npmjs.org/@types/picomatch/-/picomatch-2.2.2.tgz#e0022f77aa64475ff20326e9ff9728aaae191503"
1039
+ integrity sha512-XygLVvHxaFK0w9sDf7Mk1wrugM0ig44Y5Fb2NmQcvznPkEfENprS6GhXVoO3AGicbhkRrmu9J7Lu7FFKqkCS8g==
1040
+
1048
1041
" @types/prettier@^2.0.0 " :
1049
1042
version "2.2.3"
1050
1043
resolved "https://registry.npmjs.org/@types/prettier/-/prettier-2.2.3.tgz#ef65165aea2924c9359205bf748865b8881753c0"
You can’t perform that action at this time.
0 commit comments