0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-02-10 23:39:31 -05:00
Commit graph

732 commits

Author SHA1 Message Date
Ed Clement
0bc26e395a
feat: allow express 'trust proxy' to be set for ip resolution behind proxies and load-balancers (#3274) 2022-07-29 20:19:03 +02:00
Juan Picado
23b5c1d6ef
aling eslint config with main branch (#3238)
* chore: update linter tools

* fix: eslint warnings

* fix: eslint warnings

* chore: set max warnings
2022-06-19 21:26:46 +02:00
Juan Picado
5c50ec9a2c
feat: add scope support loading plugins (#3227)
* feat: add scope support loading plugins

* format

* Update src/lib/plugin-loader.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>

* Update src/lib/plugin-loader.ts

Co-authored-by: Michael Prentice <splaktar@gmail.com>

* chore: add tests

* chore: add comment

* format

* chore: update dep

* chore: add better name

Co-authored-by: Michael Prentice <splaktar@gmail.com>
2022-06-14 07:47:17 +02:00
Juan Picado
42194c7302
feat: run server init as promise (#3210)
* feat: run server init as promise

* chore: format

* fix: format

* fix: format

* fix: restore files

* fix: restore files

* fix: disable steps

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli

* fix: init log on cli
2022-06-02 17:39:49 +02:00
Juan Picado
adfbefc59e
fix: remove lru deprecation warning (#3158)
* fix: remove lru deprecation warning

* fix: format
2022-05-07 10:36:56 +02:00
Juan Picado
51803c3477
fix: duplicated groups on use jwt tokens (#3151)
* fix: duplicated groups on use jwt tokens

* chore: format

* chore: fix jest ci
2022-05-05 00:13:55 +02:00
renovate[bot]
da01a14e70
feat(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.24 (5.x) (#3130)
* fix(deps): update dependency @verdaccio/ui-theme to v6.0.0-6-next.24

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add missing props to ui

* chore: add docs

* chore: format file

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-17 23:39:00 +02:00
Tiny
b30ba81b86
feat(web): add a config item to web,let the developer can select whether enable the html cache (#3110)
* Add a config item to web,let the developer can select whether enable the html cache

* Add a config item to web,let the developer can select whether enable the html cache

* chore: move check close to other configuration

* chore: update configuration files to suggest new option on web

* chore: format fix

Co-authored-by: fengdi <fengdi@bbktel.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-04-11 23:00:43 +02:00
Juan Picado
0f51a6ced5
fix: missing colors on terminal (#3049) 2022-03-08 18:30:29 +01:00
osher
ac45c0b5b2
feature: config control for colors in logs (#3011)
* pass `logs.colors` as `prettyOptions.colorize`

* `prettyPrintOptions` defaults is no concern of `createLogger`

* call it `colors` not to confuse with `pinoPretty.colorize`

* fix hardcoded `true` for `options.colors`

* Support `VERDACCIO_LOGGER_COLORS` overriding env-var

* Update docs for `VERDACCIO_LOGGER_COLORS`

* docs for `VERDACCIO_LOGGER_COLORS`

* docs for `VERDACCIO_LOGGER_COLORS`

* `.isTTY` from `stdout` not `stdin`

both work, but I want to ask if I emit to TTY, not if I consume from TTY.

* .md format

* format

* more format guesses

* declare `PrettyOptionsExtended.colors`

* lint

* docs: `EXPERIMENTAL__` prefix

* logger.ts - prefix `EXPERIMENTAL__`

* Update env.variables.md

* env.variables.md - remove double `_`

* Update logger.ts

* logger.ts - remove double `_`, fix boolean parsing

* env.variables.md - explain boolean parsing

* chore: format

* chore: add format, improve logic

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-03-02 23:41:30 +01:00
osher
681dc821aa
feat: new environment variable (storage path) (#2993)
* WIP: port PR#2199 to master into 5.x

* port PR#2199 to master to 5.x - env.variables.md

* port PR#2199 to master to 5.x - config.spec

* Update config.spec.ts

* Update config.spec.ts

* fix format

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-02-14 21:05:59 +01:00
Martin Sander
b964c0d488
fix: re-opening log files using SIGUSR2 (#2966)
by @marvinthepa
2022-01-26 20:25:34 +01:00
Juan Picado
1a7b1ee8ad
feat: add new options to the web disable login and pkg managers (#2947) 2022-01-22 10:58:04 +01: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
renovate[bot]
23d0bd7056
fix(deps): update all non-major linting dependencies (5.x) (#2885)
* fix(deps): update all non-major linting dependencies

* fix lint issues

* chore: increase timeout

* chore: increase timeout

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2022-01-09 20:31:26 +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
f64e403f0a
feat: add rate limit to user api endpoints (#2800) (#2799)
* feat: add rate limit to user api endpoints

* chore: fix test

* chore: refactor token endpoint

* chore: refactor
2021-12-24 01:07:26 +01:00
Juan Picado
c91d6beb8b
feat: add rate limit to web endpoints (#2799)
* feat: add rate limit to web endpoints

* fix: types express conflict

* fix: undefined issue

* fix: tests
2021-12-23 17:35:31 +01:00
Juan Picado
e5d79ce8f0
feat: user agent is the client by default (#2793)
* feat: user agent is the client by default

* chore: get user agent fix

* chore: disable x-powered-by
2021-12-21 23:09:31 +01:00
Juan Picado
fd3ad1e546
feat: add cache-control header to endpoints (#2791)
Add no cache to endpoints that returns tokens in the body
2021-12-20 23:11:17 +01:00
Juan Picado
1c17d0986e
feat: jwt default time new set (#2787)
Reduce 7 days to 1 hour as expiration time to improve security measures.
2021-12-20 08:09:18 +01:00
贾顺名(Jarvis)
b5ac3c0f28
fix: publish with deprecated field (#2771)
* fix: publish with deprecated field by @Jiasm 

When publish with deprecated field in `package.json`, that will make all old versions miss.

Examples:

I have package@1.0.0 and package@1.0.1.

When `npm deprecate package@1.0.0 "xxx"`, Verdaccio will recived:

```json
{
  "name": "module_name",
  "version": {
    "1.0.0": {
      "deprecated": "xxx"
    },
    "1.0.1": {}
  }
}
```

⬆️ This make sense

But then publish new version with @1.0.2.

Verdaccio will recived:

```json
{
  "name": "module_name",
  "version": {
    "1.0.2": {
      "deprecated": "xxx" // if we set this field in package.json
    },
  }
}
```

and that metadata will override package.json, make old version miss.

migrate from #2766

* remove spaces

* fix: ignore empty package case

* fix: cover normal unpublish case

* refactor: Optimize check logic for lazy execution

* test: upgrade Jest Snapshot

* fix: set storage.getPackage `uplinksLook: false`.

* feat: use `_attachments` to distinguish deprecate

* test: rollback test snapshots

* test: rollback jest snapshots

* test: publish new version with deprecate field

* test: remove space
2021-12-16 16:17:52 +01:00
coolsp
820c9d5db2
fix: markdown anchor links in package readme.md broken #2712 2021-12-01 23:33:25 +01:00
weifan she
ecfc4c3304
fix: plugin allow_publish (pkg) got a undefined version (#2315) 2021-08-12 07:41:00 +02:00
Juan Picado
29240544b1
fix: remove token experiment flag (#2332) 2021-07-14 20:22:15 +02:00
Juan Picado
558dd3f3c6
fix: add logger fatal if fails on startup (#2288)
fix #2287
2021-06-12 06:19:26 +02:00
Juan Picado
38ca095fb0
fix: improve get headers from request #2190 (#2271)
* fix: improve request header handling

* chore: fix test

* chore: apply suggestion
2021-05-26 20:07:13 +02:00
Juan Picado
2d7d8143e9 chore: remove try catch not need it 2021-05-22 14:49:11 +02:00
Juan Picado
8434cc550f
fix: restore using local path web logo (#2270)
* fix: logo loaded locally

* chore: fix lint
2021-05-22 14:46:47 +02:00
Juan Picado
251bd95373
feat: implement search v1 endpoint (#2256)
* feat: implement search v1 endpoint

* add allow_access

* chore: add types

* chore: format

* fix eslint prettier

* chore: add tests

* add tests

* chore: add npm search cli
2021-05-15 16:39:03 +02:00
Favo Yang
78d04cf9f8
feat: tarball url redirect (#1688)
* feat: tarball url redirect

* fix: handle uplinks

* feat: allow function for config.tarball_url_redirect

* fix:  hasLocalTarball was calling localStream,abort when already aborted

* chore: simplify localStream null check in hasLocalTarball

As requested in PR feedback.

* chore: fix sonarcloud code smell on test

the variable `credentials` was already declared before the tarball url tests.

* fix: move tarball_url_redirect to experiments

Co-authored-by: Gord Lea <johlea@cisco.com>
Co-authored-by: Gord Lea <jgordonlea@gmail.com>
2021-05-03 20:53:00 +02:00
Claude
01c5d2ca27
fix: scoped query support (#2208) 2021-04-28 07:18:30 +02:00
Claude
d8b62cff53
fix: incorrect sanity check for theme plugin (#2205) 2021-04-27 19:53:12 +02:00
Juan Picado
782dd1ca93 fix: logo and favicon configuration (#2180) 2021-04-10 11:09:50 +02:00
Juan Picado
507e55a9a5 chore: remove behindProxy
not ready for this release, need more thoughts
2021-04-05 20:48:41 +02:00
Juan Picado
80d669e6eb chore: emit warning if is using multiple addresses 2021-04-04 08:21:32 +02:00
Juan Picado
6fef45f9ef
chore: better logging for publish (#2163) 2021-04-03 22:09:31 +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
9c803993d0
feat: custom protocol header (#2156) 2021-04-02 10:48:51 +02:00
Paola Morales
b0fc25a8c4
refactor: improve logging (#2154)
* refactor: improve logging

* chore: update test

* chore: update local-storage.ts

* chore: update local-storage.ts
2021-03-31 23:22:32 +02:00
Juan Picado
5b6be2aa09
fix: using correctly logging levels (#2153)
* fix: using correctly logging levels

* chore: update deps
2021-03-31 21:21:40 +02:00
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
15bb350ae4
feat: improve url_prefix behavior (#2122)
read pr 2122 for more details
2021-03-29 12:32:37 +02:00
Juan Picado
3a1f608f0b
feat: upgrade to commander v7 (#2143) 2021-03-28 17:53:58 +02:00
Juan Picado
43f70437af
feat!: drop node 8 and node 10 (#2142)
There is no breaking changes on features aside of Node version
2021-03-28 10:40:52 +02:00
Juan Picado
7b6fbae6ae
feat: handle kill signals nicely (#2130)
* feat: handle kill signals nicely

* chore: add docs and rename variable

Co-authored-by: edward kim <edward.kim@lendi.com.au>
2021-03-17 07:29:07 +01: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
4d152ca01b
feat: enable keep alive (#2067) 2021-01-20 21:43:50 +01:00
Juan Picado
39376be345
feat: skip log static content from web (#2027)
The PR #2026 will create more noise because the static content is smaller and segmented, this PR skip all those entries to the log.
2020-12-13 22:58:36 +01:00
Andrey Frimuchkov
e2f7bb2f29
feat: Set bytesin log as optional (#2013)
https://github.com/verdaccio/verdaccio/issues/1912

Co-authored-by: frimuchkov <frimuchkov@yandex-team.ru>
2020-12-02 21:48:01 +01:00