Skip to content

Commit a3f3751

Browse files
Merge branch 'master' into callback-to-promises
2 parents 2cde37d + f93c2c1 commit a3f3751

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
@@ -98,7 +98,7 @@ export default function registry(opts: RegistryOptions = {}): RegistryCli {
9898
requestsHeaders = Object.assign(requestsHeaders, {
9999
Authorization:
100100
'Basic ' +
101-
new Buffer(options.username + ':' + options.password).toString(
101+
Buffer.from(options.username + ':' + options.password).toString(
102102
'base64'
103103
)
104104
});

0 commit comments

Comments
 (0)