1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-13 03:35:52 +01:00
Commit Graph

3209 Commits

Author SHA1 Message Date
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
Ayush Sharma
a588588cf3 chore: removes verdaccio update banner (#1309) 2019-05-12 10:38:32 -07:00
Juan Picado @jotadeveloper
8e48eea511
fix: update @verdaccio/ui-theme:0.1.7
https://github.com/verdaccio/ui/pull/54
2019-05-11 09:30:10 +02:00
Juan Picado @jotadeveloper
b4bc6ff4e5
chore: fix #1292 add missing dependencies
remove non required dependencies
2019-05-09 23:41:16 +02:00
Juan Picado @jotadeveloper
daa7e897b6
chore(release): 4.0.0-beta.8 v4.0.0-beta.8 2019-05-07 20:59:05 +02:00
Juan Picado @jotadeveloper
3c691329c7
fix: update lock file 2019-05-07 20:58:36 +02:00
Juan Picado @jotadeveloper
144e95f4bf
chore(release): 4.0.0-beta.7 v4.0.0-beta.7 2019-05-07 20:49:16 +02:00
Juan Picado @jotadeveloper
96dd2d8306
chore(release): 4.0.0-beta.6 v4.0.0-beta.6 2019-05-07 07:43:52 +02:00
Juan Picado @jotadeveloper
1bdb338092
Merge pull request #1299 from verdaccio/fix-1297
fix: routing is aware of reverse proxy directory #1297
2019-05-07 07:07:35 +02:00
Juan Picado @jotadeveloper
86a7aa7a0c
chore: update @verdaccio/ui-theme@0.1.5 2019-05-04 16:39:01 +02: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
9589d47ff7
chore(release): 4.0.0-beta.5 v4.0.0-beta.5 2019-04-30 23:48:04 +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
Juan Picado @jotadeveloper
5ee485e984
chore: update husky dependencies 2019-04-30 23:07:31 +02:00
Juan Picado @jotadeveloper
f48b23fbcf
fix: remove unused dependencies #1292 2019-04-30 22:49:09 +02:00
Juan Picado @jotadeveloper
f53f4c4536
chore(release): 4.0.0-beta.4 v4.0.0-beta.4 2019-04-29 08:49:03 +02:00
Daniel Ruf
ff71640e8a feat: replace chalk with kleur (#1289) @DanielRuf
* chore: replace chalk with kleur

* build: add updated lockfile

* chore: add flow-typed stub for kleur 3.0.3

* chore: remove unnecessary whitespace

* test: update snapshot for update-banner.js

* chore: migrate logger.js from chalk to kleur

* chore: use import instead of require
2019-04-29 08:44:29 +02:00
Juan Picado @jotadeveloper
780ba27014
Update main.workflow 2019-04-29 08:36:10 +02:00
Juan Picado @jotadeveloper
40c4b40c77
Merge pull request #1290 from DanielRuf/chore/replace-date-fns-with-dayjs
chore: replace date-fns with dayjs
2019-04-29 07:27:56 +02:00
Juan Picado @jotadeveloper
b8f63295b8
Merge branch 'master' into chore/replace-date-fns-with-dayjs 2019-04-29 00:46:08 +02:00
Daniel Ruf
a0af84faee build: test Node.js 12 (#1291) 2019-04-29 00:20:26 +02:00
Daniel Ruf
46ca898103
build: add updated lockfile 2019-04-28 21:46:57 +02:00
Daniel Ruf
f637efdd68
chore: replace date-fns with dayjs 2019-04-28 21:45:35 +02:00
Juan Picado @jotadeveloper
5f2a29d5e5
chore: update lock file 2019-04-28 19:22:56 +02:00
Daniel Ruf
3d5abd521b chore: add missing octokit/rest package for the trigger-release script (#1288) 2019-04-28 19:18:30 +02:00
Juan Picado @jotadeveloper
e6690aadbe
chore(release): 4.0.0-beta.3 v4.0.0-beta.3 2019-04-28 15:33:44 +02:00
Juan Picado @jotadeveloper
40679aae9a
fix(ui): version rendering issue
update @verdaccio/ui-theme@0.1.2
2019-04-28 15:32:48 +02:00
Juan Picado @jotadeveloper
9abe29593c
test: unit test for scoped download tarball 2019-04-28 09:34:59 +02:00
Juan Picado @jotadeveloper
4242eaa6b8
test: add unit test for whoami referer endpoint 2019-04-28 09:07:48 +02:00
Juan Picado @jotadeveloper
450224dc1f
chore: removed old integration test code
this is not in usage, we remove it.
2019-04-28 08:32:10 +02:00
Juan Picado @jotadeveloper
117e45783e
chore: update dependencies 2019-04-28 00:01:10 +02:00
Juan Picado @jotadeveloper
65f5ba3676
Merge pull request #1278 from jinliming2/fix-logo
fix: logo field in configuration cannot use the local file
2019-04-26 19:07:49 +02:00
Juan Picado @jotadeveloper
914d36f003
Merge branch 'master' into fix-logo 2019-04-26 18:52:17 +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
a2d706244f
chore(release): 4.0.0-beta.2 v4.0.0-beta.2 2019-04-26 07:04:38 +02:00
Juan Picado @jotadeveloper
117cd4f151
chore: update @verdaccio/ui-theme@01.0 2019-04-26 07:03:53 +02: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
2b4550bb31
Update stale.yml 2019-04-18 07:42:00 +02:00
Ayush Sharma
4efbad1ef7 Npm publish using GitHub actions (#1275)
* chore: bumps verdaccio-htpasswd@2.0.0

* chore: removes circle ci and publish using github-actions

* chore: adds bash doctype

* chore: adds build and test workflow

* chore: fixes coverage error

* chore: adds e2e tests

* chore: adds headless arg

* chore: sets puppeteer in docker env

* chore: runs tets through bash

* chore: minor fixes
2019-04-17 07:17:39 +02:00
Juan Picado @jotadeveloper
313882ca69
chore(release): 4.0.0-beta.1 v4.0.0-beta.1 2019-04-16 19:12:08 +02: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
372cd36497
chore(release): 4.0.0-beta.0 v4.0.0-beta.0 2019-04-15 21:23:41 +02:00
Juan Picado @jotadeveloper
f94fa08002
chore: remove old scripts 2019-04-15 20:45:07 +02:00
Juan Picado @jotadeveloper
d7e1a97a7c
chore: verdaccio-htpasswd@2.0.0 2019-04-15 20:33:30 +02:00
Snyk bot
fbe9409f86 fix: package.json to reduce vulnerabilities (#1276)
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-HANDLEBARS-174183
2019-04-15 07:25:29 +02:00
Juan Picado @jotadeveloper
69dce414e7
chore: next release tag is beta 2019-04-14 09:14:33 +02:00
Juan Picado @jotadeveloper
a5be22b900
fix: update docker node to latest lts version 2019-04-14 01:04:12 +02:00
Juan Picado @jotadeveloper
8037c9ea77
chore: update npm package description 2019-04-14 00:54:24 +02:00