snyk 1.963.0 → 1.966.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 (48) hide show
  1. package/config.default.json +0 -2
  2. package/dist/cli/184.index.js +3 -3
  3. package/dist/cli/305.index.js +3 -8
  4. package/dist/cli/305.index.js.map +1 -1
  5. package/dist/cli/477.index.js +1 -1
  6. package/dist/cli/519.index.js +1 -20
  7. package/dist/cli/519.index.js.map +1 -1
  8. package/dist/cli/542.index.js +2 -2
  9. package/dist/cli/663.index.js +1 -1
  10. package/dist/cli/726.index.js +1 -1
  11. package/dist/cli/741.index.js +1 -1
  12. package/dist/cli/784.index.js +157 -50
  13. package/dist/cli/784.index.js.map +1 -1
  14. package/dist/cli/831.index.js +1 -1
  15. package/dist/cli/895.index.js +13 -13
  16. package/dist/cli/895.index.js.map +1 -1
  17. package/dist/cli/917.index.js +303 -113
  18. package/dist/cli/917.index.js.map +1 -1
  19. package/dist/cli/974.index.js +10 -6
  20. package/dist/cli/974.index.js.map +1 -1
  21. package/dist/cli/commands/test/iac/local-execution/file-loader.d.ts +1 -0
  22. package/dist/cli/commands/test/iac/local-execution/parsers/terraform-file-parser.d.ts +1 -0
  23. package/dist/cli/commands/test/iac/local-execution/yaml-parser.d.ts +2 -0
  24. package/dist/cli/index.js +157 -24
  25. package/dist/cli/index.js.map +1 -1
  26. package/dist/cli/thirdPartyNotice.json +2 -2
  27. package/dist/lib/config/api-url.d.ts +19 -0
  28. package/dist/lib/{config.d.ts → config/index.d.ts} +0 -0
  29. package/dist/lib/formatters/iac-output/index.d.ts +1 -1
  30. package/dist/lib/formatters/iac-output/v2/formatters.d.ts +12 -0
  31. package/dist/lib/formatters/iac-output/v2/index.d.ts +1 -0
  32. package/dist/lib/formatters/iac-output/v2/issues-list/index.d.ts +2 -2
  33. package/dist/lib/formatters/iac-output/v2/issues-list/issue.d.ts +1 -1
  34. package/dist/lib/formatters/iac-output/v2/test-summary.d.ts +1 -2
  35. package/dist/lib/formatters/iac-output/v2/types.d.ts +25 -5
  36. package/dist/lib/iac/drift/driftctl.d.ts +1 -1
  37. package/dist/lib/iac/test/v2/index.d.ts +1 -1
  38. package/dist/lib/iac/test/v2/json.d.ts +78 -0
  39. package/dist/lib/iac/test/v2/output.d.ts +6 -2
  40. package/dist/lib/iac/test/v2/{scan.d.ts → scan/index.d.ts} +2 -2
  41. package/dist/{cli/commands/test/iac/v2/policy-engine-types.d.ts → lib/iac/test/v2/scan/policy-engine.d.ts} +0 -0
  42. package/dist/{cli/commands/test/iac/v2/types.d.ts → lib/iac/test/v2/scan/results.d.ts} +7 -10
  43. package/dist/lib/iac/test/v2/setup/local-cache/policy-engine/constants/index.d.ts +1 -1
  44. package/dist/lib/iac/test/v2/types.d.ts +3 -0
  45. package/package.json +1 -1
  46. package/dist/cli/commands/test/iac/local-execution/math-utils.d.ts +0 -7
  47. package/dist/lib/formatters/iac-output/v2/issues-list/formatters.d.ts +0 -6
  48. package/dist/lib/formatters/iac-output/v2/issues-list/types.d.ts +0 -17
@@ -1,6 +1,4 @@
1
1
  {
2
- "API": "https://snyk.io/api/v1",
3
- "API_REST_URL": "https://api.snyk.io/rest",
4
2
  "devDeps": false,
5
3
  "PRUNE_DEPS_THRESHOLD": 40000,
6
4
  "MAX_PATH_COUNT": 1500000,
@@ -93536,7 +93536,7 @@ exports.decode = function(input) {
93536
93536
 
93537
93537
  var external = __webpack_require__(38565);
93538
93538
  var DataWorker = __webpack_require__(5301);
93539
- var Crc32Probe = __webpack_require__(65055);
93539
+ var Crc32Probe = __webpack_require__(22541);
93540
93540
  var DataLengthProbe = __webpack_require__(95977);
93541
93541
 
93542
93542
  /**
@@ -94541,7 +94541,7 @@ var utils = __webpack_require__(58910);
94541
94541
  var external = __webpack_require__(38565);
94542
94542
  var utf8 = __webpack_require__(83600);
94543
94543
  var ZipEntries = __webpack_require__(6624);
94544
- var Crc32Probe = __webpack_require__(65055);
94544
+ var Crc32Probe = __webpack_require__(22541);
94545
94545
  var nodejsUtils = __webpack_require__(72182);
94546
94546
 
94547
94547
  /**
@@ -95592,7 +95592,7 @@ module.exports = ConvertWorker;
95592
95592
 
95593
95593
  /***/ }),
95594
95594
 
95595
- /***/ 65055:
95595
+ /***/ 22541:
95596
95596
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
95597
95597
 
95598
95598
  "use strict";
@@ -1289,8 +1289,8 @@ function getLineNumberForSingleNode(baseNode, remainingPath) {
1289
1289
  }
1290
1290
  var nodeForPath = getNodeForPath(node.values, remainingPath[0]);
1291
1291
  if (!nodeForPath) {
1292
- // If the path does not exist, we will return '-1'
1293
- return -1;
1292
+ //Not exists
1293
+ return node.lineLocation.line;
1294
1294
  }
1295
1295
  node = nodeForPath;
1296
1296
  remainingPath = remainingPath.splice(1);
@@ -1575,12 +1575,7 @@ var CloudConfigFileTypes;
1575
1575
  Object.defineProperty(exports, "__esModule", ({ value: true }));
1576
1576
  exports.parseFileContent = void 0;
1577
1577
  var YAML = __webpack_require__(6792);
1578
- function parseFileContent(fileContent, fileType) {
1579
- if (fileType === void 0) { fileType = 'yaml'; }
1580
- // YAML should fail on \/ but the library doesn't: https://snyksec.atlassian.net/browse/CC-1175
1581
- if (fileContent.includes('\\/') && fileType !== 'json') {
1582
- throw new Error('Found escape character \\/.');
1583
- }
1578
+ function parseFileContent(fileContent) {
1584
1579
  // the YAML library can parse both YAML and JSON content, as well as content with singe/multiple YAMLs
1585
1580
  // by using this library we don't have to disambiguate between these different contents ourselves
1586
1581
  return YAML.parseAllDocuments(fileContent).map(function (doc) {