0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-17 23:45:29 -05:00
verdaccio/test/unit/partials
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
..
changePackage test(storage): add better test for changePackage 2018-07-29 10:28:28 +02:00
config test: unit test for scoped download tarball 2019-04-28 09:34:59 +02:00
mock-store feat: plugin support to filter packages 2019-05-15 20:04:41 -04:00
plugin feat: plugin support to filter packages 2019-05-15 20:04:41 -04:00
readme fix: improves regex for ascii and test (#461) 2018-06-23 19:53:05 +02:00
storage
store/storage feat: add support for jwt on api (#896) 2018-08-21 08:05:34 +02:00
test-plugin-storage
addTarball
config-unit-mock-server-test.yaml feat: endpoints change password on ui (#1068) 2018-11-18 18:41:05 +01:00
forbidden-place.js refactor: get rid of personal emails 2018-06-23 20:59:34 +02:00
metadata
metadata-update-versions-tags fix: don’t make change if time fields match (#1167) 2019-01-29 11:59:31 +08:00
publish-api.js refactor: get rid of personal emails 2018-06-23 20:59:34 +02:00
star-api.js feat: add star and unstar api for 4.x 2019-03-09 11:16:44 +08:00