Skip to content

Commit 0b858e0

Browse files
committed
chore: replace strip-ansi with util.stripVTControlCharacters
1 parent e851881 commit 0b858e0

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎commit-stream.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import through2 from 'through2'
2-
import stripAnsi from 'strip-ansi'
2+
import { stripVTControlCharacters } from 'node:util'
33

44
export default function commitStream (ghUser, ghProject) {
55
let commit
66

77
return through2.obj(onLine, onEnd)
88

99
function addLine (line) {
10-
line = stripAnsi(line)
10+
line = stripVTControlCharacters(line)
1111

1212
if (line.length === 0) return
1313

‎package.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
"split2": "^4.2.0"
3535
},
3636
"dependencies": {
37-
"strip-ansi": "^7.0.1",
3837
"through2": "^4.0.2"
3938
},
4039
"release": {

0 commit comments

Comments
 (0)