snyk 1.951.0 → 1.952.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.
@@ -2489,9 +2489,11 @@ const format_test_error_1 = __webpack_require__(68214);
2489
2489
  const assert_iac_options_flag_1 = __webpack_require__(33111);
2490
2490
  const rules_1 = __webpack_require__(95343);
2491
2491
  const measurable_methods_1 = __webpack_require__(5687);
2492
+ const types_1 = __webpack_require__(94820);
2492
2493
  const pathLib = __webpack_require__(85622);
2493
2494
  const errors_1 = __webpack_require__(55191);
2494
2495
  const process_results_1 = __webpack_require__(1229);
2496
+ const error_utils_1 = __webpack_require__(36401);
2495
2497
  async function scan(iacOrgSettings, options, testSpinner, paths, orgPublicId, buildOciRules, projectRoot) {
2496
2498
  var _a, _b, _c, _d;
2497
2499
  const results = [];
@@ -2570,6 +2572,9 @@ exports.scan = scan;
2570
2572
  class CurrentWorkingDirectoryTraversalError extends errors_1.CustomError {
2571
2573
  constructor() {
2572
2574
  super('Path is outside the current working directory');
2575
+ this.code = types_1.IaCErrorCodes.CurrentWorkingDirectoryTraversalError;
2576
+ this.strCode = error_utils_1.getErrorStringCode(this.code);
2577
+ this.userMessage = `Path is outside the current working directory`;
2573
2578
  }
2574
2579
  }
2575
2580