devmap 0.3.1__tar.gz → 0.3.3__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devmap
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Map your machine's dev environment and surface issues (PATH conflicts, ghost binaries, multi-version collisions). fastfetch-for-dev-tools. This PyPI package ships the real devmap CLI (a bundled JavaScript app launched via Node.js or Bun), so `pip install devmap && devmap` works standalone.
5
5
  Author: devmap contributors
6
6
  License: MIT
@@ -2,7 +2,7 @@
2
2
  // @bun
3
3
 
4
4
  // src/version.ts
5
- var VERSION = "0.3.1";
5
+ var VERSION = "0.3.3";
6
6
 
7
7
  // src/install.ts
8
8
  function isIsolated(i) {
@@ -239,8 +239,8 @@ function whichInDirs(name, dirs) {
239
239
  }
240
240
  return out;
241
241
  }
242
- var SEMVER_RE = /(?<![\d.])\d+\.\d+\.\d+(?:[-+][0-9A-Za-z.]+)?(?![\d.])/;
243
- var LOOSE_VERSION_RE = /(?<![\d.])\d+\.\d+(?![\d.])/;
242
+ var SEMVER_RE = /(?<![\d.])(\d+\.\d+\.\d+)(?:[-.+][0-9A-Za-z._-]+)*(?![\d.])/;
243
+ var LOOSE_VERSION_RE = /(?<![\d.])(\d+\.\d+)(?:[-.+][0-9A-Za-z._-]+)*(?![\d.])/;
244
244
  function extractVersion(out, binPath) {
245
245
  const lines = out.split(/\r?\n/).map((l) => l.trim()).filter((l) => l && !l.startsWith("["));
246
246
  if (binPath) {
@@ -555,17 +555,26 @@ var SCA_TOOLS = [
555
555
  auditArgs: ["-f", "json"],
556
556
  parse: (json) => {
557
557
  const out = [];
558
+ const sevOf = (s) => s ? toSeverity(s) : "error";
559
+ const seen = new Set;
560
+ const push = (name, vid, sev, title, detail) => {
561
+ const key = `${name}|${vid}`;
562
+ if (seen.has(key))
563
+ return;
564
+ seen.add(key);
565
+ out.push(makeCheck(`security.deps.pipaudit.${vid}`, "vuln", sev, title, detail, [name]));
566
+ };
558
567
  for (const dep of json?.dependencies || []) {
559
568
  for (const v of dep?.vulns || []) {
560
- const sev = toSeverity(v?.severity);
569
+ const sev = sevOf(v?.severity);
561
570
  const vid = v?.id || "UNKNOWN";
562
- out.push(makeCheck(`security.deps.pipaudit.${vid}`, "vuln", sev, `${dep?.name || "?"}@${dep?.version || "?"} affected by ${vid} (${sev === "error" ? "HIGH" : "MEDIUM"})`, `${vid}: ${v?.description || ""}. Fix versions: ${(v?.fix_versions || []).join(", ") || "n/a"}.`, [dep?.name || ""]));
571
+ push(dep?.name || "?", vid, sev, `${dep?.name || "?"}@${dep?.version || "?"} affected by ${vid} (${sev === "error" ? "HIGH" : "MEDIUM"})`, `${vid}: ${v?.description || ""}. Fix versions: ${(v?.fix_versions || []).join(", ") || "n/a"}.`);
563
572
  }
564
573
  }
565
574
  for (const v of json?.vulnerabilities || []) {
566
- const sev = toSeverity(v?.severity);
575
+ const sev = sevOf(v?.severity);
567
576
  const vid = v?.id || "UNKNOWN";
568
- out.push(makeCheck(`security.deps.pipaudit.${vid}`, "vuln", sev, `${v?.name || "?"} affected by ${vid}`, `${vid}: ${v?.description || ""}.`, [v?.name || ""]));
577
+ push(v?.name || "?", vid, sev, `${v?.name || "?"} affected by ${vid}`, `${vid}: ${v?.description || ""}.`);
569
578
  }
570
579
  return out;
571
580
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: devmap
3
- Version: 0.3.1
3
+ Version: 0.3.3
4
4
  Summary: Map your machine's dev environment and surface issues (PATH conflicts, ghost binaries, multi-version collisions). fastfetch-for-dev-tools. This PyPI package ships the real devmap CLI (a bundled JavaScript app launched via Node.js or Bun), so `pip install devmap && devmap` works standalone.
5
5
  Author: devmap contributors
6
6
  License: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "devmap"
7
- version = "0.3.1"
7
+ version = "0.3.3"
8
8
  description = "Map your machine's dev environment and surface issues (PATH conflicts, ghost binaries, multi-version collisions). fastfetch-for-dev-tools. This PyPI package ships the real devmap CLI (a bundled JavaScript app launched via Node.js or Bun), so `pip install devmap && devmap` works standalone."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
File without changes
File without changes
File without changes