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
Ayush Sharma
9cd3ccb408
fix: login without reload ( #678 ) ( #679 ) ( #914 )
...
* fix: login without reload (#678 ) (#679 )
* fix: implements code review suggestions (#914 )
* refactor: adds scope to the app
* refactor: handles null value from localstorage for username
* refactor: removes text type from <Input />
* refactor: replaces isNull with isNil
* refactor: improves makeLogin method
* refactor: adds error from api constant
* fix: updates error using API_ERROR constant in tests
* refactor: updates regex for moduleMapper in jest config
2018-08-20 16:29:47 +02:00
Priscila
1602840ed1
feat: replaced lunr by lunr-mutable ( #915 )
2018-08-17 12:14:23 +02:00
Juan Picado @jotadeveloper
0ba1ccfabb
Merge remote-tracking branch 'origin/master' into 4.x
2018-08-13 18:18:34 +02:00
Juan Picado @jotadeveloper
231cf5a581
Merge branch 'master' into master
2018-08-13 07:20:20 +02:00
Ashish Surana
fd6769850a
fix(webui): search crash on ' ' as a value #898 ( #902 )
...
* fix(webui): search crash on ' ' as a value #898
* chore(test): add unit test cases for Home component
- test case for handleSearchInput function
2018-08-12 22:25:47 +02:00
jeremy
2e5a4096f4
fix: abort the stream to prevent overwriting existing tarbal
2018-08-02 12:44:59 -07:00
Diego Louzán
4862acdc0e
refactor(docker): multistage build / support for running as random uid
...
- refactor docker image to use builder multistage pattern
- separate storage directories
- verdaccio code directories are not user writeable
- add generic support for random user uid on environments where the startup
user for docker is randomized (e.g. openshift)
2018-08-02 20:23:25 +02:00
Ayush Sharma
dc9460ff07
refactor: header component test ( #878 )
...
* refactor: improves <Header /> component test cases
* refactor: adds destructuring for state in render block
2018-08-01 15:00:39 +02:00
Juan Picado @jotadeveloper
8b98302985
Merge branch 'master' into feat-webui-scope
2018-07-30 18:59:27 +02:00
Peter Cools
7c3a617d79
feat: adds option to set scope in webui instructions header
...
If you're using this registry for a specific module scope, specify that scope to set it in the webui instructions header e.g. npm set @coolsp:registry http://localhost:4873 .
Added as webui.scope option in .yaml.
> Note: in .yaml, escape @ with \\@.
See also feature request #593 .
Update unit test for added scope
2018-07-29 19:11:43 +02:00
Juan Picado @jotadeveloper
5e9b593bd5
refactor: some es6 sugar
2018-07-29 16:03:09 +02:00
Juan Picado @jotadeveloper
bef6df6e1b
test(storage): add unit test for merge test
2018-07-29 15:26:22 +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
ayusharma
4df6b3b252
feat: adds gravatar support for maintainers
2018-07-29 00:45:02 +02:00
Juan Picado @jotadeveloper
ddf491740c
Merge pull request #859 from verdaccio/update-dependencies
...
chore: update dependencies
2018-07-28 17:14:35 +02:00
Juan Picado @jotadeveloper
b0b631af76
chore: add unit test for #857 scenario
2018-07-28 08:45:10 +02:00
Juan Picado @jotadeveloper
f75e213399
chore: update dependencies
2018-07-27 20:59:51 +02:00
Juan Picado @jotadeveloper
62e3adf0db
chore: update devDependencies
2018-07-27 20:37:13 +02:00
ayusharma
263b0f78a9
refactor: <Package /> , <Footer /> and package sidebar code refactoring
...
refactor: variable naming
2018-07-22 21:22:51 +02:00
Juan Picado @jotadeveloper
b2e88d12a1
chore: add sub type example with flow
2018-07-18 07:53:02 +02:00
Juan Picado @jotadeveloper
2f4dbe8564
fix: add RemoteUser type for auth
2018-07-18 07:53:00 +02:00
Juan Picado @jotadeveloper
5c2c414e03
fix: wrong auth plugin signature
2018-07-18 07:52:59 +02:00
Juan Picado @jotadeveloper
6f33876587
chore: update @verdaccio/types to 3.3.2
2018-07-18 07:52:57 +02:00
Juan Picado @jotadeveloper
61e33f0a30
refactor: use plugins type on loadPlugin
2018-07-18 07:52:54 +02:00
Juan Picado @jotadeveloper
55c146cb5d
chore: add flow plugin examples
...
middleware, authentication and storage
2018-07-18 07:52:45 +02:00
Juan Picado @jotadeveloper
7ce6abf3b2
chore: update flow to 0.75.0
2018-07-18 07:52:39 +02:00
ayusharma
d6dd2f647b
refactor: removes un-necessary 'src' from webui path
2018-07-17 22:03:06 +02:00
Juan Picado @jotadeveloper
9ef13fb6b6
Merge branch 'master' into refactor-config
2018-07-12 08:50:07 +02:00
ayusharma
0e21e35c51
feat: capitalises logged in username ( #752 )
2018-07-11 10:08:07 +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
dd3a937ac9
refactor: config file using flow
2018-07-04 00:15:07 +02:00
Juan Picado @jotadeveloper
957b71e8bb
refactor: user agent on config
...
remove logic users prop is not longer supported
67c63892d3 (diff-574051ef1fbe43a2746c5cd241d631c7)
2018-07-04 00:15:03 +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
050f857fb6
refactor: add new constants
2018-07-04 00:15:00 +02:00
Juan Picado @jotadeveloper
2e157fb134
refactor: config unit test
...
match package access normalise
2018-07-04 00:14:59 +02:00
ayusharma
98abac4dec
refactor: adds method to load verdaccio logo
2018-07-01 15:45:26 +02:00
ayusharma
4f6fd66bf3
refactor: adds tesURL for test cases
2018-07-01 15:45:26 +02:00
ayusharma
5c95551e8f
refactor: unit tests and api service
...
refactor: fixes login api success call
refactor: fixes login respose for success case
2018-06-30 12:22:07 +02:00
Juan Picado @jotadeveloper
83b64bd798
refactor: unit test parse listeners
2018-06-28 22:17:38 +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
c6740feec3
chore: remove test folder from coverage report
2018-06-27 21:19:48 +02:00
Juan Picado @jotadeveloper
ccb73404a8
refactor: get rid of jest warnings
2018-06-27 08:52:52 +02:00
Juan Picado @jotadeveloper
88996e92a5
refactor: enable request test
2018-06-26 06:15:10 +02:00
Juan Picado @jotadeveloper
1fd50cc53e
refactor: add more constants
2018-06-26 06:15:09 +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
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
32e64c0fe3
chore: update functional script name
2018-06-23 21:02:55 +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
Juan Picado @jotadeveloper
495133edae
refactor: readme test endpoit
...
add scenario when readme is not present
2018-06-23 20:59:25 +02:00
Juan Picado @jotadeveloper
a1a70c973f
refactor: middleware plugins
...
add es6 transpiled use case
2018-06-23 20:59:24 +02:00
Juan Picado @jotadeveloper
d5a29f72b5
refactor: plugins auth endpoints
2018-06-23 20:59:23 +02:00
Juan Picado @jotadeveloper
d4a5d813a3
refactor: race condition test
2018-06-23 20:59:21 +02:00
Juan Picado @jotadeveloper
36979bb284
refactor: scoped test gzip test
2018-06-23 20:59:20 +02:00
Juan Picado @jotadeveloper
970c0461df
refactor: more unit test constants usage
2018-06-23 20:59:19 +02:00
Juan Picado @jotadeveloper
2c8c8f0295
refactor: update jetst match
...
using more consntants
2018-06-23 20:59:18 +02:00
Juan Picado @jotadeveloper
a1439df1b5
refactor: usage constants for http status
2018-06-23 20:57:21 +02:00
Juan Picado @jotadeveloper
d8455dd15a
refactor: using constants
...
relocate uplink token test to unit test
2018-06-23 20:57:20 +02:00
Juan Picado @jotadeveloper
3d19f22ba0
refactor: test tokens
...
more usage of constants for tokens
2018-06-23 20:57:19 +02:00
Juan Picado @jotadeveloper
22dd80aa7d
chore: remove package access property
...
proxy_publish was removed long time ago 6075034521
2018-06-23 20:57:18 +02:00
Juan Picado @jotadeveloper
65cc2769b6
refactor: replace deprecated package properties
2018-06-23 20:57:17 +02:00
Juan Picado @jotadeveloper
0de1e7efd4
test: restore snapshot unit test
2018-06-23 20:57:17 +02:00
Juan Picado @jotadeveloper
9242d498d7
refactor: functional testing
...
* server now are executed in the jest setup phase
* disable one snapshot
2018-06-23 20:57:16 +02:00
Juan Picado @jotadeveloper
b113aa3a55
refactor: jest config files relocation
...
still pending unit config file
2018-06-23 20:57:15 +02:00
Juan Picado @jotadeveloper
b28e6f737b
refactor: functional testing relocation
...
functional testing runs in a different process
2018-06-23 20:57:13 +02:00
Juan Picado @jotadeveloper
49c6191bb5
refactor: relocate unit test
...
no logic change, just path updates
2018-06-23 20:57:12 +02:00
Juan Picado @jotadeveloper
4e5deb4461
refactor: relocate jest conf file e2e
2018-06-23 20:55:24 +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
ayusharma
9fa523a0d3
fix: license field alignment on web ui ( #761 )
2018-06-20 21:09:49 +02:00
ayusharma
29bb57ad5f
feat: adds support for ascii-doc preview in readme ( #464 )
2018-06-20 00:15:25 +02:00
ayusharma
e5ea0c2f5b
fix: dynamic date generation for <Package /> component test
...
fix: adds <Package /> component snapshot
2018-06-18 23:49:51 +02:00
Juan Picado @jotadeveloper
8e16bbc5f1
test: remove time for package test
2018-06-18 23:30:43 +02:00
Juan Picado @jotadeveloper
c01cc4b851
test: add unit test merge time method
2018-06-15 07:55:30 +02:00
Juan Picado @jotadeveloper
3717ad49ee
fix: normalize package was broken #758
2018-06-14 22:44:06 +02:00
Peter Kaske
08d3f60324
Merge remote-tracking branch 'origin/feature-pkg-infos' into feature-pkg-infos
2018-06-14 08:43:21 +02:00
Peter Kaske
453bceec4c
Changes as requested by reviewer.
...
- Fix test name in spec file
- Use lodash isString and isNill
- Move normalisation of git url into it's own function
- Create a renderSection() function to render links in a more "dry" way
2018-06-14 08:43:01 +02:00
Juan Picado @jotadeveloper
16999d3060
Merge branch 'master' into feature-pkg-infos
2018-06-14 08:06:33 +02:00
Juan Picado @jotadeveloper
4245636576
feat: add published package support to template
...
The package published can be printed into the template
Improve error handling
Improve notification documentation
2018-06-14 07:25:09 +02:00
Peter Kaske
7bd3a4f292
feat: Add basic package infos and resource links to sidebar.
...
Shows homepage, repository url and license if available in meta data.
If no data is available the module isn't shown.
2018-06-14 00:34:25 +02:00
Juan Picado @jotadeveloper
e5bf9a72df
Merge branch 'master' into feature-user-info-for-notications
2018-06-12 12:47:22 +02:00
Ilya Zaytsev
1ca5298707
feat: added information about package publisher for notifications
2018-06-12 16:37:15 +07:00
Juan Picado @jotadeveloper
92e1eb00ca
chore: update unit test sidebar
2018-06-12 08:22:23 +02:00
Juan Picado @jotadeveloper
73324a2971
refactor: convertDistRemoteToLocalTarballUrls method
...
add unit test
improve readbility
2018-06-05 21:03:27 +02:00
Juan Picado @jotadeveloper
d5f4b54a41
refactor: renaming validate name method
2018-06-04 23:08:50 +02:00
Juan Picado @jotadeveloper
ecbe616e46
feat: add published date and license on ui
2018-06-04 06:44:53 +02:00
Juan Picado @jotadeveloper
c920fa335c
fix: skip problematic unit test
...
we need to dive into the reason, it fails randomnly
2018-05-31 09:50:16 +02:00