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

310 Commits

Author SHA1 Message Date
Juan Picado @jotadeveloper
e3da67fad9
chore: avoid template test case is being run 2019-06-13 22:16:40 +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
f242d1b261
chore(docs): add testing development notes (#1343)
* chore: add testing notes

co-contributions by:
@lirantal @DanielRuf 

This PR aims to add on boarding proccess for new contributors to test verdaccio, update test or add new features.

* chore: add new sections

* chore: add functional test notes

* chore: fix typos

Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>

* chore: add functional test block

Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>

* chore: add before commit guide

Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>

* chore: add ci notes

Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>

* chore: extend notes

Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>

* chore: update ci notes

Co-Authored-By: Daniel Ruf <danielruf@users.noreply.github.com>

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

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

* chore: update test/README.md

Co-Authored-By: Liran Tal <liran.tal@gmail.com>
2019-06-13 18:28:43 +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
Juan Picado @jotadeveloper
46eeb7e963
chore: remove test workflow from actions (#1323)
* chore: remove test workflow from actions

It fails randomly, we need to investigate the reasons.

* chore: re-enable unit test
2019-05-25 15:21:55 +02:00
Juan Picado @jotadeveloper
1f42c526ae
chore: disable unit test
Not the best, but I don't want this fails on middle of the release
2019-05-25 14:58:53 +02:00
Honza Hommer
95d134bdfd feat: parse YAML/JSON/JS config file (#1258)
* Parse JSON/YAML config file.

* fix missing export

* fix: typos

* test(config): remove JSON test

* feat: better config error handling, tests

* fix: detect YAML config file via extension

* docs: https://github.com/verdaccio/website/pull/99
2019-05-21 22:50:14 -07:00
Juan Picado @jotadeveloper
8786a3740e
test: relocate api spec test 2019-05-20 08:47:52 +02:00
Juan Picado @jotadeveloper
4bf6b3b844
test: fix broken test for validate parameters 2019-05-20 08:29:17 +02:00
Juan Picado @jotadeveloper
b1eb7c6278
test: relocate unit test cli, proxy, utils 2019-05-20 07:53:47 +02:00
Juan Picado @jotadeveloper
ca2e23cf9d
test: relocate unit test 2019-05-20 07:41:12 +02:00
Juan Picado @jotadeveloper
596c727a35
test: relocate notification test 2019-05-20 07:33:39 +02:00
Juan Picado @jotadeveloper
e7400cef71
test: relocate plugin storage 2019-05-20 07:26:40 +02:00
Juan Picado @jotadeveloper
3929633f7e
test: relocate test 2019-05-19 23:07:17 +02:00
Juan Picado @jotadeveloper
b4c42c1a78
test: relocate spec test 2019-05-19 22:23:12 +02:00
Juan Picado @jotadeveloper
2f3ec2ce42
test: increase usage of constants 2019-05-19 21:37:43 +02:00
Juan Picado @jotadeveloper
d052bcef89
test: relocate helpers 2019-05-19 21:03:45 +02:00
Juan Picado @jotadeveloper
26c5e2d670
Merge branch 'master' into 4.1.x 2019-05-17 08:04:13 -07:00
Juan Picado @jotadeveloper
7686417f29
feat: update readme v4 (#1312)
* feat: update readme v4

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

* chore: update @verdaccio/ui-theme@0.1.10
2019-05-17 08:03:58 -07: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
Ayush Sharma
a588588cf3 chore: removes verdaccio update banner (#1309) 2019-05-12 10:38:32 -07: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
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
Liming Jin
8e5203be9e
test: add unit test for the HTTP protocol check 2019-04-27 00:35:39 +08: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
4043da1ea3
chore: update snapshot 2019-03-27 07:39:09 +01:00
vip30
d0d74fa21b test: remove unused var and change to toHaveLength 2019-03-12 08:03:25 +08:00
vip30
75c0e1e4ec feat: add stars api 2019-03-11 23:37:17 +08:00
vip30
84be869aaf fix: husky commitlint not work, replace invalid test 2019-03-09 21:00:47 +08:00
vip30
1ab7c504ec feat: add star and unstar api for 4.x 2019-03-09 11:16:44 +08:00
Juan Picado @jotadeveloper
d39a494131
refactor: better name for 404 2019-03-04 23:39:33 +01:00
Ayush Sharma
38362c9596 refactor: fixes snapshot 2019-03-04 22:34:10 +01:00
Juan Picado @jotadeveloper
70d8e5f624
chore: fix e2e test for package list 2019-03-04 22:19:49 +01:00
Ayush Sharma
5aff7bc1a8 refactor: package list 2019-03-03 21:53:25 +01:00
Ayush Sharma
07d9aebc62 wip 2019-03-02 10:52:03 +01:00
Juan Picado @jotadeveloper
6553c6bce1
test: add unit test for unpublish 2019-02-25 08:33:01 +01:00
Juan Picado @jotadeveloper
d682e4f328
chore: fix unit test 2019-02-24 23:51:36 +01:00
Juan Picado @jotadeveloper
9e17d2bc27
chore: fix unpublish issues, fix unit test 2019-02-24 23:20:25 +01:00
Juan Picado @jotadeveloper
783fbce060
fix: #1191 overrides existing package to 0 bytes file 2019-02-24 10:26:43 +01:00
Ayush Sharma
31860540e1 refactor: versions and footer snapshot 2019-02-19 23:02:46 +01:00
Juan Picado @jotadeveloper
28231841f6
Merge branch '4.x' into fix-1163 2019-02-18 21:03:38 +01:00
Juan Picado @jotadeveloper
49c6f0353e
feat: allow order packages via on web #1163
add new param on web sort_packages. options asc or desc
2019-02-07 21:20:43 +01:00
Ayush Sharma
5af6b04b28 refactor: fixes unit tests for <NoItems/> component 2019-02-06 23:45:48 +01:00
Ayush Sharma
1c80c0a0fc refactor: fixes unit tests for detail URLs 2019-02-06 23:34:40 +01:00
Ayush Sharma
711f8153a5 refactor: removes old package detail component 2019-02-05 21:03:13 +01:00
Ayush Sharma
fed9711f48 refactor: removes old package sidebar 2019-02-04 22:08:26 +01:00
Juan Picado @jotadeveloper
e83d483a8e
chore: update verdaccio-htpasswd@2.0.0-beta.0 2019-02-03 19:56:02 +01:00
Juan Picado @jotadeveloper
f346534571
Merge branch 'feat-babel-preset' of github.com:verdaccio/verdaccio into feat-babel-preset 2019-02-03 12:13:21 +01:00
Juan Picado @jotadeveloper
e094e73802
chore: testing local-storage 2019-02-03 12:06:33 +01:00