@pnpm/deps.compliance.commands 1101.1.2 → 1101.1.3

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.
Files changed (2) hide show
  1. package/lib/audit/fix.js +2 -1
  2. package/package.json +16 -15
package/lib/audit/fix.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { writeSettings } from '@pnpm/config.writer';
2
2
  import { normalizeGhsaId } from '@pnpm/deps.compliance.audit';
3
+ import { sortDirectKeys } from '@pnpm/object.key-sorting';
3
4
  import semver from 'semver';
4
5
  export async function fix(auditReport, opts) {
5
6
  const fixableAdvisories = getFixableAdvisories(Object.values(auditReport.advisories), opts.auditConfig?.ignoreGhsas);
@@ -34,7 +35,7 @@ function createOverrides(advisories) {
34
35
  continue;
35
36
  entries.push([`${advisory.module_name}@${advisory.vulnerable_versions}`, caretRangeForPatched(advisory.patched_versions)]);
36
37
  }
37
- return Object.fromEntries(entries);
38
+ return sortDirectKeys(Object.fromEntries(entries));
38
39
  }
39
40
  // Use the minimum patched version with a caret so pnpm stays within the
40
41
  // same major as the fix. `>=X.Y.Z` alone can silently promote a dep to a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/deps.compliance.commands",
3
- "version": "1101.1.2",
3
+ "version": "1101.1.3",
4
4
  "description": "pnpm commands for audit, licenses, and sbom",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -34,27 +34,28 @@
34
34
  "ramda": "npm:@pnpm/ramda@0.28.1",
35
35
  "render-help": "^2.0.0",
36
36
  "semver": "^7.7.2",
37
- "@pnpm/cli.command": "1100.0.0",
38
37
  "@pnpm/cli.common-cli-options-help": "1100.0.0",
39
- "@pnpm/cli.meta": "1100.0.1",
40
38
  "@pnpm/cli.utils": "1101.0.0",
41
- "@pnpm/config.reader": "1101.1.1",
42
- "@pnpm/config.writer": "1100.0.2",
39
+ "@pnpm/config.reader": "1101.1.2",
40
+ "@pnpm/cli.meta": "1100.0.1",
41
+ "@pnpm/config.writer": "1100.0.3",
43
42
  "@pnpm/constants": "1100.0.0",
44
43
  "@pnpm/deps.compliance.audit": "1101.0.2",
45
44
  "@pnpm/deps.compliance.license-resolver": "1100.0.0",
46
45
  "@pnpm/deps.compliance.license-scanner": "1100.0.4",
47
- "@pnpm/deps.compliance.sbom": "1100.0.4",
48
- "@pnpm/installing.commands": "1100.1.3",
49
- "@pnpm/error": "1100.0.0",
46
+ "@pnpm/cli.command": "1100.0.0",
50
47
  "@pnpm/lockfile.fs": "1100.0.3",
48
+ "@pnpm/deps.compliance.sbom": "1100.0.5",
49
+ "@pnpm/installing.commands": "1100.1.4",
51
50
  "@pnpm/lockfile.types": "1100.0.2",
52
51
  "@pnpm/lockfile.utils": "1100.0.3",
53
52
  "@pnpm/lockfile.walker": "1100.0.2",
54
- "@pnpm/network.auth-header": "1100.0.1",
53
+ "@pnpm/object.key-sorting": "1100.0.0",
55
54
  "@pnpm/types": "1101.0.0",
55
+ "@pnpm/workspace.project-manifest-reader": "1100.0.2",
56
56
  "@pnpm/store.path": "1100.0.0",
57
- "@pnpm/workspace.project-manifest-reader": "1100.0.2"
57
+ "@pnpm/network.auth-header": "1100.0.1",
58
+ "@pnpm/error": "1100.0.0"
58
59
  },
59
60
  "peerDependencies": {
60
61
  "@pnpm/logger": ">=1001.0.0 <1002.0.0"
@@ -69,14 +70,14 @@
69
70
  "nock": "13.3.4",
70
71
  "read-yaml-file": "^3.0.0",
71
72
  "tempy": "3.0.0",
72
- "@pnpm/deps.compliance.commands": "1101.1.2",
73
+ "@pnpm/deps.compliance.commands": "1101.1.3",
73
74
  "@pnpm/logger": "1100.0.0",
74
- "@pnpm/prepare": "1100.0.3",
75
- "@pnpm/test-fixtures": "1100.0.0",
76
75
  "@pnpm/pkg-manifest.reader": "1100.0.1",
77
- "@pnpm/testing.command-defaults": "1100.0.1",
76
+ "@pnpm/prepare": "1100.0.3",
78
77
  "@pnpm/testing.mock-agent": "1100.0.1",
79
- "@pnpm/workspace.projects-filter": "1100.0.4"
78
+ "@pnpm/testing.command-defaults": "1100.0.1",
79
+ "@pnpm/workspace.projects-filter": "1100.0.5",
80
+ "@pnpm/test-fixtures": "1100.0.0"
80
81
  },
81
82
  "engines": {
82
83
  "node": ">=22.13"