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.
- package/config.default.json +0 -2
- package/dist/cli/184.index.js +3 -3
- package/dist/cli/305.index.js +3 -8
- package/dist/cli/305.index.js.map +1 -1
- package/dist/cli/477.index.js +1 -1
- package/dist/cli/519.index.js +1 -20
- package/dist/cli/519.index.js.map +1 -1
- package/dist/cli/542.index.js +2 -2
- package/dist/cli/663.index.js +1 -1
- package/dist/cli/726.index.js +1 -1
- package/dist/cli/741.index.js +1 -1
- package/dist/cli/784.index.js +157 -50
- package/dist/cli/784.index.js.map +1 -1
- package/dist/cli/831.index.js +1 -1
- package/dist/cli/895.index.js +13 -13
- package/dist/cli/895.index.js.map +1 -1
- package/dist/cli/917.index.js +303 -113
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/974.index.js +10 -6
- package/dist/cli/974.index.js.map +1 -1
- package/dist/cli/commands/test/iac/local-execution/file-loader.d.ts +1 -0
- package/dist/cli/commands/test/iac/local-execution/parsers/terraform-file-parser.d.ts +1 -0
- package/dist/cli/commands/test/iac/local-execution/yaml-parser.d.ts +2 -0
- package/dist/cli/index.js +157 -24
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/dist/lib/config/api-url.d.ts +19 -0
- package/dist/lib/{config.d.ts → config/index.d.ts} +0 -0
- package/dist/lib/formatters/iac-output/index.d.ts +1 -1
- package/dist/lib/formatters/iac-output/v2/formatters.d.ts +12 -0
- package/dist/lib/formatters/iac-output/v2/index.d.ts +1 -0
- package/dist/lib/formatters/iac-output/v2/issues-list/index.d.ts +2 -2
- package/dist/lib/formatters/iac-output/v2/issues-list/issue.d.ts +1 -1
- package/dist/lib/formatters/iac-output/v2/test-summary.d.ts +1 -2
- package/dist/lib/formatters/iac-output/v2/types.d.ts +25 -5
- package/dist/lib/iac/drift/driftctl.d.ts +1 -1
- package/dist/lib/iac/test/v2/index.d.ts +1 -1
- package/dist/lib/iac/test/v2/json.d.ts +78 -0
- package/dist/lib/iac/test/v2/output.d.ts +6 -2
- package/dist/lib/iac/test/v2/{scan.d.ts → scan/index.d.ts} +2 -2
- package/dist/{cli/commands/test/iac/v2/policy-engine-types.d.ts → lib/iac/test/v2/scan/policy-engine.d.ts} +0 -0
- package/dist/{cli/commands/test/iac/v2/types.d.ts → lib/iac/test/v2/scan/results.d.ts} +7 -10
- package/dist/lib/iac/test/v2/setup/local-cache/policy-engine/constants/index.d.ts +1 -1
- package/dist/lib/iac/test/v2/types.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cli/commands/test/iac/local-execution/math-utils.d.ts +0 -7
- package/dist/lib/formatters/iac-output/v2/issues-list/formatters.d.ts +0 -6
- package/dist/lib/formatters/iac-output/v2/issues-list/types.d.ts +0 -17
package/config.default.json
CHANGED
package/dist/cli/184.index.js
CHANGED
|
@@ -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__(
|
|
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__(
|
|
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
|
-
/***/
|
|
95595
|
+
/***/ 22541:
|
|
95596
95596
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
95597
95597
|
|
|
95598
95598
|
"use strict";
|
package/dist/cli/305.index.js
CHANGED
|
@@ -1289,8 +1289,8 @@ function getLineNumberForSingleNode(baseNode, remainingPath) {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
var nodeForPath = getNodeForPath(node.values, remainingPath[0]);
|
|
1291
1291
|
if (!nodeForPath) {
|
|
1292
|
-
//
|
|
1293
|
-
return
|
|
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
|
|
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) {
|