1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01:00

fix: move search v1 endpoint as experimental (#1850)

the current one has not auth implemented, to avoid the lack of fallback to the original one now is required to be used it by default until the v1 is on shape production ready.
This commit is contained in:
Juan Picado 2020-06-22 13:33:43 +02:00 committed by GitHub
parent c0afcadce4
commit 0bfdeaa2e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

@ -78,6 +78,8 @@ logs:
#experiments:
# # support for npm token command
# token: false
# # support for the new v1 search endpoint, functional by incomplete read more on ticket 1732
# search: false
# This affect the web and api (not developed yet)
#i18n:

@ -77,6 +77,8 @@ logs:
#experiments:
# # support for npm token command
# token: false
# # support for the new v1 search endpoint, functional by incomplete read more on ticket 1732
# search: false
# This affect the web and api (not developed yet)
#i18n:

@ -55,7 +55,9 @@ export default function(config: Config, auth: IAuth, storage: IStorageHandler) {
ping(app);
stars(app, storage);
v1Search(app, auth, storage)
if (_.get(config, 'experiments.search') === true) {
v1Search(app, auth, storage)
}
if (_.get(config, 'experiments.token') === true) {
token(app, auth, storage, config);