0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05: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

View file

@ -78,6 +78,8 @@ logs:
#experiments: #experiments:
# # support for npm token command # # support for npm token command
# token: false # 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) # This affect the web and api (not developed yet)
#i18n: #i18n:

View file

@ -77,6 +77,8 @@ logs:
#experiments: #experiments:
# # support for npm token command # # support for npm token command
# token: false # 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) # This affect the web and api (not developed yet)
#i18n: #i18n:

View file

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