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

39 Commits

Author SHA1 Message Date
Juan Picado
9a684a7cd3 chore: clean up types 2023-03-19 11:39:00 +01:00
Juan Picado
783422b4a2
refactor: migrate @verdaccio/types@11.x (#3692)
* refactor: migrate @verdaccio/types@11

* deps
2023-03-18 22:40:34 +01:00
Juan Picado
f9f269ee04
feat: refactor render middleware and audit plugin (#3602)
* chore: replace web middleware

* clean up

* migrate user agent

* migrate rate limit

* clean up

* replace audit plugin

* feat: refactor render middleware and audit plugin

* update deps

* update deps

* update packages

* update deps

* chore: update deps

* update deps

* update config dep

* chore: update deps

* update deps
2023-02-14 22:20:11 +01:00
Juan Picado
0a0b772f52
feat: export module types (#3508)
* chore: export types to the module

* chore: remove unused dep

* chore: format

* Update package.json
2022-11-22 18:35:47 +01:00
Juan Picado
966139ffd8
feat: implement abbreviated manifest (#3343)
* feat: implement abbreviated manifest

Follow up of https://github.com/verdaccio/verdaccio/pull/3322
Fixes for 5.x https://github.com/verdaccio/verdaccio/issues/2792

* chore: improve expects

* chore: fix test
2022-09-03 17:55:45 +02:00
Juan Picado
558fcafc71
build: format code prettier, enable ci (#2886)
* fix: format code prettier, enable ci

* chore: add trivago import prettier pluggin
2022-01-09 20:51:50 +01:00
Juan Picado
5b1264c733
feat: allow override user rate limit and user agent (#2803)
* feat: allow override user rate limit

- improve user_agent config allow string

* chore: fix tests

* chore: refactor userRateLimit

* chore: remove comment

* chore: optional prop

* chore: refactor limiter

* chore: refactor endpoints

* chore: fix undefined

* chore: fix params

* chore: fix params

* chore: update ui

* chore: refactor limiter

* chore: fix tests

* chore: fix test
2021-12-24 19:04:15 +01:00
Juan Picado
69d7df20d8
build: enable pnp yarn2 (#2253)
* chore: enable pnp yarn

* chore: ignore pnp

* fix type issues on run eslint

* add missing dependency and fix some errors

* fix most of the errors

some were just disabled, already fixed in master

* add missing jest-config

* update jest@26 align with other deps

* add missing @babel/register

* clean up

* use yarn node

* use yarn node on release

* chore: add husky 6

* chore: add husky 6

* chore: lint-stage

* chore: test

* chore: add hook git

* chore: test

* chore: test

* update deps

* chore: fix commit lint

* fix docker run

* update git ignore
2021-05-13 23:13:57 +02:00
Juan Picado
be2f6129bb
feat: clipanion as cli (#2160)
* feat: clipanion as cli

* chore: add version command

* chore: update ts
2021-04-03 13:13:31 +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 @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
68476e5f0f
chore: remove flow header 2019-08-10 13:39:57 +02: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
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
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
2362310aba
feat: stop hit proxies on search web UI (#1126)
Since we look for metadata on sidebar does not make sense to hit the proxies on search, this is the first step to help with other tickets to search in the whole proxy data packages, now is limited to private packages. Unit test are not need it here since is an "assumed" behaviour we don't want anymore. This will clearly help to improve performance on UI.
2018-11-22 13:39:39 +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
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
Priscila
1602840ed1 feat: replaced lunr by lunr-mutable (#915) 2018-08-17 12:14:23 +02:00
Michiel De Mey
11dcf798cc feat: adds support for external plugin directory (#532) 2018-07-18 14:53:08 +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
cbc6479003
refactor: improve readability 2018-07-15 00:47:47 +02:00
Juan Picado @jotadeveloper
dd3a937ac9
refactor: config file using flow 2018-07-04 00:15:07 +02:00
Juan Picado @jotadeveloper
74f1198cf3
refactor: json web token relocated 2018-06-03 08:51:18 +02:00
Juan Picado @jotadeveloper
87e3faa624
refactor: create cryto utils 2018-06-01 22:17:01 +02:00
Juan Picado @jotadeveloper
46f8186f01
refactor: remove deprecated method 2018-05-20 08:46:11 +02:00
Juan Picado @jotadeveloper
16fc854f57
refactor: no tabs, only spaces
disallow tabs over spaces
2018-04-30 18:34:55 +02:00
Juan Picado @jotadeveloper
e63674478a
refactor: clean up token middleware 2018-04-30 15:13:54 +02:00
Juan Picado @jotadeveloper
c1bc2610c4
refactor: clean up ref method 2018-04-24 08:19:27 +02:00
Juan Picado @jotadeveloper
de61e469ed
refactor: storage utilities
relocate methods, no logic change
2018-04-22 22:14:21 +02:00
Juan Picado @jotadeveloper
e5caa71d35
refactor: storage is async
allows storage to initalize whether a async call is required on start up.
2018-04-21 18:36:06 +02:00
Juan Picado @jotadeveloper
9c39cf0c1e
chore: rename method to camelCase 2018-03-22 18:31:26 +01:00
Juan Picado @jotadeveloper
7237ab340f
refactor: add flow support on publish endpoint 2018-03-17 11:54:57 +01:00
Juan Picado @jotadeveloper
59a53e1919
refactor: annotate files with flow 2018-03-11 16:27:16 +01:00
Juan Picado @jotadeveloper
76fe6cb5d7
refactor: apply flow and imports es6 2018-03-10 21:09:04 +01:00
Juan Picado @jotadeveloper
8f932f5f8a
chore: update some endpoints with flow 2018-03-02 23:19:08 +01:00
Juan Picado @jotadeveloper
0167de508c
refactor: move specific flow types into the project 2018-02-26 21:28:09 +01:00