Skip to content

Commit ac1cae0

Browse files
Merge branch 'master' into dev-filter-components
2 parents 53cd497 + 05b7276 commit ac1cae0

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
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
});

src/registry/domain/authentication.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import basicAuth from 'basic-auth-connect';
22
import { RequestHandler } from 'express';
3-
import path from 'path';
43

54
import 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 {

0 commit comments

Comments
 (0)