snyk 1.773.0 → 1.777.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.
Files changed (94) hide show
  1. package/dist/cli/64.index.js +4 -0
  2. package/dist/cli/64.index.js.map +1 -1
  3. package/dist/cli/85.index.js +309 -0
  4. package/dist/cli/85.index.js.map +1 -0
  5. package/dist/cli/875.index.js +26 -0
  6. package/dist/cli/875.index.js.map +1 -0
  7. package/dist/cli/959.index.js +1 -1
  8. package/dist/cli/970.index.js +2912 -12
  9. package/dist/cli/970.index.js.map +1 -1
  10. package/dist/cli/commands/{help.d.ts → help/index.d.ts} +0 -0
  11. package/dist/cli/commands/help/markdown-renderer.d.ts +1 -0
  12. package/dist/cli/commands/help/reflow-text.d.ts +28 -0
  13. package/dist/cli/exit-codes.d.ts +5 -0
  14. package/dist/cli/index.js +121 -17
  15. package/dist/cli/index.js.map +1 -1
  16. package/dist/cli/main.d.ts +1 -0
  17. package/dist/cli/thirdPartyNotice.json +11 -2
  18. package/dist/lib/unexpected-error.d.ts +8 -0
  19. package/help/README.md +1 -45
  20. package/help/commands-md/snyk-auth.md +57 -45
  21. package/help/commands-md/snyk-code.md +71 -55
  22. package/help/commands-md/snyk-config.md +82 -61
  23. package/help/commands-md/snyk-container.md +101 -75
  24. package/help/commands-md/snyk-help.md +51 -40
  25. package/help/commands-md/snyk-iac.md +133 -101
  26. package/help/commands-md/snyk-ignore.md +63 -48
  27. package/help/commands-md/snyk-monitor.md +229 -176
  28. package/help/commands-md/snyk-policy.md +53 -41
  29. package/help/commands-md/snyk-protect.md +59 -41
  30. package/help/commands-md/snyk-test.md +229 -176
  31. package/help/commands-md/snyk-wizard.md +50 -39
  32. package/help/commands-md/snyk-woof.md +53 -41
  33. package/help/commands-md/snyk.md +31 -370
  34. package/package.json +7 -8
  35. package/dist/cli/862.index.js +0 -46
  36. package/dist/cli/862.index.js.map +0 -1
  37. package/help/_about-this-project/README.md +0 -3
  38. package/help/_about-this-project/why-we-are-bundling-dependencies.md +0 -11
  39. package/help/commands-docs/_ENVIRONMENT.md +0 -35
  40. package/help/commands-docs/_EXAMPLES.md +0 -46
  41. package/help/commands-docs/_EXIT_CODES.md +0 -8
  42. package/help/commands-docs/_NOTICES.md +0 -5
  43. package/help/commands-docs/_SNYK_COMMAND_HEADER.md +0 -54
  44. package/help/commands-docs/_SNYK_COMMAND_OPTIONS.md +0 -222
  45. package/help/commands-docs/_SNYK_GLOBAL_OPTIONS.md +0 -16
  46. package/help/commands-docs/auth.md +0 -18
  47. package/help/commands-docs/code.md +0 -37
  48. package/help/commands-docs/config.md +0 -47
  49. package/help/commands-docs/container.md +0 -63
  50. package/help/commands-docs/help.md +0 -11
  51. package/help/commands-docs/iac-examples.md +0 -24
  52. package/help/commands-docs/iac.md +0 -76
  53. package/help/commands-docs/ignore-examples.md +0 -4
  54. package/help/commands-docs/ignore.md +0 -28
  55. package/help/commands-docs/monitor.md +0 -9
  56. package/help/commands-docs/policy.md +0 -14
  57. package/help/commands-docs/protect.md +0 -14
  58. package/help/commands-docs/test.md +0 -9
  59. package/help/commands-docs/wizard.md +0 -16
  60. package/help/commands-docs/woof.md +0 -14
  61. package/help/commands-man/snyk-auth.1 +0 -84
  62. package/help/commands-man/snyk-code.1 +0 -95
  63. package/help/commands-man/snyk-config.1 +0 -107
  64. package/help/commands-man/snyk-container.1 +0 -119
  65. package/help/commands-man/snyk-help.1 +0 -73
  66. package/help/commands-man/snyk-iac.1 +0 -157
  67. package/help/commands-man/snyk-ignore.1 +0 -88
  68. package/help/commands-man/snyk-monitor.1 +0 -251
  69. package/help/commands-man/snyk-policy.1 +0 -76
  70. package/help/commands-man/snyk-protect.1 +0 -76
  71. package/help/commands-man/snyk-test.1 +0 -251
  72. package/help/commands-man/snyk-wizard.1 +0 -82
  73. package/help/commands-man/snyk-woof.1 +0 -76
  74. package/help/commands-man/snyk.1 +0 -350
  75. package/help/commands-txt/snyk-auth.txt +0 -101
  76. package/help/commands-txt/snyk-code.txt +0 -120
  77. package/help/commands-txt/snyk-config.txt +0 -128
  78. package/help/commands-txt/snyk-container.txt +0 -150
  79. package/help/commands-txt/snyk-help.txt +0 -90
  80. package/help/commands-txt/snyk-iac.txt +0 -196
  81. package/help/commands-txt/snyk-ignore.txt +0 -108
  82. package/help/commands-txt/snyk-monitor.txt +0 -357
  83. package/help/commands-txt/snyk-policy.txt +0 -93
  84. package/help/commands-txt/snyk-protect.txt +0 -97
  85. package/help/commands-txt/snyk-test.txt +0 -357
  86. package/help/commands-txt/snyk-wizard.txt +0 -104
  87. package/help/commands-txt/snyk-woof.txt +0 -94
  88. package/help/commands-txt/snyk.txt +0 -464
  89. package/help/generator/generate-docs.sh +0 -19
  90. package/help/generator/generator.ts +0 -152
  91. package/help/generator/ronn-ng.dockerfile +0 -8
  92. package/help/ide.svg +0 -1
  93. package/help/monitor.svg +0 -1
  94. package/help/snyk-cli-screenshot.png +0 -0
@@ -199196,6 +199196,7 @@ function parseManifestFile(manifestFileContents) {
199196
199196
  }
199197
199197
  exports.parseManifestFile = parseManifestFile;
199198
199198
  function getTopLevelDeps({ targetFile, includeDev, includePeerDeps = false, applyYarn2Resolutions = false, }) {
199199
+ var _a, _b;
199199
199200
  let dependencies = [];
199200
199201
  const dependenciesIterator = Object.entries(Object.assign(Object.assign(Object.assign({}, targetFile.dependencies), (includeDev ? targetFile.devDependencies : null)), (targetFile.optionalDependencies || {})));
199201
199202
  for (const [name, version] of dependenciesIterator) {
@@ -199209,6 +199210,9 @@ function getTopLevelDeps({ targetFile, includeDev, includePeerDeps = false, appl
199209
199210
  }
199210
199211
  if (includePeerDeps && targetFile.peerDependencies) {
199211
199212
  for (const [name, version] of Object.entries(targetFile.peerDependencies)) {
199213
+ if ((_b = (_a = targetFile === null || targetFile === void 0 ? void 0 : targetFile.peerDependenciesMeta) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.optional) {
199214
+ continue;
199215
+ }
199212
199216
  dependencies.push({
199213
199217
  name,
199214
199218
  version,