Skip to content

Commit f93c2c1

Browse files
Merge pull request #1275 from opencomponents/deprecated-buffer
[INTERNAL] replace deprecated new Buffer to Buffer.from
2 parents cd830d1 + 6b86cd7 commit f93c2c1

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)