Skip to content

Commit 1005efd

Browse files
committed
1 parent d00bf96 commit 1005efd

5 files changed

Lines changed: 32 additions & 18 deletions

File tree

node_modules/@isaacs/cliui/node_modules/strip-ansi/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export default function stripAnsi(string) {
77
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
88
}
99

10+
// Fast path: ANSI codes require ESC (7-bit) or CSI (8-bit) introducer
11+
if (!string.includes('\u001B') && !string.includes('\u009B')) {
12+
return string;
13+
}
14+
1015
// Even though the regex is global, we don't need to reset the `.lastIndex`
1116
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
1217
// and doing it manually has a performance penalty.

node_modules/@isaacs/cliui/node_modules/strip-ansi/package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strip-ansi",
3-
"version": "7.1.0",
3+
"version": "7.2.0",
44
"description": "Strip ANSI escape codes from a string",
55
"license": "MIT",
66
"repository": "chalk/strip-ansi",
@@ -12,6 +12,8 @@
1212
},
1313
"type": "module",
1414
"exports": "./index.js",
15+
"types": "./index.d.ts",
16+
"sideEffects": false,
1517
"engines": {
1618
"node": ">=12"
1719
},
@@ -47,11 +49,11 @@
4749
"text"
4850
],
4951
"dependencies": {
50-
"ansi-regex": "^6.0.1"
52+
"ansi-regex": "^6.2.2"
5153
},
5254
"devDependencies": {
53-
"ava": "^3.15.0",
54-
"tsd": "^0.17.0",
55-
"xo": "^0.44.0"
55+
"ava": "^6.4.1",
56+
"tsd": "^0.33.0",
57+
"xo": "^1.2.3"
5658
}
5759
}

node_modules/wrap-ansi/node_modules/strip-ansi/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ export default function stripAnsi(string) {
77
throw new TypeError(`Expected a \`string\`, got \`${typeof string}\``);
88
}
99

10+
// Fast path: ANSI codes require ESC (7-bit) or CSI (8-bit) introducer
11+
if (!string.includes('\u001B') && !string.includes('\u009B')) {
12+
return string;
13+
}
14+
1015
// Even though the regex is global, we don't need to reset the `.lastIndex`
1116
// because unlike `.exec()` and `.test()`, `.replace()` does it automatically
1217
// and doing it manually has a performance penalty.

node_modules/wrap-ansi/node_modules/strip-ansi/package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strip-ansi",
3-
"version": "7.1.0",
3+
"version": "7.2.0",
44
"description": "Strip ANSI escape codes from a string",
55
"license": "MIT",
66
"repository": "chalk/strip-ansi",
@@ -12,6 +12,8 @@
1212
},
1313
"type": "module",
1414
"exports": "./index.js",
15+
"types": "./index.d.ts",
16+
"sideEffects": false,
1517
"engines": {
1618
"node": ">=12"
1719
},
@@ -47,11 +49,11 @@
4749
"text"
4850
],
4951
"dependencies": {
50-
"ansi-regex": "^6.0.1"
52+
"ansi-regex": "^6.2.2"
5153
},
5254
"devDependencies": {
53-
"ava": "^3.15.0",
54-
"tsd": "^0.17.0",
55-
"xo": "^0.44.0"
55+
"ava": "^6.4.1",
56+
"tsd": "^0.33.0",
57+
"xo": "^1.2.3"
5658
}
5759
}

package-lock.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,13 +1335,13 @@
13351335
}
13361336
},
13371337
"node_modules/@isaacs/cliui/node_modules/strip-ansi": {
1338-
"version": "7.1.0",
1339-
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
1340-
"integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
1338+
"version": "7.2.0",
1339+
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
1340+
"integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
13411341
"inBundle": true,
13421342
"license": "MIT",
13431343
"dependencies": {
1344-
"ansi-regex": "^6.0.1"
1344+
"ansi-regex": "^6.2.2"
13451345
},
13461346
"engines": {
13471347
"node": ">=12"
@@ -17259,13 +17259,13 @@
1725917259
}
1726017260
},
1726117261
"node_modules/wrap-ansi/node_modules/strip-ansi": {
17262-
"version": "7.1.0",
17263-
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz",
17264-
"integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==",
17262+
"version": "7.2.0",
17263+
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",
17264+
"integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",
1726517265
"inBundle": true,
1726617266
"license": "MIT",
1726717267
"dependencies": {
17268-
"ansi-regex": "^6.0.1"
17268+
"ansi-regex": "^6.2.2"
1726917269
},
1727017270
"engines": {
1727117271
"node": ">=12"

0 commit comments

Comments
 (0)