mirror of
https://github.com/pnpm/pnpm.git
synced 2025-12-24 23:58:07 -05:00
fix(default-reporter): replace deprecated right-pad with String.padEnd (#8068)
This commit is contained in:
4
.changeset/modern-vans-double.md
Normal file
4
.changeset/modern-vans-double.md
Normal file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
"@pnpm/default-reporter": minor
|
||||
---
|
||||
fix(default-reporter): replace deprecated right-pad with String.padEnd
|
||||
@@ -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
pnpm-lock.yaml
generated
3
pnpm-lock.yaml
generated
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user