cognium-dev 3.204.0 → 3.205.0

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/dist/cli.js +26 -8
  2. package/package.json +2 -2
package/dist/cli.js CHANGED
@@ -13632,7 +13632,13 @@ var SAFE_RECEIVERS_BY_METHOD = {
13632
13632
  "graphql",
13633
13633
  "apollo",
13634
13634
  "querybuilder",
13635
- "criteria"
13635
+ "criteria",
13636
+ "logger",
13637
+ "logging",
13638
+ "winston",
13639
+ "pino",
13640
+ "bunyan",
13641
+ "console"
13636
13642
  ]),
13637
13643
  authenticate: new Set([
13638
13644
  "auth",
@@ -45992,7 +45998,10 @@ function parseNpmLockDependencies(packageLock) {
45992
45998
  if (!name2)
45993
45999
  continue;
45994
46000
  const version = typeof info2.version === "string" ? info2.version : "unknown";
45995
- out2.push(dep("npm", name2, version, scopeOf(info2)));
46001
+ const entry = dep("npm", name2, version, scopeOf(info2));
46002
+ if (typeof info2.license === "string" && info2.license)
46003
+ entry.license = info2.license;
46004
+ out2.push(entry);
45996
46005
  }
45997
46006
  } else if (root.dependencies && typeof root.dependencies === "object") {
45998
46007
  const walk = (deps) => {
@@ -46280,7 +46289,8 @@ function toCycloneDx(deps, meta = {}) {
46280
46289
  metadata2.component = {
46281
46290
  type: "application",
46282
46291
  name: meta.name,
46283
- ...meta.version ? { version: meta.version } : {}
46292
+ ...meta.version ? { version: meta.version } : {},
46293
+ ...meta.license ? { licenses: [{ license: { name: meta.license } }] } : {}
46284
46294
  };
46285
46295
  }
46286
46296
  bom.metadata = metadata2;
@@ -46290,6 +46300,7 @@ function toCycloneDx(deps, meta = {}) {
46290
46300
  version: d.version,
46291
46301
  purl: d.purl,
46292
46302
  scope: d.scope === "dev" ? "excluded" : d.scope === "optional" ? "optional" : "required",
46303
+ ...d.license ? { licenses: [{ license: { name: d.license } }] } : {},
46293
46304
  "bom-ref": d.purl
46294
46305
  }));
46295
46306
  return bom;
@@ -46305,6 +46316,8 @@ function toSpdx(deps, meta = {}) {
46305
46316
  versionInfo: d.version,
46306
46317
  downloadLocation: "NOASSERTION",
46307
46318
  filesAnalyzed: false,
46319
+ licenseConcluded: "NOASSERTION",
46320
+ licenseDeclared: d.license ?? "NOASSERTION",
46308
46321
  externalRefs: [
46309
46322
  {
46310
46323
  referenceCategory: "PACKAGE-MANAGER",
@@ -46943,7 +46956,7 @@ var colors = {
46943
46956
  };
46944
46957
 
46945
46958
  // src/version.ts
46946
- var version = "3.204.0";
46959
+ var version = "3.205.0";
46947
46960
 
46948
46961
  // src/formatters.ts
46949
46962
  var LIBRARY_API_SURFACE_TAG2 = "library-api-surface:caller-responsibility";
@@ -48706,13 +48719,16 @@ async function runSbom(targetPath, options) {
48706
48719
  }
48707
48720
  const effective = manifests.filter((m) => !supersededInDir.has(`${dirname3(m)}\x00${basename(m)}`));
48708
48721
  let projectName = options.name;
48709
- if (!projectName) {
48722
+ let projectLicense;
48723
+ {
48710
48724
  const pkg = manifests.find((m) => basename(m) === "package.json");
48711
48725
  if (pkg) {
48712
48726
  try {
48713
- const n = JSON.parse(readFileSync(pkg, "utf-8")).name;
48714
- if (typeof n === "string" && n)
48715
- projectName = n;
48727
+ const parsed = JSON.parse(readFileSync(pkg, "utf-8"));
48728
+ if (!projectName && typeof parsed.name === "string" && parsed.name)
48729
+ projectName = parsed.name;
48730
+ if (typeof parsed.license === "string" && parsed.license)
48731
+ projectLicense = parsed.license;
48716
48732
  } catch {}
48717
48733
  }
48718
48734
  }
@@ -48733,6 +48749,8 @@ async function runSbom(targetPath, options) {
48733
48749
  if (!projectName)
48734
48750
  projectName = basename(absPath) || "project";
48735
48751
  const meta = { name: projectName, tool: "cognium-dev" };
48752
+ if (projectLicense)
48753
+ meta.license = projectLicense;
48736
48754
  if (!options.deterministic) {
48737
48755
  meta.timestamp = new Date().toISOString();
48738
48756
  const { randomUUID } = await import("crypto");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cognium-dev",
3
- "version": "3.204.0",
3
+ "version": "3.205.0",
4
4
  "description": "Static Application Security Testing CLI for detecting security vulnerabilities via taint tracking",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -66,7 +66,7 @@
66
66
  },
67
67
  "dependencies": {
68
68
  "@cognium/project-profile-detect": "^1.1.0",
69
- "circle-ir": "^3.204.0"
69
+ "circle-ir": "^3.205.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "@types/node": "^25.5.0",