fix(default-reporter): replace deprecated right-pad with String.padEnd (#8068)

This commit is contained in:
Wm Salt Hale authored and GitHub committed 2024-05-10 16:53:32 +02:00
1 parent a7aef51c66
commit 524990fd95
4 files changed
+6 -6

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
---
"@pnpm/default-reporter": minor
---
fix(default-reporter): replace deprecated right-pad with String.padEnd
-1
View File
@@ -48,7 +48,6 @@
"pretty-bytes": "^5.6.0",
"pretty-ms": "^7.0.1",
"ramda": "npm:@pnpm/ramda@0.28.1",
"right-pad": "^1.0.1",
"rxjs": "^7.8.1",
"semver": "^7.6.0",
"stacktracey": "^2.1.8",
@@ -1,4 +1,3 @@
import rightPad from 'right-pad'
import { PREFIX_MAX_LENGTH } from '../outputConstants'
import { formatPrefix } from './formatPrefix'
@@ -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
View File
@@ -490,9 +490,6 @@ importers:
ramda:
specifier: npm:@pnpm/ramda@0.28.1
version: '@pnpm/ramda@0.28.1'
right-pad:
specifier: ^1.0.1
version: 1.0.1
rxjs:
specifier: ^7.8.1
version: 7.8.1