snyk 1.976.0 → 1.977.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.
@@ -4312,6 +4312,15 @@ const is_multi_project_scan_1 = __webpack_require__(62435);
4312
4312
  const errors_1 = __webpack_require__(55191);
4313
4313
  const alerts = __webpack_require__(21696);
4314
4314
  async function validateOptions(options, packageManager) {
4315
+ if (options.reachableVulns) {
4316
+ alerts.registerAlerts([
4317
+ {
4318
+ type: 'warning',
4319
+ name: 'reachable deprecation',
4320
+ msg: reachableVulns.reachableVulnsRemovalMessage,
4321
+ },
4322
+ ]);
4323
+ }
4315
4324
  if (options.reachableVulns) {
4316
4325
  // Throwing error only in case when both packageManager and allProjects not defined
4317
4326
  if (!packageManager && !is_multi_project_scan_1.isMultiProjectScan(options)) {
@@ -6430,12 +6439,13 @@ exports.pruneGraph = pruneGraph;
6430
6439
  "use strict";
6431
6440
 
6432
6441
  Object.defineProperty(exports, "__esModule", ({ value: true }));
6433
- exports.validatePayload = exports.serializeCallGraphWithMetrics = void 0;
6442
+ exports.reachableVulnsRemovalMessage = exports.validatePayload = exports.serializeCallGraphWithMetrics = void 0;
6434
6443
  const graphlib = __webpack_require__(39322);
6435
6444
  const package_managers_1 = __webpack_require__(53847);
6436
6445
  const feature_flags_1 = __webpack_require__(63011);
6437
6446
  const errors_1 = __webpack_require__(55191);
6438
6447
  const is_multi_project_scan_1 = __webpack_require__(62435);
6448
+ const theme = __webpack_require__(86988);
6439
6449
  const featureFlag = 'reachableVulns';
6440
6450
  function serializeCallGraphWithMetrics(callGraph) {
6441
6451
  return {
@@ -6461,6 +6471,7 @@ async function validatePayload(org, options, packageManager) {
6461
6471
  return true;
6462
6472
  }
6463
6473
  exports.validatePayload = validatePayload;
6474
+ exports.reachableVulnsRemovalMessage = theme.color.status.warn(`${theme.icon.WARNING} Starting on 15 August 2022, the reachable (--reachable) flag will no longer be supported and will have no effect. We are currently developing new and improved capabilities for prioritizing vulnerabilities. Please follow https://updates.snyk.io for news and updates. We are sorry for the temporary inconvenience.\n`);
6464
6475
 
6465
6476
 
6466
6477
  /***/ }),