@pnpm/config.package-is-installable 1100.0.0 → 1100.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,6 @@ export function checkPlatform(packageId, wantedPlatform, supportedArchitectures)
37
37
  function checkList(value, list) {
38
38
  let tmp;
39
39
  let match = false;
40
- let blc = 0;
41
40
  if (typeof list === 'string') {
42
41
  list = [list];
43
42
  }
@@ -54,14 +53,15 @@ function checkList(value, list) {
54
53
  if (tmp === value) {
55
54
  return false;
56
55
  }
57
- ++blc;
58
56
  }
59
57
  else {
60
58
  match = match || tmp === value;
61
59
  }
62
60
  }
63
61
  }
64
- return match || blc === list.length;
62
+ // No negation rejected any value. Accept if a positive entry matched, or if the list
63
+ // contains only negations (no positive constraints to satisfy).
64
+ return match || list.every(entry => entry[0] === '!');
65
65
  }
66
66
  function dedupeCurrent(current, supported) {
67
67
  return supported.map((supported) => supported === 'current' ? current : supported);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/config.package-is-installable",
3
- "version": "1100.0.0",
3
+ "version": "1100.0.2",
4
4
  "description": "Checks if a package is installable on the current system",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -28,10 +28,10 @@
28
28
  "execa": "npm:safe-execa@0.3.0",
29
29
  "memoize": "^10.2.0",
30
30
  "semver": "^7.7.2",
31
- "@pnpm/core-loggers": "1100.0.0",
32
- "@pnpm/cli.meta": "1100.0.0",
33
- "@pnpm/engine.runtime.system-node-version": "1100.0.0",
34
- "@pnpm/types": "1100.0.0",
31
+ "@pnpm/cli.meta": "1100.0.1",
32
+ "@pnpm/core-loggers": "1100.0.1",
33
+ "@pnpm/engine.runtime.system-node-version": "1100.0.1",
34
+ "@pnpm/types": "1101.0.0",
35
35
  "@pnpm/error": "1100.0.0"
36
36
  },
37
37
  "peerDependencies": {
@@ -40,8 +40,8 @@
40
40
  "devDependencies": {
41
41
  "@jest/globals": "30.3.0",
42
42
  "@types/semver": "7.7.1",
43
- "@pnpm/logger": "1100.0.0",
44
- "@pnpm/config.package-is-installable": "1100.0.0"
43
+ "@pnpm/config.package-is-installable": "1100.0.2",
44
+ "@pnpm/logger": "1100.0.0"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=22.13"