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

60 Commits

Author SHA1 Message Date
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
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
Juan Picado @jotadeveloper
aa94aa9b0c
chore: remove ununsed prop in storage spec config file 2019-07-27 07:21:45 +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
d252e66588
Merge remote-tracking branch 'origin/master' into 4.1.x
# Conflicts:
#	test/unit/modules/cli/cli.spec.js
2019-06-20 15:10:26 +02:00
Daniel Ruf
a92bd5f633 fix: correctly check the keepAliveTimeout value, fixes #1352 (#1353)
* fix: correctly check the keepAliveTimeout value, fixes #1352

* test: check keepAliveTimeout configurations using the CLI
2019-06-19 09:00:48 +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
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
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
Juan Picado @jotadeveloper
9abe29593c
test: unit test for scoped download tarball 2019-04-28 09:34:59 +02:00
vip30
1ab7c504ec feat: add star and unstar api for 4.x 2019-03-09 11:16:44 +08: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
1c301b1c3a
Merge remote-tracking branch 'origin/master' into 4.x 2019-01-31 20:32:32 +01:00
BuffayBu
e62ef8df99 fix: don’t make change if time fields match (#1167) 2019-01-29 11:59:31 +08:00
Priscila
9869edfb38 refactor: changed footer (#1125)
refactor: added types, css in js styles, new comp

refactor: updated emotion

fix: fixed import

refactor: updated image path and type

refactor: minified svg

refactor: now it's stateless

refactor: updated snap & removed click test

feat: added capitalize helper

refactor: changed medium

refactor: added title and image option

refactor: added missed &&

refactor: updated snap

fix: fixed types

fix: fixed types

fix: added flow type ignore line

fix: fixed index map

refactor: updated icons

refactor: removed unnecessary capitalize func

refactor: removed empty lines

fix: fixed svg 404
2018-11-24 22:12:46 +01:00
Juan Picado @jotadeveloper
712db31a43
feat: endpoints change password on ui (#1068)
* test: split up web and endpoints api

* chore: add reset password endpoint

not fully implemented yet

* feat: add password change api ednpoint for web
2018-11-18 18:41:05 +01:00
Juan Picado @jotadeveloper
f1416ed557
feat: add support for profile cli command #392 (change password) (#1034)
* feat: add support for profile cli command #392

- it allows to update password npm profile set password
- display current profile npm profile get

https://docs.npmjs.com/cli/profile

* chore: update @verdaccio/types@4.0.0

* feat: add min password length

on npm by defaul is min 7 characters, this might be configurable in the future.

* chore: update verdaccio-htpasswd@1.0.1

* refactor: update unit test

* refactor: provide friendly error for tfa request

* test: api profile unit test

* chore: fix eslint comment

* test: update profile test

* chore: set mim as 3 characters
2018-10-12 11:07:55 +02:00
Juan Picado @jotadeveloper
0bd2428e6c
test: add scenarios where publish or access are missing (#1054)
it will normalise those props are missing as emtpy arrays
2018-10-07 00:45:17 +02:00
Juan Picado @jotadeveloper
cf31982127
test: Increase coverage for unit test (#974)
* test(utils): add test for validate names

* test(utils): add unit test for dist-tags normalize utility

* refactor(notifications):  unit test for notifications

* test(cli): add unit test for address validation

* chore: add new constants

* chore: ignore debug from coverage

* test(bootstrap): test https is fails on start

* refactor: update code for rebase
2018-09-22 12:54:21 +02:00
Juan Picado @jotadeveloper
68cb10f44d
Merge branch '4.x' of github.com:verdaccio/verdaccio into 4.x 2018-08-21 08:08:48 +02:00
Juan Picado @jotadeveloper
a68d247a44
feat: add support for jwt on api (#896)
* feat: add support for jwt on api

* test: add unit test for sign token with jwt

add multiple scenarios with configuration file

* chore: add JWT verification on middleware

* chore: restore headless

* chore: restore middleware header validation

* refactor: fix login whether user exists

* refactor: JWT is signed asynchronously

* refactor: better structure and new naming convention

* test: add unit test for token signature

* test: add unit test for creating user with JWT enabled

#168

* docs: add security section jwt

* refactor: renable  web auth middleware

* test(auth): add legacy disabled scenario

* chore: update gitignore

* chore: add some es6 sugar

* feat: enable JWT token signature for new installations

* chore: add yaml files to git

I forgot add this before 😷

* chore: trace log on auth

in case we want more output
2018-08-21 08:05:34 +02:00
Juan Picado @jotadeveloper
26873682b8
refactor: add prettier for yaml files (#931) 2018-08-20 16:31:39 +02:00
Juan Picado @jotadeveloper
b65b79bc09
test(storage): add checks for addVersion 2018-07-29 13:58:04 +02:00
Juan Picado @jotadeveloper
25c62f09ea
test(storage): add better test for changePackage 2018-07-29 10:28:28 +02:00
Juan Picado @jotadeveloper
7ce6abf3b2
chore: update flow to 0.75.0 2018-07-18 07:52:39 +02:00
Juan Picado @jotadeveloper
91a6c202ff
chore: more unit test for config utils 2018-07-04 07:31:51 +02:00
Juan Picado @jotadeveloper
39651bb6b3
chore: add unit test for package access normalize 2018-07-04 00:15:09 +02:00
Juan Picado @jotadeveloper
946d195431
refactor: pkg.access unit test
migrate more constants
2018-07-04 00:15:01 +02:00
Juan Picado @jotadeveloper
2e157fb134
refactor: config unit test
match package access normalise
2018-07-04 00:14:59 +02:00
Juan Picado @jotadeveloper
45110ddb7b
refactor: migration assert to expect 2018-06-28 18:33:37 +02:00
Juan Picado @jotadeveloper
6239606ce1
chore: storage test path fix 2018-06-28 08:26:07 +02:00
Juan Picado @jotadeveloper
ccb73404a8
refactor: get rid of jest warnings 2018-06-27 08:52:52 +02:00
Juan Picado @jotadeveloper
57f0fa7610
refactor: unit test goes offline 2018-06-26 06:15:06 +02:00
Juan Picado @jotadeveloper
e12dc5b477
refactor: add custom store
for unit testing to avoid require connection on development
2018-06-26 06:15:05 +02:00
Juan Picado @jotadeveloper
2c74133dfc
refactor: get rid of personal emails
metadata should no have any personal email
2018-06-23 20:59:34 +02:00
ayusharma
be3968f5e2 fix: improves regex for ascii and test (#461)
fix: file name in unit test

fix: updates snapshots

fix: updates snapshots
2018-06-23 19:53:05 +02:00
Juan Picado @jotadeveloper
3f6eeb4d7d
fix: update uplinks auth header
* increases unit test coverage
* remove dead code
* update documentation
* light refactoring

fix #670
2018-04-29 21:50:10 +02:00
Christopher Kelley
8bbedc933b
[Close #628] Test and correct auth plugin values 2018-03-26 09:20:12 -04:00
Juan Picado @jotadeveloper
f0d2e8592f
test: add test for web ui endpoints
packages, sidebar and search
2018-03-18 08:46:02 +01:00
Juan Picado @jotadeveloper
547da379e9
test: add test for proxy access
the test will check whether avoiding proxy on uplink configuration avoid proxy access
2018-03-11 18:55:19 +01:00
Juan Picado @jotadeveloper
d086073069
fix(flow): fix flow definitions 2018-02-24 20:31:00 +01:00
Juan Picado @jotadeveloper
885345f4cf
test(unit): add unit test for publish and unpublish 2018-01-28 20:25:19 +01:00
Juan Picado @jotadeveloper
819f06015e
test(unit): add unit test for packages endpoint 2018-01-28 11:38:22 +01:00
Juan Picado @jotadeveloper
eaa0e3f8bd
test(unit): add unit test for ping and whoiam 2018-01-25 21:37:37 +01:00