snyk 1.1023.0 → 1.1024.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.
@@ -5061,8 +5061,10 @@ async function downloadRulesBundle(testConfig) {
5061
5061
  // IAC_BUNDLE_PATH is a developer setting that is not useful to most users. It
5062
5062
  // is not a replacement for custom rules.
5063
5063
  if (config_1.default.IAC_BUNDLE_PATH) {
5064
+ debugLog(`Located a local rules bundle at ${testConfig.iacCachePath}`);
5064
5065
  return config_1.default.IAC_BUNDLE_PATH;
5065
5066
  }
5067
+ debugLog(`Downloading the rules bundle and saving it at ${testConfig.iacCachePath}`);
5066
5068
  let downloadDurationSeconds = 0;
5067
5069
  const timer = new metrics_1.TimerMetricInstance('iac_rules_bundle_download');
5068
5070
  timer.start();
@@ -5132,14 +5134,11 @@ exports.FailedToCacheRulesBundleError = FailedToCacheRulesBundleError;
5132
5134
 
5133
5135
  Object.defineProperty(exports, "__esModule", ({ value: true }));
5134
5136
  exports.initRulesBundle = void 0;
5135
- const createDebugLogger = __webpack_require__(15158);
5136
5137
  const download_1 = __webpack_require__(30313);
5137
- const debugLogger = createDebugLogger('snyk-iac');
5138
5138
  async function initRulesBundle(testConfig) {
5139
5139
  // We are currently using the legacy rules bundle and we need to re-download it each time to use the latest one available.
5140
5140
  // debugLogger('Looking for rules bundle locally');
5141
5141
  // let rulesBundlePath = await lookupLocalRulesBundle(testConfig);
5142
- debugLogger(`Downloading the rules bundle and saving it at ${testConfig.iacCachePath}`);
5143
5142
  return await download_1.downloadRulesBundle(testConfig);
5144
5143
  }
5145
5144
  exports.initRulesBundle = initRulesBundle;