Skip to content

Commit 7231bb4

Browse files
Merge branch 'master' into remove-module-paths
2 parents 1f84ba7 + f93c2c1 commit 7231bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cli/domain/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export default function registry(opts: RegistryOptions = {}): RegistryCli {
126126
requestsHeaders = Object.assign(requestsHeaders, {
127127
Authorization:
128128
'Basic ' +
129-
new Buffer(options.username + ':' + options.password).toString(
129+
Buffer.from(options.username + ':' + options.password).toString(
130130
'base64'
131131
)
132132
});

0 commit comments

Comments
 (0)