0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
verdaccio/test/unit/partials/mock-store
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
..
@jquery/jquery test: unit test for scoped download tarball 2019-04-28 09:34:59 +02:00
corrupted-package refactor: get rid of jest warnings 2018-06-27 08:52:52 +02:00
jquery test: unit test for scoped download tarball 2019-04-28 09:34:59 +02:00
npm_test feat: plugin support to filter packages 2019-05-15 20:04:41 -04:00
vue
.sinopia-db.json