0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-13 22:48:31 -05:00
Commit graph

4173 commits

Author SHA1 Message Date
薄涛
e4573c7e15
fix: avoid setting body for GET requests (#3643)
* fix: avoid setting body for GET requests

When making a GET request to certain uplinks, such as https://registry.npmmirror.com, setting the body field can result in a 413 error. Previously, the code was setting the body field for all requests, including GET requests.

This commit fixes the issue by checking the request method and avoiding setting the body field for GET requests. This ensures that GET requests are not affected by the issue and can be made without error.

Fixes #3601

* add missing deps for run test locally

* test(up-storage): add unit test about uplink is npmmirror

Cause thers is a bug in `isObject` function from `@verdaccio/core`, when `options.json` is `true`
GET request body will be string 'true', some uplinks might return 413 status code such as
https://registry.npmmirror.com

fix #3601

* chore(deps): update @verdaccio/core

---------

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
Co-authored-by: botao <botao@tal.com>
2023-02-24 07:18:18 +01:00
Juan Picado
164d9d2185 add missing deps for run test locally 2023-02-22 07:51:32 +01:00
Juan Picado
7752424de0 chore(release): 5.21.1 2023-02-14 22:33:30 +01:00
Juan Picado
d157131225 chore: remove changelog failures on master 2023-02-14 22:33:04 +01:00
Juan Picado
5385f33991 Update trigger-release.ts 2023-02-14 22:32:40 +01:00
Juan Picado
4105fecf4c fix: restore @verdaccio/ui-theme version 2023-02-14 22:32:01 +01:00
Juan Picado
a858c2161b chore(release): 5.21.0 2023-02-14 22:25:08 +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
bf9ed26d90
feat: replace middleware and logger core (#3586)
Use verdaccio 6 modules for middleware and logger with pino 7
2023-02-09 21:42:24 +01:00
Juan Picado
cbe4a17337 chore(release): 5.20.1 2023-01-29 16:43:03 +01:00
Juan Picado
fc7cdc19bb chore: test types on builds 2023-01-29 16:25:36 +01:00
Juan Picado
45d7c95a08 fix: pushed wrong types library and broken build 2023-01-29 16:24:58 +01:00
Juan Picado
7439c8d120 chore(release): 5.20.0 2023-01-29 15:34:10 +01:00
Juan Picado
3320b4dfe2
fix: update docker base to 18.13.0 (#3579) 2023-01-28 17:42:38 +01:00
Juan Picado
bae430fe24
feat: refactor test and use verdaccio 6 core modules (#3569)
chore: clean up comments

remove commitlint

update deps

add new tests

test

separate ci

test

test

test

test

test

test

chore: add preprelase

test

test

test

test

test

chore: update deps

Update release-snapshot.yml

Update .npmignore

test

chore: remove @verdaccio/commons-api dep

chore: cleanup

remove normalizeContributors

remove validateMetadata

fix test

clean up getLocalRegistryTarballUri

Update store.spec.ts

clean up convertDistRemoteToLocalTarballUrls

chore: update libraries

reuse getPublic url

clean up

Update jest.config.js

Update jest.config.js

update nvmrc

add tests
2023-01-28 14:39:37 +01:00
Juan Picado
50a20e922b
chore: fix automated release notes on publish (#3568)
* chore: fix automated release notes on publish

* chore: fix automated release notes on publish
2023-01-19 22:53:05 +01:00
Juan Picado
d1519228a3
fix: update dependencies (#3567)
* chore: update dependencies

* chore: update batch 2
2023-01-19 00:21:28 +01:00
Juan Picado
a8a992cfb6
chore: upgrade jest 29 (#3566)
* chore: upgrade jest 29

* Update api.spec.ts
2023-01-19 00:09:24 +01:00
Juan Picado
57ac3389f1 chore: removed unused files 2023-01-18 22:50:29 +01:00
Juan Picado
6df04e1ce1
chore: upgrade eslint and prettier (#3565) 2023-01-18 22:49:28 +01:00
Juan Picado
0c315c588c chore(release): 5.19.1 2023-01-07 22:32:17 +01:00
Juan Picado
a774e29715
fix: include ts types and systemd into the published package (#3556) 2023-01-07 22:31:44 +01:00
Juan Picado
3032fc8b28 chore(release): 5.19.0 2022-12-25 22:25:54 +01:00
Juan Picado
99a39d55a2
feat(security): update dependencies (#3540)
* fix:  update dependencies

https://security.snyk.io/vuln/SNYK-JS-JSONWEBTOKEN-3180020

* chore: clean cache

* Update ci.yml

* Update ci.yml
2022-12-25 21:56:24 +01:00
Juan Picado
65f00d33d2
chore: update readme 2022-12-17 13:54:37 +01:00
Juan Picado
64d2ae6ee0 Update smok-test-docker.yml 2022-12-04 11:03:08 +01:00
Juan Picado
01dffb2748 Update smok-test-docker.yml 2022-12-04 10:57:19 +01:00
Juan Picado
8a5daa92ab Update smok-test-docker.yml 2022-12-04 10:53:45 +01:00
Juan Picado
82326e7c5c Create smok-test-docker.yml 2022-12-04 10:50:32 +01:00
Juan Picado
9353b3ebf0
fix: update core dependencies (#3519) 2022-12-03 17:58:46 +01:00
Juan Picado
34ac91f7cb chore(release): 5.18.0 2022-11-23 07:47:23 +01:00
Juan Picado
0b49566176
fix: add hasInstallScript calculation (#3509)
* fix: add hasInstallScript calculation

* Update storage-utils.ts

* chore: add tests
2022-11-23 07:35:10 +01:00
Juan Picado
a0a0654f15
Update package.json 2022-11-22 19:50:02 +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
83ed963f20 chore(release): 5.17.0 2022-11-19 22:02:15 +01:00
Juan Picado
8715a5cfa2
feat: highlight readme source code (#3506)
* feat: highlight readme source code

* chore: fix tests

* Delete utils.spec.ts.snap
2022-11-19 22:00:56 +01:00
Juan Picado
07144c9886
fix(sec): update base image to v18.12.1-alpine (#3489) 2022-11-09 20:23:27 +01:00
Juan Picado
32535002f4 chore(release): 5.16.3 2022-11-08 20:40:59 +01:00
Juan Picado
32ecdfb301 fix: remove dry run
^_^ not my best release day
2022-11-08 20:40:34 +01:00
Juan Picado
1500f9272e chore(release): 5.16.2 2022-11-08 20:37:55 +01:00
Juan Picado
1f477bd6e8 fix: release package
mixing npm and yarn is something to fix, not good mix
2022-11-08 20:37:46 +01:00
Juan Picado
c7e6222b69 chore: restore npmignore 2022-11-08 20:35:46 +01:00
Juan Picado
4573ad9c8a chore: test release 5.x 2022-11-08 20:32:30 +01:00
Juan Picado
6eb1ea595f chore: test release on ci 2022-11-08 20:30:07 +01:00
Juan Picado
9735e6e401 chore(release): 5.16.1 2022-11-08 20:14:12 +01:00
Juan Picado
61e01368f4 fix: missing files on release
this happens when you remove e2e cli :(
2022-11-08 20:13:54 +01:00
Juan Picado
0a3c66938a chore(release): 5.16.0 2022-11-08 19:47:02 +01:00
Juan Picado
7a000bccdb
fix: update core deps (#3485)
* fix: update core deps

* Update e2e-gatsbyjs-cli-workflow.yml

* Update e2e-gatsbyjs-cli-workflow.yml

* Update e2e-gatsbyjs-cli-workflow.yml
2022-11-08 19:45:25 +01:00
Juan Picado
ebaaf3f681
feat: docker image refactor a new internal binary run (#3475) 2022-11-08 07:29:19 +01:00
Juan Picado
644938c0f3
feat: update to docker base image to node v18.12.0 (#3469)
* feat: update to  node v18.12.0

* Delete ci-e2e.yml
2022-11-02 23:09:15 +01:00