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 {
126
126
requestsHeaders = Object . assign ( requestsHeaders , {
127
127
Authorization :
128
128
'Basic ' +
129
- new Buffer ( options . username + ':' + options . password ) . toString (
129
+ Buffer . from ( options . username + ':' + options . password ) . toString (
130
130
'base64'
131
131
)
132
132
} ) ;
Original file line number Diff line number Diff line change 1
1
import basicAuth from 'basic-auth-connect' ;
2
2
import { RequestHandler } from 'express' ;
3
- import path from 'path' ;
4
3
5
4
import strings from '../../resources/' ;
6
5
@@ -45,9 +44,6 @@ export function validate(authConfig: { type: string }) {
45
44
if ( builtin [ authConfig . type ] ) {
46
45
scheme = builtin [ authConfig . type ] ;
47
46
} else {
48
- const cwd = process . cwd ( ) ;
49
- module . paths . push ( cwd , path . join ( cwd , 'node_modules' ) ) ;
50
-
51
47
const moduleName = `oc-auth-${ authConfig . type } ` ;
52
48
53
49
try {
You can’t perform that action at this time.
0 commit comments