File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff line change 11import basicAuth from 'basic-auth-connect' ;
22import { RequestHandler } from 'express' ;
3- import path from 'path' ;
43
54import strings from '../../resources/' ;
65
@@ -45,9 +44,6 @@ export function validate(authConfig: { type: string }) {
4544 if ( builtin [ authConfig . type ] ) {
4645 scheme = builtin [ authConfig . type ] ;
4746 } else {
48- const cwd = process . cwd ( ) ;
49- module . paths . push ( cwd , path . join ( cwd , 'node_modules' ) ) ;
50-
5147 const moduleName = `oc-auth-${ authConfig . type } ` ;
5248
5349 try {
You can’t perform that action at this time.
0 commit comments