Commit Graph

10 Commits

Author SHA1 Message Date
Mike McCready 633764f7c4
chore(deps): update eslint to 9.22.0 (#676)
update @yarnpkg/eslint-config to 3.0.0

fix fixable eslint formatting errors

add @typescript-eslint/no-unused-vars caughtErrors:none

change VScode setting to eslint.useFlatConfig true
2025-03-26 20:26:06 +01:00
Thomas Scholtes c388c64805
chore(tests): don’t keep HTTP connections alive (#645)
This change almost halves the time it takes to run `tests/main.test.ts`.
2025-02-10 23:37:21 +01:00
Antoine du Hamel eb63873c6c
fix: fallback to `shasum` when `integrity` is not defined (#542)
Some npm registries do not define an `integrity` field, in which case
we can try using the `shasum` field instead.
2024-07-21 16:38:30 +02:00
Antoine du Hamel db6fae50cf
fix: replace npm registry domain in tarball URL (#502) 2024-07-12 10:43:09 +02:00
Alex Kessock 6efa349882
fix: COREPACK_NPM_REGISTRY should allow for username/password auth (#466) 2024-04-24 17:13:00 +02:00
Antoine du Hamel e561dd00bb
feat: verify integrity signature when downloading from npm registry (#432)
When the user has not provided any hash (so when running `corepack up`/`corepack use …`), and the package manager is downloaded from the npm registry, we can verify the signature.

BREAKING CHANGE: attempting to download a version from the npm registry (or a mirror) that was published using the now deprecated PGP signature without providing a hash will trigger an error. Users can disable the signature verification using a environment variable.
2024-04-12 22:49:11 +00: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 14b8a01abb
chore: fix tests on custom registry (#445) 2024-04-01 11:46:16 +02:00
Antoine du Hamel d2677538cd
fix: re-add support for custom registries with auth (#397) 2024-03-27 19:23:43 +01:00