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

95 Commits

Author SHA1 Message Date
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
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
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
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
Juan Picado @jotadeveloper
1c301b1c3a
Merge remote-tracking branch 'origin/master' into 4.x 2019-01-31 20:32:32 +01:00
Juan Picado @jotadeveloper
6fd8d4fd84
Merge branch 'master' into patch-1 2019-01-31 19:38:51 +01:00
BuffayBu
09ac72990c test(storage): add semicolons 2019-01-30 11:25:25 +08:00
BuffayBu
933034f3c9 test(storage): replace the hacky test 2019-01-30 11:25:39 +08:00
BuffayBu
f7685f781e test(local-storage): isolate tests & replace the hacky test 2019-01-30 11:23:59 +08:00
BuffayBu
35f0b539d9 test: use node v6 compatible fs api 2019-01-29 14:03:04 +08:00
BuffayBu
e62ef8df99 fix: don’t make change if time fields match (#1167) 2019-01-29 11:59:31 +08:00
BuffayBu
95686be47d fix: don’t packages that have no uplinks after reading (#1204) 2019-01-29 11:54:47 +08:00
KukuruzaAndrey
394386385e feat: package version gets sent to plugins 2019-01-14 17:17:37 +02:00
Juan Picado @jotadeveloper
c338f461c9
feat: allow disable gravatar #1172 2019-01-12 15:45:47 +01:00
Juan Picado @jotadeveloper
b215c74ad3
Merge remote-tracking branch 'origin/4.x' into refactor-eslint 2019-01-09 08:54:11 +01:00
Priscila Oliveira
3bda0cf566 fix: applied valid-describe 2018-12-16 21:34:14 +01:00
Priscila Oliveira
4962e36bbc fix: applied prefer-const 2018-12-16 21:09:03 +01:00
Priscila
9f6106cfe9 Package Refactor (#1145)
* chore: fix unit test, forgotten line on merge

chore: add node 11 to circleci (#1153)

chore: fix the use of Node 11 in CircleCI (#1154)

refactor: added css in js, new design, added types

feat: added Tag component

refactor: added modifiers

refactor: replaced by polished ellipsis

refactor: added types, new design and css in js

refactor: removed ul. it needs refactor

refactor: changed media queries

refactor: changed icon height

refactor: changed Header media queries

refactor: removed margin top

refactor: updated snapshots

refactor: removed unnecessary format author

refactor: added license icon & changed size

refactor: changed media queries

refactor: added icon size

refactor: changed media queries

refactor: updated snap

refactor: replaced Description by Details

refactor: updated tests

refactor: fixed modifiers type

feat: created missed types

fix: fixed types

fix: fixed prop type

fix: fixed undefined prop

refactor: replaced label by name

refactor: updated snap

refactor: moved polished to dev

refactor: changed formatAuthor and pkg author type

fix: removed incorrect meta's type

refactor: removed polished

refactor: added spacing & ellipsis mixin

refactor: added modifier type

refactor: changed datetime format

refactor: updated snapshots

refactor: rreplaced polished by mixins func

* refactor: updated styled

* fix: added missed semicolon

* refactor: updated media

* refactor: updated tests

* refactor: organized modifiers

* refactor: removed unused imports

* refactor: design adjusts

* refactor: updated snapshot

* refactor: changed minor things

* refactor: updated snapshots

* refactor: commented tests. fix later
2018-12-13 19:05:47 +01:00
Juan Picado @jotadeveloper
b3580c3e43
chore: fix unit test, forgotten line on merge 2018-12-06 23:10:46 +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
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
26794add9a
Merge remote-tracking branch 'origin/master' into 4.x 2018-11-15 21:13:41 +01:00
Michael K
4e3455157c fix: answer with 401 instead of 403 when no credentials were sent (#1109)
fixes #1105
2018-11-15 20:14:56 +01:00
Ayush Sharma
cbcfc9a48b
test: Increase coverage publish api tests (#1056)
* refactor: ES6 sugar

* refactor: improves code in publish

* refactor: add tests for upload tarball and add a version flow

* refactor: unpublish endpoint tests

* refactor: publish endpoint test

* docs: adds code blocks to publish functionality

* refactor: rename tests file name

* refactor: improves logic for npm star command

* refactor: replaces assert equal with strictEqual
2018-10-18 15:44:58 +02: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
Utwo
83289224cc refactor: remove all assert imports (#1049)
* refactor: remove assert imports

* Update search.spec.js
2018-10-05 12:31:57 +02:00
Utwo
919828fd32 refactor: remove unnecessary FlowFixMe (#1051) 2018-10-05 11:08:54 +02: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
Ayush Sharma
83b586f000 refactor: tests for notify request service (#1039)
* refactor: tests for notify request service

* refactor: improves notify request service tests

* refactor: uses beforeEach for jest.resetModules
2018-10-03 23:32:04 +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
9117673bed
Merge remote-tracking branch 'origin/master' into 4.x
# Conflicts:
#	package.json
#	yarn.lock
2018-09-27 18:01:57 +02:00
Juan Picado @jotadeveloper
680811d2d0
Update deps all (#1023)
* chore: update dependencies

* chore: update flow@0.81.0

* chore: update e2e test
2018-09-27 16:37:45 +02:00