snyk 1.873.0 → 1.876.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/245.index.js +2 -2
- package/dist/cli/245.index.js.map +1 -1
- package/dist/cli/459.index.js +98 -6
- package/dist/cli/459.index.js.map +1 -1
- package/dist/cli/874.index.js +312 -1
- package/dist/cli/874.index.js.map +1 -1
- package/dist/cli/index.js +19 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/dist/lib/errors/describe-exclusive-argument-error.d.ts +4 -0
- package/dist/lib/errors/describe-required-argument-error.d.ts +4 -0
- package/dist/lib/iac/drift.d.ts +4 -1
- package/help/cli-commands/iac-describe.md +2 -2
- package/package.json +1 -1
package/dist/cli/245.index.js
CHANGED
|
@@ -143148,7 +143148,7 @@ async function display(scanResults, testResults, errors, options) {
|
|
|
143148
143148
|
error_1.exitWith(error_1.ExitCode.VulnerabilitiesFound, output, testResults);
|
|
143149
143149
|
}
|
|
143150
143150
|
if (!hasDependencies) {
|
|
143151
|
-
error_1.exitWith(error_1.ExitCode.NoSupportedFiles, `${output}\nCould not
|
|
143151
|
+
error_1.exitWith(error_1.ExitCode.NoSupportedFiles, `${output}\nCould not find any source code matching the Snyk database of open source dependencies in ${options === null || options === void 0 ? void 0 : options.path}\nPlease see our documentation for supported languages and target files: ${chalk.underline('https://snyk.co/udVgQ')} and make sure you are in the right directory.`);
|
|
143152
143152
|
}
|
|
143153
143153
|
return output;
|
|
143154
143154
|
}
|
|
@@ -143521,7 +143521,7 @@ function getExcludedPatterns(projectRoot, policyFilePath = path_1.join(projectRo
|
|
|
143521
143521
|
const config = dotSnyk.parse(policyFilePath);
|
|
143522
143522
|
return [
|
|
143523
143523
|
policyFilePath,
|
|
143524
|
-
...dotSnyk.toAbsolutePaths(projectRoot, (_a = config === null || config === void 0 ? void 0 : config.exclude) === null || _a === void 0 ? void 0 : _a.
|
|
143524
|
+
...dotSnyk.toAbsolutePaths(projectRoot, (_a = config === null || config === void 0 ? void 0 : config.exclude) === null || _a === void 0 ? void 0 : _a.global),
|
|
143525
143525
|
];
|
|
143526
143526
|
}
|
|
143527
143527
|
exports.getExcludedPatterns = getExcludedPatterns;
|