0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-16 21:56:25 -05:00
Commit graph

612 commits

Author SHA1 Message Date
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
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
Juan Picado
e88571fa3e
chore: enable test e2e pnpm7 (#3033)
* enable test e2e pnpm7

* chore: add npm8

* chore: rename title

* chore: skip flaky tests added note
2022-03-04 21:08:18 +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
Juan Picado
b79266d54e
feat: use backward compatible UI from v6 on v5 (#2912)
* feat: upgrade ui theme plugin v4

* chore: fix e2e

* fix: format

* chore: update theme ui
2022-01-15 20:51:14 +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
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
b2b3804f87
build: enable Node 17 on CI and npm8 on E2E (#2795)
* chore: increase ci e2e settings

* fix: ci for node 17

* chore: restore versions

* chore: fix tests

* chore: fix tests

* chore: fix domain

* chore: restore yarn on angular

* chore: rename tests

* chore: fix syntax

* chore: disable yarn angular
2021-12-23 00:14:53 +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
贾顺名(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
Juan Picado
57bd5169f9 test: system test add logging for debuggin 2021-10-24 10:15:54 +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
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
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
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
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
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
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
4f3afa33a2
build: fix node version issue on ci (#2140)
* build: fix node version issue

* chore: fix test on node 15
2021-03-26 18:04:19 +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
420657293b
fix: update dependencies (#2115)
* fix: update dependencies

* test: update snapshot
2021-03-05 22:59:44 +01:00
Juan Picado
2ea17ced2c
feat: update @verdaccio/ui-theme (#2026)
* feat: add deprecated support on User Interface
* chore: update key dependencies
2020-12-13 21:29:00 +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
1ece11cfc0
feat: migrate yarn 1 to yarn 2 (#1962) 2020-10-11 19:06:21 +02:00
dependabot[bot]
f7aad33925
fix(deps): bump @verdaccio/ui-theme from 1.12.1 to 1.13.1 (#1961)
* build(deps): bump @verdaccio/ui-theme from 1.12.1 to 1.13.1

Bumps [@verdaccio/ui-theme](https://github.com/verdaccio/ui) from 1.12.1 to 1.13.1.
- [Release notes](https://github.com/verdaccio/ui/releases)
- [Changelog](https://github.com/verdaccio/ui/blob/master/CHANGELOG.md)
- [Commits](https://github.com/verdaccio/ui/compare/v1.12.1...v1.13.1)

Signed-off-by: dependabot[bot] <support@github.com>

* chore: update puppeteer

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-10-11 16:25:00 +02:00
Juan Picado
647b6b3ff7
test: add test for socket timeout (#1959)
* test: add test for socket timeout

* chore: add offline online test
2020-10-11 15:58:57 +02:00
Juan Picado
f75ad876fd
fix: update readme library (#1892) 2020-08-01 09:16:18 +02:00
Jian-Chen Chen (jesse)
912482a5ae
feat: ca certificate is optional for https configuration (#1853)
* setup https server

* typed handleHttps

* fix if condition

* generate certificate on the fly

* revert yarn.lock

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-06-30 19:05:29 +02:00
Jian-Chen Chen (jesse)
80ade97801
feat: npm deprecation support (#1842)
* support deprecation

* test case for deprecation

* fix format

* testing for multiple packages deprecation

* update README

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
2020-06-19 22:54:03 +02:00
Juan Picado @jotadeveloper
4cf61d6e8c
chore: upgrade dependencies (#1773)
* chore: update dependencies

* chore: rollback @types/express
2020-04-09 11:09:30 +02:00
Kevin Yockey
3aaa04829a
fix: adding Content-Type to response in GET /-/all (#1697) (#1728) 2020-03-03 21:16:53 +01:00
Robin van Boven
19d9fc2fa5 fix: use hasProxyTo to find correct uplink for tarballs (#1644)
* test: different uplinks with the same URL

This test reproduces #1642

* fix: use hasProxyTo to find correct uplink for tarballs

Fixes #1642

Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>
2020-01-11 08:39:58 +01:00
Giedrius Grabauskas
4f43347b50 fix: updated combine url fix method (#1647)
* test: added more combineBaseUrl tests

* fix: optimized and updated combineBaseUrl method logic
2020-01-08 09:30:23 +01:00
Juan Picado @jotadeveloper
c30412b6db refactor: update monorepo deps and types (#1631) 2019-12-25 14:46:14 +01:00
Juan Picado @jotadeveloper
7fe943f7bc build: update dependencies (#1630)
* chore: update dependencies

* chore: update secrets
2019-12-23 09:29:27 +01:00
Juan Picado @jotadeveloper
dc25630ef2
test: add test for listen port 2019-12-15 23:04:11 +01:00
Juan Picado @jotadeveloper
b6d2b2690a
chore: add info test 2019-12-15 22:18:47 +01:00
Juan Picado @jotadeveloper
291c8cadc8
chore: fix typo 2019-12-15 17:33:15 +01:00
Juan Picado @jotadeveloper
f5c3b796f2
chore: rename class 2019-12-15 17:18:40 +01:00
Juan Picado @jotadeveloper
582b19d02f
test: add test for install a package 2019-12-15 17:06:28 +01:00