0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00

fix: remove token experiment flag (#2332)

This commit is contained in:
Juan Picado 2021-07-14 20:22:15 +02:00 committed by GitHub
parent 7180338c44
commit 29240544b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,13 +15,7 @@ import profile from './api/v1/profile';
import token from './api/v1/token';
import v1Search from './api/v1/search';
const {
match,
validateName,
validatePackage,
encodeScopePackage,
antiLoop
} = require('../middleware');
const { match, validateName, validatePackage, encodeScopePackage, antiLoop } = require('../middleware');
export default function (config: Config, auth: IAuth, storage: IStorageHandler) {
/* eslint new-cap:off */
@ -58,8 +52,6 @@ export default function (config: Config, auth: IAuth, storage: IStorageHandler)
ping(app);
stars(app, storage);
v1Search(app, auth, storage);
if (_.get(config, 'experiments.token') === true) {
token(app, auth, storage, config);
}
return app;
}