snyk 1.919.0 → 1.920.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.
@@ -1,5 +1,5 @@
1
- exports.id = 479;
2
- exports.ids = [479];
1
+ exports.id = 756;
2
+ exports.ids = [756];
3
3
  exports.modules = {
4
4
 
5
5
  /***/ 28231:
@@ -177650,7 +177650,7 @@ exports.formatGenericPluginError = formatGenericPluginError;
177650
177650
  "use strict";
177651
177651
 
177652
177652
  Object.defineProperty(exports, "__esModule", ({ value: true }));
177653
- exports.buildArgs = exports.inspect = exports.getCommand = void 0;
177653
+ exports.buildArgs = exports.inspect = exports.getCommand = exports.debug = void 0;
177654
177654
  const tslib_1 = __webpack_require__(90999);
177655
177655
  const javaCallGraphBuilder = __webpack_require__(16623);
177656
177656
  const os = __webpack_require__(12087);
@@ -177675,6 +177675,7 @@ function debug(s) {
177675
177675
  }
177676
177676
  logger(s);
177677
177677
  }
177678
+ exports.debug = debug;
177678
177679
  function getCommand(root, targetFile) {
177679
177680
  if (!targetFile) {
177680
177681
  return 'mvn';
@@ -177813,7 +177814,8 @@ function inspect(root, targetFile, options) {
177813
177814
  };
177814
177815
  }
177815
177816
  catch (error) {
177816
- debug(`>>> Output from mvn: ${result}`);
177817
+ if (result)
177818
+ debug(`>>> Output from mvn: ${result}`);
177817
177819
  error.message = error_format_1.formatGenericPluginError(error, mavenCommand, mvnArgs);
177818
177820
  throw error;
177819
177821
  }
@@ -177822,7 +177824,7 @@ function inspect(root, targetFile, options) {
177822
177824
  exports.inspect = inspect;
177823
177825
  function buildArgs(rootPath, executionPath, targetFile, mavenArgs) {
177824
177826
  // Requires Maven >= 2.2
177825
- let args = ['dependency:tree', '-DoutputType=dot'];
177827
+ let args = ['dependency:tree', '-DoutputType=dot', '--batch-mode'];
177826
177828
  if (targetFile) {
177827
177829
  // if we are where we can execute - we preserve the original path;
177828
177830
  // if not - we rely on the executor (mvnw) to be spawned at the closest directory, leaving us w/ the file itself
@@ -178016,6 +178018,7 @@ function getConstraint(str) {
178016
178018
  Object.defineProperty(exports, "__esModule", ({ value: true }));
178017
178019
  exports.execute = void 0;
178018
178020
  const childProcess = __webpack_require__(63129);
178021
+ const index_1 = __webpack_require__(29615);
178019
178022
  function execute(command, args, options) {
178020
178023
  const spawnOptions = { shell: true };
178021
178024
  if (options && options.cwd) {
@@ -178031,6 +178034,12 @@ function execute(command, args, options) {
178031
178034
  proc.stderr.on('data', (data) => {
178032
178035
  stderr = stderr + data;
178033
178036
  });
178037
+ proc.on('error', (err) => {
178038
+ index_1.debug(`Child process errored with: ${err.message}`);
178039
+ });
178040
+ proc.on('exit', (code) => {
178041
+ index_1.debug(`Child process exited with code: ${code}`);
178042
+ });
178034
178043
  proc.on('close', (code) => {
178035
178044
  if (code !== 0) {
178036
178045
  return reject(new Error(stderr || stdout));
@@ -254501,4 +254510,4 @@ module.exports = {"i8":"1.4.0"};
254501
254510
 
254502
254511
  };
254503
254512
  ;
254504
- //# sourceMappingURL=479.index.js.map
254513
+ //# sourceMappingURL=756.index.js.map