mobbdev 0.0.142 → 0.0.143

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/index.mjs +5 -10
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -4655,14 +4655,14 @@ var { stdout: stdout2 } = supportsColor;
4655
4655
  function createFork({ args, processPath, name }, options) {
4656
4656
  const child = cp.fork(processPath, args, {
4657
4657
  stdio: ["inherit", "pipe", "pipe", "ipc"],
4658
- env: { FORCE_COLOR: stdout2 ? "1" : "0" }
4658
+ env: { ...process2.env, FORCE_COLOR: stdout2 ? "1" : "0" }
4659
4659
  });
4660
4660
  return createChildProcess({ childProcess: child, name }, options);
4661
4661
  }
4662
4662
  function createSpwan({ args, processPath, name }, options) {
4663
4663
  const child = cp.spawn(processPath, args, {
4664
4664
  stdio: ["inherit", "pipe", "pipe", "ipc"],
4665
- env: { FORCE_COLOR: stdout2 ? "1" : "0" }
4665
+ env: { ...process2.env, FORCE_COLOR: stdout2 ? "1" : "0" }
4666
4666
  });
4667
4667
  return createChildProcess({ childProcess: child, name }, options);
4668
4668
  }
@@ -4825,14 +4825,11 @@ import open from "open";
4825
4825
  var debug9 = Debug10("mobbdev:snyk");
4826
4826
  var require3 = createRequire2(import.meta.url);
4827
4827
  var SNYK_PATH = require3.resolve("snyk/bin/snyk");
4828
- var SNYK_ARTICLE_URL = "https://docs.snyk.io/scan-application-code/snyk-code/getting-started-with-snyk-code/activating-snyk-code-using-the-web-ui/step-1-enabling-the-snyk-code-option";
4828
+ var SNYK_ARTICLE_URL = "https://docs.snyk.io/scan-using-snyk/snyk-code/configure-snyk-code#enable-snyk-code";
4829
4829
  debug9("snyk executable path %s", SNYK_PATH);
4830
4830
  async function forkSnyk(args, { display }) {
4831
4831
  debug9("fork snyk with args %o %s", args, display);
4832
- return createFork(
4833
- { args, processPath: SNYK_PATH, name: "checkmarx" },
4834
- { display }
4835
- );
4832
+ return createFork({ args, processPath: SNYK_PATH, name: "snyk" }, { display });
4836
4833
  }
4837
4834
  async function getSnykReport(reportPath, repoRoot, { skipPrompts = false }) {
4838
4835
  debug9("get snyk report start %s %s", reportPath, repoRoot);
@@ -4858,9 +4855,7 @@ async function getSnykReport(reportPath, repoRoot, { skipPrompts = false }) {
4858
4855
  ["code", "test", `--sarif-file-output=${reportPath}`, repoRoot],
4859
4856
  { display: true }
4860
4857
  );
4861
- if (scanOutput.includes(
4862
- "Snyk Code is not supported for org: enable in Settings > Snyk Code"
4863
- )) {
4858
+ if (scanOutput.includes("Snyk Code is not supported for org")) {
4864
4859
  debug9("snyk code is not enabled %s", scanOutput);
4865
4860
  snykSpinner.error({ text: "\u{1F50D} Snyk configuration needed" });
4866
4861
  const answer = await snykArticlePrompt();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mobbdev",
3
- "version": "0.0.142",
3
+ "version": "0.0.143",
4
4
  "description": "Automated secure code remediation tool",
5
5
  "repository": "https://github.com/mobb-dev/bugsy",
6
6
  "main": "dist/index.js",
@@ -58,7 +58,7 @@
58
58
  "parse-diff": "0.11.1",
59
59
  "semver": "7.6.3",
60
60
  "simple-git": "3.25.0",
61
- "snyk": "1.1292.0",
61
+ "snyk": "1.1292.4",
62
62
  "supports-color": "9.4.0",
63
63
  "tar": "6.2.1",
64
64
  "tmp": "0.2.3",