1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-17 07:45:52 +01:00
Commit Graph

170 Commits

Author SHA1 Message Date
Juan Picado
ee97dcb46c
feat: replace bunyan by pino.js (#2148)
* feat: replace bunyan by pino.js

* chore: refactor logger

* chore: fix e2e

* chore: better catch
2021-03-30 20:32:46 +02:00
Juan Picado
93468211d6
chore: update eslint dependencies (#2126)
* chore: update eslint

* chore: update rules and style

* chore: aling formatting

* chore: update ci rules

* chore: aling formatting

* chore: aling formatting
2021-03-14 08:42:46 +01:00
Juan Picado
f4a85af20d
fix: fix missing readme on npm7 (#2010)
* fix: fix missing readme on npm7

* test: update test for readme
2020-11-28 22:57:52 +01:00
Juan Picado
4feaf241c9
fix: buffer deprecated warnings (#1993)
* chore: use Buffer.from and Buffer.alloc instead of deprecated new Buffer

* chore: fix lint

* chore: fix lint

Co-authored-by: Jarom Loveridge <jaroml@gradecam.com>
2020-11-03 07:55:08 +01:00
Juan Picado @jotadeveloper
7fe943f7bc build: update dependencies (#1630)
* chore: update dependencies

* chore: update secrets
2019-12-23 09:29:27 +01:00
polemius
72314e48df fix: fixing typos in comments (#1504) 2019-10-02 21:14:19 +02:00
Juan Picado @jotadeveloper
5612c13e9e
chore: fix eslint warnings (#1471) 2019-09-26 18:22:14 +02:00
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
7fa23577ae
refactor: replace flow comments by ts-ignore
ts-ignore is not harmfull in specs files, since we try to force to test with values are not allowed by the types
2019-08-18 07:59:28 +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
Will Smythe
eb7a8e3528 fix(api): return 503 to npm/yarn on uplink connection timeout (#1331)
fix  #1328 and #720

Type: bug

The following has been addressed in the PR:

Instead of returning a 404 (Not Found) when npm, yarn, etc requests a package and the package cannot be acquired from an uplink due to a connection timeout, socket timeout, or connection reset problem, a 503 (service unavailable) is returned by Verdaccio instead. In limited testing of a few versions of npm and yarn, both of these clients correctly attempt to retry the request when a 503 is returned.

Added functional tests to verify the behavior (this adds a dev dependency on nock, which provides HTTP request mocking

Description:

This resolves issue #1328 and #720, and ensures npm/yarn install commands don't fail immediately when there is an intermittent network timeout problem with an uplink. Instead Verdaccio will appropriately respond to the client with a 503. A 404 response (current behavior) incorrectly tells the client that the package does not exist (which may or may not be true) and to not try again.
2019-06-13 21:42:01 +02: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
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
43f8bc3db1
chore: update toStrictEqual to toEqual 2019-02-25 07:16:49 +01:00
Juan Picado @jotadeveloper
51ac52ca57
chore: remove long timeout 2019-02-03 12:10:13 +01:00
Juan Picado @jotadeveloper
ae6c514dce
chore: bump up local storage beta 2019-02-03 12:06:34 +01:00
Juan Picado @jotadeveloper
e094e73802
chore: testing local-storage 2019-02-03 12:06:33 +01:00
Juan Picado @jotadeveloper
98c3a5b8d0
Merge remote-tracking branch 'origin/4.x' into refactor-eslint 2018-12-22 16:36:31 +01:00
Juan Picado @jotadeveloper
a7dd409f1a refactor babel7 (#1164)
* fix: dev dependencies as dep

* refactor: babel 7 migration
2018-12-22 16:11:09 +01:00
Priscila Oliveira
2b4895851b fix: applied valid-describe 2018-12-16 21:30:49 +01:00
Juan Picado @jotadeveloper
a7c34b348e
chore: jest/expect-expect disabled
it does not make sense for now enable this
2018-12-16 19:05:52 +01:00
Juan Picado @jotadeveloper
0fb344d0c2
chore: set all to warning 2018-12-15 08:55:39 +01:00
Juan Picado @jotadeveloper
9570d2d0e1
Merge branch '4.x' into refactor-eslint 2018-12-07 08:14:20 +01:00
Juan Picado @jotadeveloper
eb2947213d
Merge remote-tracking branch 'origin/master' into 4.x
# Conflicts:
#	CHANGELOG.md
#	Dockerfile
#	package.json
#	src/lib/local-storage.js
#	src/lib/utils.js
#	test/unit/api/utils.spec.js
2018-12-06 23:04:42 +01:00
Juan Picado @jotadeveloper
6554973e2b
feat: allows package.json as package name (#1149) 2018-12-06 08:34:42 +01:00
Juan Picado @jotadeveloper
3c8e0fbd16
chore: update eslint rules 2018-12-04 07:17:19 +01:00
Utwo
d41a990e97 refactor: replace all 404 with NOT_FOUND constant (#1050)
Resolve one eslint warning
2018-10-05 08:20:43 +02:00
Andrew Shanks
9ed8f3497c refactor: remove usage of assert from cache.js [#973] (#1043)
* refactor: remove usage of assert from cache.js [#973]

* refactor: remove usage of assert from no_proxy.spec.js [#973]

* refactor: remove usage of assert from cache.js [#973]
2018-10-03 23:39:45 +02:00
Juan Picado @jotadeveloper
d9187f124d
Merge branch 'master' into 4.x 2018-10-03 22:12:44 +02:00
Andrew Shanks
0f57dc5ea9 refactor: removed usage of assert from tags.js test file [#973] (#1042) 2018-10-03 22:05:41 +02:00
Ayush Sharma
d913145fe2 refactor: typo fixes (#1030)
* refactor: increasese use of constants

* refactor: fixes after rebase

* refactor: improves variable names
2018-10-02 07:47:46 +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
Ayush Sharma
32fce8eaea
Refactor & minor fixes (#1009) 2018-09-21 17:34:12 +02:00
Juan Picado @jotadeveloper
bcd5e3faa0
Merge branch 'master' into 4.x 2018-09-03 21:12:05 +02:00
Juan Picado @jotadeveloper
a5f5004a27
chore: improve vscode debugging (#969)
* chore: improve vscode debugging

* chore: add functional test settings to vscode
2018-09-03 21:11:52 +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
62e3adf0db
chore: update devDependencies 2018-07-27 20:37:13 +02:00
Juan Picado @jotadeveloper
57f0fa7610
refactor: unit test goes offline 2018-06-26 06:15:06 +02:00
Juan Picado @jotadeveloper
e92a3013a5
chore: removed unused file 2018-06-24 10:13:16 +02:00
Juan Picado @jotadeveloper
3f5a5c2345
refactor: improve code with es6 style 2018-06-24 10:11:52 +02:00
Juan Picado @jotadeveloper
90e700ce78
refactor: dist-tags-merge test 2018-06-23 20:59:35 +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
Juan Picado @jotadeveloper
40f2aa46b1
refactor: add tags test 2018-06-23 20:59:33 +02:00
Juan Picado @jotadeveloper
1294477ff3
refactor: enable incomplete test 2018-06-23 20:59:32 +02:00
Juan Picado @jotadeveloper
0fcbb8e1bd
refactor: fix inject issue on debug mode 2018-06-23 20:59:31 +02:00
Juan Picado @jotadeveloper
e59f282a27
refactor: usage of constants on sanity test 2018-06-23 20:59:30 +02:00
Juan Picado @jotadeveloper
686f22461f
refactor: use of constants for testing 2018-06-23 20:59:29 +02:00
Juan Picado @jotadeveloper
690b92a652
refactor: mirror and anti-loop 2018-06-23 20:59:27 +02:00
Juan Picado @jotadeveloper
241945f2bb
chore: clean up deprected props 2018-06-23 20:59:26 +02:00