diff --git a/packages/error/src/index.ts b/packages/error/src/index.ts index 7b3a2f04e7..9bd8ed9e6e 100644 --- a/packages/error/src/index.ts +++ b/packages/error/src/index.ts @@ -54,7 +54,7 @@ export class FetchError extends PnpmError { } } -function hideAuthInformation (authHeaderValue: string) { +function hideAuthInformation (authHeaderValue: string): string { const [authType, token] = authHeaderValue.split(' ') return `${authType} ${token.substring(0, 4)}[hidden]` }