Commit Graph

19 Commits

Author SHA1 Message Date
Thomas Scholtes aa1b84939a
Get NPM signing keys from @sigstore/tuf
Instead of hardcoding NPM signing keys for verification we get them from
sigstore’s TUF repository. This is in line with how npm implements
signature verification.

Fixes #616, fixes #612
2025-04-04 17:58:23 +02:00
Alex Kessock 6efa349882
fix: COREPACK_NPM_REGISTRY should allow for username/password auth (#466) 2024-04-24 17:13:00 +02:00
Gavin King 2d63536413
fix: Incorrect authorization prefix for basic auth, and undocumented env var (#454)
Co-authored-by: Gavin King <gavin.king@cgi.com>
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-04-12 23:28:11 +02:00
Antoine du Hamel 73d9a1e2d2
fix: correctly set `Dispatcher` prototype for `ProxyAgent` (#451)
In an attempt to bundle only a subset of Undici code, we forgot to take
some side-effect into account.
2024-04-12 23:27:26 +02:00
Antoine du Hamel d2677538cd
fix: re-add support for custom registries with auth (#397) 2024-03-27 19:23:43 +01:00
Maël Nison 8b6c6d4b2b
feat: Pins the package manager as it's used for the first time (#413)
* feat: Pins the package manager as it's used for the first time

* Adds a warning when auto-pinning the package manager version

* Updates wording
2024-03-03 13:50:18 +01:00
Maël Nison 00506b2a15
fix: group the download prompt together (#391) 2024-02-21 21:24:13 +01:00
Antoine du Hamel bc137a0073
fix: do not show download prompt when downloading JSON (#383) 2024-02-21 16:46:37 +01:00
Kristoffer K fe6a3072f6
feat!: use `fetch` (#365)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2024-02-11 23:52:38 +01:00
Antoine du Hamel 6b8d87f237
feat!: prompt user before downloading software (#360) 2024-01-30 23:38:33 +01:00
guibwl 6df5063b14
feat: add support for HTTP redirect (#341)
Corepack will now follow the `Location` header when receiving a 30x HTTP status code. This should allow Corepack to work with proxies that redirect to a different URL.
2023-12-29 12:15:57 +01:00
Antoine du Hamel 863e0e0a50
chore(deps): upgrade all npm dependencies (#266) 2023-05-19 09:37:31 +00:00
tison 25fa62354b
chore: report URL on `fetchUrlStream` error message (#261) 2023-04-29 13:00:31 -04:00
Spencer Kaiser aa3cbdb54f
fix(doc): add a note about troubleshooting network errors (#259)
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
2023-04-29 14:02:40 +02:00
Kirill Romanov 876ce02fe7
feat: auto setup proxy for http requests (#69)
* feat: auto setup proxy for http requests

* Adds dependencies

* Triggers CI again

Co-authored-by: Maël Nison <nison.mael@gmail.com>
2022-04-08 00:05:54 +02:00
Maël Nison ee2d45de0d
Modernize the dependencies (#36)
* Upgrade dependencies

* Uses a more recent Yarn version as jumper

* Linting

* Fixes Nock recordings

* Replaces git tags by urls

* Updates nock records
2021-05-31 14:35:56 +02:00
Maël Nison 9809b8f856 Refactors pmm -> corepack 2020-09-27 00:51:52 +02:00
Maël Nison 8c494c6cae Adds tests 2020-09-08 14:26:09 +02:00
Maël Nison 8c29576ca8 Refactors the code 2020-08-03 18:54:16 +02:00