0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-27 22:59:51 -05:00
Commit graph

177 commits

Author SHA1 Message Date
Juan Picado
0bfdeaa2e4
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.
2020-06-22 13:33:43 +02:00
Jian-Chen Chen (jesse)
80ade97801
feat: npm deprecation support (#1842)
* support deprecation

* test case for deprecation

* fix format

* testing for multiple packages deprecation

* update README

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-06-19 22:54:03 +02:00
Robert Sabirov
67c31b69ca
fix: move bodyParse to the upper level (#1841)
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-06-19 07:40:06 +02:00
Juan Picado
c2e0e1e0bf
fix: avoid access to sidebar without login (#1794) 2020-05-01 11:09:44 +02:00
Juan Picado @jotadeveloper
d68926050d
fix: incorrect primary_color crash the ui (#1771)
* fix: incorrect primary_color crash the ui

* chore: also supports 3 and 6 characters as valid hex
2020-04-09 00:33:03 +02:00
Juan Picado @jotadeveloper
4a812620cf
feat: add dark mode on and chinese translation for web (#1765)
* feat: add dark mode on ui

* chore: update description

* chore: update @verdaccio/ui-theme@1.5.0

* chore: add spaces
2020-04-08 23:24:57 +02:00
Juan Picado @jotadeveloper
c493b316b1
feat: i18n on web (#1750)
* feat: add i18n to web

* chore: enable es features
2020-03-14 07:16:47 +01:00
Joshua Jensch
9ac307adc5
feat: add support for new search endpoint(#1732)
https://github.com/verdaccio/verdaccio/issues/310

* Add an incomplete implementation of the v1/search api

* Use parseInt and || instead of ?? for processing numeric arguments

* Remove res.end, as we already use response.json

* Remove unused request parameters and add TODO comment

* Fix eslint errors

Co-authored-by: Joshua Jensch <j.jensch@hvs.de>
2020-03-06 08:19:06 +01:00
Kevin Yockey
3aaa04829a
fix: adding Content-Type to response in GET /-/all (#1697) (#1728) 2020-03-03 21:16:53 +01:00
Viktor Oreshkin
70a93da1fc
fix: tarball urls for web/package (fix #1714) (#1716) 2020-02-25 20:24:42 +01:00
Daniel Ruf
a616250e33 refactor: remove extraneous else statements (#1671)
Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>
2020-01-12 14:44:22 +01:00
Daniel Ruf
f89bf27f5a fix: prevent issue with leading hyphen in package name - fixes #1429 (#1636) 2020-01-03 23:57:21 +01:00
Favo Yang
158de3f768 fix: search api will not set magic date header when return array (#1598) 2019-12-14 12:08:37 +01:00
claude
e85e8bfaa9
refactor: simplify conditional expression 2019-12-12 20:33:00 +08:00
James George
35f816bf5c fix: minor grammatical tweak (#1513) 2019-10-07 07:45:25 +02:00
polemius
02aee3a879 fix: fixing the lint issues (#1503) 2019-10-02 21:18:00 +02:00
polemius
72314e48df fix: fixing typos in comments (#1504) 2019-10-02 21:14:19 +02:00
Juan Picado @jotadeveloper
5612c13e9e
chore: fix eslint warnings (#1471) 2019-09-26 18:22:14 +02:00
Juan Picado @jotadeveloper
dbf20175dc
feat: npm token command support (#1427)
* feat: support for npm token

This is an effor of:

This commit intent to provide npm token support.

https: //github.com/verdaccio/verdaccio/issues/541
https: //github.com/verdaccio/verdaccio/pull/1271
https: //github.com/verdaccio/local-storage/pull/168
Co-Authored-By: Manuel Spigolon <behemoth89@gmail.com>
Co-Authored-By: Juan Gabriel Jiménez <juangabreil@gmail.com>

* chore: update secrets baselines

Co-Authored-By: Liran Tal <liran.tal@gmail.com>

* chore: update lock file

* chore: add logger mock methods

* chore: update @verdaccio/types

* refactor: unit test was flacky

adapt the pkg access to the new configuration setup

* refactor: add plugin methods validation

* test: add test for aesEncrypt

* chore: update local-storage dependency

* chore: add support for experimetns

token will be part of the experiment lists

* chore: increase timeout

* chore: increase timeout threshold

* chore: update nock

* chore: update dependencies

* chore: update eslint config

* chore: update dependencies

* test: add unit test for npm token

* chore: update readme
2019-09-07 15:46:50 -07:00
Juan Picado @jotadeveloper
d5303f407b
feat: browse web package version (#1457)
* feat: allow endpoint to query by version

* chore: update @verdaccio/ui-theme

* test: add unit test for sidebar endpoint by version
2019-09-05 12:12:10 -07:00
Juan Picado @jotadeveloper
ac6c138309
Merge pull request #1432 from devnill/create-correct-user-groups
fix: fixed user creation endpoint to properly import groups
2019-08-10 13:48:09 +02:00
Juan Picado @jotadeveloper
c264f944fb
fix: unpublish and add or remove star colision (#1434)
* fix: unpublish and add or remove star colision

The issue was the npm star use a similar payload, but we did not check properly the shape of the payload, this fix and allow unpublish correctly.

Improve unit testing for publishing and unpublishing
Add new code documentation for future changes.

* chore: update secrets baseline

* chore: add missing type

this will requires update types in the future
2019-08-10 13:38:06 +02:00
Dan Singer
50e115f52a fix: fixed user creation endpoint to properly import groups 2019-08-06 10:01:47 -06:00
Juan Picado @jotadeveloper
be8fed50d9
refactor: add generatePackageMetadata utility
- Tests suites must be independent each other, this is a refactor that allow star endpoint to be fully independent.
- Add putPackage utility to put new packages
2019-07-27 23:48:00 +02:00
Juan Picado @jotadeveloper
3beb57f7f6
test: add unit test for parser logger strings 2019-07-26 09:33:17 +02:00
Juan Picado @jotadeveloper
66f4197236
feat: convert project to typescript (#1374)
* chore: test

* chore: add

* chore: more progress

* chore: progress in migration, fix prettier parser

* chore: reduce tsc errors

* chore: refactor storage utils types

* chore: refactor utils types

* chore: refactor local storage types

* chore: refactor config utils types

* chore: refactor tsc types

* refactor: apply eslint fix, tabs etc

* chore: fix lint errors

* test: update unit test conf to typescript setup

few test refactored to typescript

* chore: enable more unit test

migrate to typescript

* chore: migrate storage test to tsc

* chore: migrate up storage test to tsc

* refactor: enable plugin and auth test

* chore: migrate plugin loader test

* chore: update dependencies

* chore: migrate functional test to typescript

* chore: add codecove

* chore: update express

* chore: downgrade puppeteer

The latest version does not seems to work properly fine.

* chore: update dependencies
2019-07-16 08:40:01 +02:00
Juan Picado @jotadeveloper
0fa26293a8
Merge remote-tracking branch 'origin/master' into 4.1.x 2019-06-13 22:04:35 +02:00
Juan Picado @jotadeveloper
85c1bd1f76
fix(api): force authenticate on login (#1347)
When a user has a valid token and tries to login with other credentials the endpoint returns 201.

The reason was if another user logged previously and had a valid token stored in the terminal. We must authenticate any user that tries to log in even if the token stored is valid.

We must check credentials again and return a new token, if the credentials are wrong we reject the login. Furthermore, the new token will update the list of groups.
2019-06-13 06:58:43 +02:00
Honza Hommer
de0446376d fix(web): fix sidebar tarball protocol (#1326)
fix: #1320 https://github.com/verdaccio/verdaccio/issues/1320
2019-05-28 22:24:40 +02:00
Marc Udoff
b9ffac5d1b feat: plugin support to filter packages
Add a plugin that can filter all package metadata before being returned.
This enables blocking of packages from verdaccio.

IPluginStorageFilter are loaded like other plugins from the config.
Verdaccio will look for plugins in config.filters and pass this to
storage.init. This is the same design as other plugins and will be
dynamically found with the same rules. These plugins must impliment
a filter_metadata method, which is called serially (in the order
loaded from the config) for every metadata request. It gets a current
copy of a package metadata and may choose to modify it as required.
For example, this may be used to block a bad version of a package or
add a time delay from when new packages can be used from your
registry. Errors in a filter will cause a 404, similar to upLinkErrors
as it is not safe to recover gracefully from them. Note: When version
is removed, be careful about updating tags.

Fixes: #818
2019-05-15 20:04:41 -04:00
Juan Picado @jotadeveloper
01f8da6366
fix: routing is aware of reverse proxy directory #1297 2019-05-02 21:56:14 +02:00
Juan Picado @jotadeveloper
615db0affb
feat: add some security headers for web UI (#1295) @juanpicado
* feat: add some security headers for web UI

The idea behind this is have more control over the content is rendered mostly via README.

* chore: rename header for frame options

* chore: rename method better name
2019-04-30 23:46:36 +02:00
Liming Jin
8e5203be9e
test: add unit test for the HTTP protocol check 2019-04-27 00:35:39 +08:00
Juan Picado @jotadeveloper
4af7b88919
Merge branch 'master' into fix-logo 2019-04-25 22:03:43 +02:00
Jamie Kyle
9f8a054f88 feat: accept web.primary_color as config option and inject into webui (#1282) 2019-04-25 21:50:35 +02:00
Liming Jin
56c70d4b0e
fix: logo field in configuration cannot use the local file 2019-04-19 21:52:28 +08:00
Juan Picado @jotadeveloper
86a6e5eb7f
fix: all static files are captured by the router 2019-04-16 19:11:40 +02:00
Juan Picado @jotadeveloper
8760e1821c
fix: update @verdaccio/ui-theme@0.0.13 2019-04-14 00:54:02 +02:00
Juan Picado @jotadeveloper
f730e7ac9c
chore: update dependencies 2019-04-06 14:58:02 +02:00
Juan Picado @jotadeveloper
c3c62021e5
feat: theme as plugin (#1252)
* chore: remove ui

* chore: remove size step

* chore: update theme plugin

* chore: update lock file

* Update main.workflow

* chore: update js-yaml dep

* chore: @verdaccio/ui-theme@0.0.4

* feat: allows theme as a plugin

* chore: update package description
2019-04-06 08:35:38 +02:00
Juan Picado @jotadeveloper
54d73eb9a3
chore: add access middleware 2019-03-17 21:26:21 +01:00
Juan Picado @jotadeveloper
87203f2cdf
fix: add new enpoind that allow download tarballs according the standard 2019-03-17 21:23:13 +01:00
vip30
75c0e1e4ec feat: add stars api 2019-03-11 23:37:17 +08:00
vip30
1ab7c504ec feat: add star and unstar api for 4.x 2019-03-09 11:16:44 +08:00
Ayush Sharma
07d9aebc62 wip 2019-03-02 10:52:03 +01:00
Ayush Sharma
aec337719e refactor: package list [WIP] 2019-03-02 10:52:01 +01:00
Juan Picado @jotadeveloper
9e17d2bc27
chore: fix unpublish issues, fix unit test 2019-02-24 23:20:25 +01:00
Juan Picado @jotadeveloper
59ae8dd12d
Merge branch '4.x' into fix-492 2019-02-23 17:02:56 +01:00
Juan Picado @jotadeveloper
28a50bfe08
chore: fix router issue 2019-02-19 07:04:39 +01:00
Juan Picado @jotadeveloper
7db5b93806
chore: fix logo 404 error 2019-02-18 23:58:07 +01:00