@cyclonedx/cdxgen 9.1.0 → 9.2.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.
package/docker.js CHANGED
@@ -22,6 +22,7 @@ import {
22
22
  } from "node:os";
23
23
  import { x } from "tar";
24
24
  import { spawnSync } from "node:child_process";
25
+ import { DEBUG_MODE } from "./utils.js";
25
26
 
26
27
  const isWin = _platform() === "win32";
27
28
 
@@ -32,12 +33,6 @@ let isDockerRootless = false;
32
33
  const WIN_LOCAL_TLS = "http://localhost:2375";
33
34
  let isWinLocalTLS = false;
34
35
 
35
- // Debug mode flag
36
- const DEBUG_MODE =
37
- process.env.CDXGEN_DEBUG_MODE === "debug" ||
38
- process.env.SCAN_DEBUG_MODE === "debug" ||
39
- process.env.SHIFTLEFT_LOGGING_LEVEL === "debug";
40
-
41
36
  /**
42
37
  * Method to get all dirs matching a name
43
38
  *
@@ -823,8 +818,5 @@ export const removeImage = async (fullImageName, force = false) => {
823
818
  `images/${fullImageName}?force=${force}`,
824
819
  "DELETE"
825
820
  );
826
- if (DEBUG_MODE) {
827
- console.log(removeData);
828
- }
829
821
  return removeData;
830
822
  };