Skip to content

Commit 33ea1fd

Browse files
replace deprecated new Buffer to Buffer.from
1 parent 94e70f3 commit 33ea1fd

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)