Skip to content

Commit

Permalink
fix(default-reporter): replace deprecated right-pad with String.padEnd (
Browse files Browse the repository at this point in the history
  • Loading branch information
altsalt authored May 10, 2024
1 parent a7aef51 commit 524990f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .changeset/modern-vans-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
"@pnpm/default-reporter": minor
---
fix(default-reporter): replace deprecated right-pad with String.padEnd
1 change: 0 additions & 1 deletion cli/default-reporter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"pretty-bytes": "^5.6.0",
"pretty-ms": "^7.0.1",
"ramda": "npm:@pnpm/[email protected]",
"right-pad": "^1.0.1",
"rxjs": "^7.8.1",
"semver": "^7.6.0",
"stacktracey": "^2.1.8",
Expand Down
4 changes: 2 additions & 2 deletions cli/default-reporter/src/reporterForClient/utils/zooming.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import rightPad from 'right-pad'
import { PREFIX_MAX_LENGTH } from '../outputConstants'
import { formatPrefix } from './formatPrefix'

Expand All @@ -17,5 +16,6 @@ export function autozoom (
}

export function zoomOut (currentPrefix: string, logPrefix: string, line: string): string {
return `${rightPad(formatPrefix(currentPrefix, logPrefix), PREFIX_MAX_LENGTH)} | ${line}`
const prefix: string = formatPrefix(currentPrefix, logPrefix)
return `${prefix.padEnd(PREFIX_MAX_LENGTH)} | ${line}`
}
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 524990f

Please sign in to comment.