File tree Expand file tree Collapse file tree 5 files changed +26
-16
lines changed
@isaacs/cliui/node_modules/ansi-regex
wrap-ansi/node_modules/ansi-regex Expand file tree Collapse file tree 5 files changed +26
-16
lines changed Original file line number Diff line number Diff line change 11export default function ansiRegex ( { onlyFirst = false } = { } ) {
2+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
3+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)' ;
24 const pattern = [
3- ' [\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)' ,
4- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry =><~]))'
5+ ` [\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ ST } )` ,
6+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy =><~]))' ,
57 ] . join ( '|' ) ;
68
79 return new RegExp ( pattern , onlyFirst ? undefined : 'g' ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " ansi-regex" ,
3- "version" : " 6.0.1 " ,
3+ "version" : " 6.1.0 " ,
44 "description" : " Regular expression for matching ANSI escape codes" ,
55 "license" : " MIT" ,
66 "repository" : " chalk/ansi-regex" ,
1212 },
1313 "type" : " module" ,
1414 "exports" : " ./index.js" ,
15+ "types" : " ./index.d.ts" ,
16+ "sideEffects" : false ,
1517 "engines" : {
1618 "node" : " >=12"
1719 },
5153 " pattern"
5254 ],
5355 "devDependencies" : {
56+ "ansi-escapes" : " ^5.0.0" ,
5457 "ava" : " ^3.15.0" ,
55- "tsd" : " ^0.14 .0" ,
56- "xo" : " ^0.38 .2"
58+ "tsd" : " ^0.21 .0" ,
59+ "xo" : " ^0.54 .2"
5760 }
5861}
Original file line number Diff line number Diff line change 11export default function ansiRegex ( { onlyFirst = false } = { } ) {
2+ // Valid string terminator sequences are BEL, ESC\, and 0x9c
3+ const ST = '(?:\\u0007|\\u001B\\u005C|\\u009C)' ;
24 const pattern = [
3- ' [\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)' ,
4- '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry =><~]))'
5+ ` [\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?${ ST } )` ,
6+ '(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy =><~]))' ,
57 ] . join ( '|' ) ;
68
79 return new RegExp ( pattern , onlyFirst ? undefined : 'g' ) ;
Original file line number Diff line number Diff line change 11{
22 "name" : " ansi-regex" ,
3- "version" : " 6.0.1 " ,
3+ "version" : " 6.1.0 " ,
44 "description" : " Regular expression for matching ANSI escape codes" ,
55 "license" : " MIT" ,
66 "repository" : " chalk/ansi-regex" ,
1212 },
1313 "type" : " module" ,
1414 "exports" : " ./index.js" ,
15+ "types" : " ./index.d.ts" ,
16+ "sideEffects" : false ,
1517 "engines" : {
1618 "node" : " >=12"
1719 },
5153 " pattern"
5254 ],
5355 "devDependencies" : {
56+ "ansi-escapes" : " ^5.0.0" ,
5457 "ava" : " ^3.15.0" ,
55- "tsd" : " ^0.14 .0" ,
56- "xo" : " ^0.38 .2"
58+ "tsd" : " ^0.21 .0" ,
59+ "xo" : " ^0.54 .2"
5760 }
5861}
Original file line number Diff line number Diff line change 29772977 }
29782978 },
29792979 "node_modules/@isaacs/cliui/node_modules/ansi-regex": {
2980- "version": "6.0.1 ",
2981- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1 .tgz",
2982- "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA ==",
2980+ "version": "6.1.0 ",
2981+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0 .tgz",
2982+ "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA ==",
29832983 "inBundle": true,
29842984 "license": "MIT",
29852985 "engines": {
1815718157 }
1815818158 },
1815918159 "node_modules/wrap-ansi/node_modules/ansi-regex": {
18160- "version": "6.0.1 ",
18161- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.0.1 .tgz",
18162- "integrity": "sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA ==",
18160+ "version": "6.1.0 ",
18161+ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0 .tgz",
18162+ "integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA ==",
1816318163 "inBundle": true,
1816418164 "license": "MIT",
1816518165 "engines": {
You can’t perform that action at this time.
0 commit comments