Skip to content

Commit 89f275b

Browse files
nodejs-github-bottargos
authored andcommitted
deps: update corepack to 0.28.1
PR-URL: #52946 Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
1 parent a97ff75 commit 89f275b

File tree

4 files changed

+28
-11
lines changed

4 files changed

+28
-11
lines changed

deps/corepack/CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [0.28.1](https://github.com/nodejs/corepack/compare/v0.28.0...v0.28.1) (2024-05-10)
4+
5+
6+
### Features
7+
8+
* add support for `COREPACK_INTEGRITY_KEYS=0` ([#470](https://github.com/nodejs/corepack/issues/470)) ([f15ebc2](https://github.com/nodejs/corepack/commit/f15ebc289ebcd6a86580f15ae3c4ef0e1be37c4b))
9+
* update package manager versions ([#469](https://github.com/nodejs/corepack/issues/469)) ([985895b](https://github.com/nodejs/corepack/commit/985895bccb5ec68b3645c540d8500c572e1ccadb))
10+
11+
12+
### Bug Fixes
13+
14+
* COREPACK_NPM_REGISTRY should allow for username/password auth ([#466](https://github.com/nodejs/corepack/issues/466)) ([6efa349](https://github.com/nodejs/corepack/commit/6efa34988229918debe6e881d45ba6715282f283))
15+
316
## [0.28.0](https://github.com/nodejs/corepack/compare/v0.27.0...v0.28.0) (2024-04-20)
417

518

deps/corepack/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -296,8 +296,9 @@ same major line. Should you need to upgrade to a new major, use an explicit
296296
- `HTTP_PROXY`, `HTTPS_PROXY`, and `NO_PROXY` are supported through
297297
[`node-proxy-agent`](https://github.com/TooTallNate/node-proxy-agent).
298298

299-
- `COREPACK_INTEGRITY_KEYS` can be set to an empty string to instruct Corepack
300-
to skip integrity checks, or a JSON string containing custom keys.
299+
- `COREPACK_INTEGRITY_KEYS` can be set to an empty string or `0` to
300+
instruct Corepack to skip integrity checks, or to a JSON string containing
301+
custom keys.
301302

302303
## Troubleshooting
303304

deps/corepack/dist/lib/corepack.cjs

+11-8
Original file line numberDiff line numberDiff line change
@@ -22417,7 +22417,7 @@ function String2(descriptor, ...args) {
2241722417
}
2241822418

2241922419
// package.json
22420-
var version = "0.28.0";
22420+
var version = "0.28.1";
2242122421

2242222422
// sources/Engine.ts
2242322423
var import_fs4 = __toESM(require("fs"));
@@ -22429,7 +22429,7 @@ var import_semver4 = __toESM(require_semver2());
2242922429
var config_default = {
2243022430
definitions: {
2243122431
npm: {
22432-
default: "10.5.2+sha1.0e9b72afaf5ecf8249b2abb4b7417db6739c1475",
22432+
default: "10.7.0+sha1.c87e0bbb7a53422670e423d0198120760f67c3b7",
2243322433
fetchLatestFrom: {
2243422434
type: "npm",
2243522435
package: "npm"
@@ -22466,7 +22466,7 @@ var config_default = {
2246622466
}
2246722467
},
2246822468
pnpm: {
22469-
default: "9.0.3+sha1.ff3ad37177cbd0843e533aab13d5e40a05803b47",
22469+
default: "9.1.0+sha1.217063ce3fcbf44f3051666f38b810f1ddefee4a",
2247022470
fetchLatestFrom: {
2247122471
type: "npm",
2247222472
package: "pnpm"
@@ -22530,7 +22530,7 @@ var config_default = {
2253022530
package: "yarn"
2253122531
},
2253222532
transparent: {
22533-
default: "4.1.1+sha224.00f08619463229f8ba40c4ee90e8c2e4ced1f11c3115c26f3b98432e",
22533+
default: "4.2.2+sha224.1e50daf19e5e249a025569752c60b88005fddf57d10fcde5fc68b88f",
2253422534
commands: [
2253522535
[
2253622536
"yarn",
@@ -22702,7 +22702,7 @@ ${key.key}
2270222702
async function fetchLatestStableVersion(packageName) {
2270322703
const metadata = await fetchAsJson2(packageName, `latest`);
2270422704
const { version: version2, dist: { integrity, signatures } } = metadata;
22705-
if (process.env.COREPACK_INTEGRITY_KEYS !== ``) {
22705+
if (!shouldSkipIntegrityCheck()) {
2270622706
verifySignature({
2270722707
packageName,
2270822708
version: version2,
@@ -22736,8 +22736,8 @@ async function fetch(input, init) {
2273622736
if (typeof input === `string`)
2273722737
input = new URL(input);
2273822738
let headers = init?.headers;
22739-
const username = input.username ?? process.env.COREPACK_NPM_USERNAME;
22740-
const password = input.password ?? process.env.COREPACK_NPM_PASSWORD;
22739+
const username = input.username || process.env.COREPACK_NPM_USERNAME;
22740+
const password = input.password || process.env.COREPACK_NPM_PASSWORD;
2274122741
if (username || password) {
2274222742
headers = {
2274322743
...headers,
@@ -23031,7 +23031,7 @@ async function installVersion(installTarget, locator, { spec }) {
2303123031
}
2303223032
if (!build[1]) {
2303323033
const registry = getRegistryFromPackageManagerSpec(spec);
23034-
if (registry.type === `npm` && !registry.bin && process.env.COREPACK_INTEGRITY_KEYS !== ``) {
23034+
if (registry.type === `npm` && !registry.bin && !shouldSkipIntegrityCheck()) {
2303523035
if (signatures == null || integrity == null)
2303623036
({ signatures, integrity } = await fetchTarballURLAndSignature(registry.package, version2));
2303723037
verifySignature({ signatures, integrity, packageName: registry.package, version: version2 });
@@ -23136,6 +23136,9 @@ async function runVersion(locator, installSpec, binName, args) {
2313623136
process.mainModule = void 0;
2313723137
process.nextTick(import_module.default.runMain, binPath);
2313823138
}
23139+
function shouldSkipIntegrityCheck() {
23140+
return process.env.COREPACK_INTEGRITY_KEYS === `` || process.env.COREPACK_INTEGRITY_KEYS === `0`;
23141+
}
2313923142

2314023143
// sources/semverUtils.ts
2314123144
var import_semver2 = __toESM(require_semver2());

deps/corepack/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "corepack",
3-
"version": "0.28.0",
3+
"version": "0.28.1",
44
"homepage": "https://github.com/nodejs/corepack#readme",
55
"bugs": {
66
"url": "https://github.com/nodejs/corepack/issues"

0 commit comments

Comments
 (0)