Skip to content

Commit

Permalink
Try to remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Nov 8, 2024
1 parent 211f51c commit e00c8a9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions human-formatter/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { once } from 'node:events'
import os from 'node:os'
import { Transform } from 'node:stream'
import { stripVTControlCharacters } from 'node:util'
import pico from 'picocolors'
import pino from 'pino'
import abstractTransport from 'pino-abstract-transport'
import stripAnsi from 'strip-ansi'

import { mulberry32, onceXmur3 } from './utils.js'

Expand Down Expand Up @@ -50,7 +50,7 @@ function formatNow() {
}

function rightPag(str, length) {
let add = length - stripAnsi(str).length
let add = length - stripVTControlCharacters(str).length
for (let i = 0; i < add; i++) str += ' '
return str
}
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"pino": "9.5.0",
"pino-abstract-transport": "^2.0.0",
"semver": "^7.6.3",
"strip-ansi": "^7.1.0",
"tinyglobby": "^0.2.9",
"url-pattern": "^1.0.3",
"ws": "^8.18.0"
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e00c8a9

Please sign in to comment.