snyk 1.965.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/dist/cli/305.index.js +3 -8
- package/dist/cli/305.index.js.map +1 -1
- package/dist/cli/784.index.js +134 -27
- package/dist/cli/784.index.js.map +1 -1
- package/dist/cli/917.index.js +20 -88
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- 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/test/v2/setup/local-cache/policy-engine/constants/index.d.ts +1 -1
- package/package.json +1 -1
- 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/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) {
|