snyk 1.882.0 → 1.885.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/293.index.js +11 -1
- package/dist/cli/293.index.js.map +1 -1
- package/dist/cli/450.index.js +61 -0
- package/dist/cli/450.index.js.map +1 -0
- package/dist/cli/459.index.js +13 -12
- package/dist/cli/459.index.js.map +1 -1
- package/dist/cli/477.index.js +12 -3
- package/dist/cli/477.index.js.map +1 -1
- package/dist/cli/535.index.js +40 -3
- package/dist/cli/535.index.js.map +1 -1
- package/dist/cli/917.index.js +43 -21
- package/dist/cli/917.index.js.map +1 -1
- package/dist/cli/commands/report/errors/unsupported-report-command.d.ts +4 -0
- package/dist/cli/commands/report/index.d.ts +3 -0
- package/dist/cli/commands/test/iac-local-execution/measurable-methods.d.ts +1 -1
- package/dist/cli/commands/test/iac-local-execution/results-formatter.d.ts +1 -1
- package/dist/cli/commands/test/iac-local-execution/share-results.d.ts +9 -2
- package/dist/cli/commands/test/iac-local-execution/types.d.ts +10 -2
- package/dist/cli/index.js +5 -1
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/thirdPartyNotice.json +2 -2
- package/dist/lib/ecosystems/types.d.ts +1 -0
- package/dist/lib/formatters/iac-output.d.ts +2 -1
- package/dist/lib/iac/cli-share-results.d.ts +8 -2
- package/dist/lib/iac/drift.d.ts +1 -1
- package/dist/lib/iac/envelope-formatters.d.ts +2 -2
- package/dist/lib/types.d.ts +7 -1
- package/package.json +1 -1
package/dist/cli/293.index.js
CHANGED
|
@@ -1800,7 +1800,7 @@ exports.getSeverityValue = getSeverityValue;
|
|
|
1800
1800
|
"use strict";
|
|
1801
1801
|
|
|
1802
1802
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1803
|
-
exports.mapIacTestResponseToSarifResults = exports.extractReportingDescriptor = exports.createSarifOutputForIac = exports.capitalizePackageManager = exports.getIacDisplayErrorFileOutput = exports.getIacDisplayedOutput = void 0;
|
|
1803
|
+
exports.shareResultsOutput = exports.mapIacTestResponseToSarifResults = exports.extractReportingDescriptor = exports.createSarifOutputForIac = exports.capitalizePackageManager = exports.getIacDisplayErrorFileOutput = exports.getIacDisplayedOutput = void 0;
|
|
1804
1804
|
const chalk_1 = __webpack_require__(32589);
|
|
1805
1805
|
const theme_1 = __webpack_require__(86988);
|
|
1806
1806
|
const Debug = __webpack_require__(15158);
|
|
@@ -1816,6 +1816,7 @@ const detect_1 = __webpack_require__(45318);
|
|
|
1816
1816
|
const get_severity_value_1 = __webpack_require__(24898);
|
|
1817
1817
|
const sarif_output_1 = __webpack_require__(5034);
|
|
1818
1818
|
const version_1 = __webpack_require__(38217);
|
|
1819
|
+
const config_1 = __webpack_require__(22541);
|
|
1819
1820
|
const debug = Debug('iac-output');
|
|
1820
1821
|
function formatIacIssue(issue, isNew, path) {
|
|
1821
1822
|
const newBadge = isNew ? ' (new)' : '';
|
|
@@ -2055,6 +2056,15 @@ function getPathRelativeToRepoRoot(repoRoot, basePath, filePath) {
|
|
|
2055
2056
|
const fullPath = pathLib.resolve(basePath, filePath).replace(/\\/g, '/');
|
|
2056
2057
|
return fullPath.replace(repoRoot, '');
|
|
2057
2058
|
}
|
|
2059
|
+
function shareResultsOutput(iacOutputMeta) {
|
|
2060
|
+
let projectName = iacOutputMeta.projectName;
|
|
2061
|
+
if (iacOutputMeta === null || iacOutputMeta === void 0 ? void 0 : iacOutputMeta.gitRemoteUrl) {
|
|
2062
|
+
// from "http://github.com/snyk/cli.git" to "snyk/cli"
|
|
2063
|
+
projectName = iacOutputMeta.gitRemoteUrl.replace(/^https?:\/\/github.com\/(.*)\.git$/, '$1');
|
|
2064
|
+
}
|
|
2065
|
+
return `Your test results are available at: ${config_1.default.ROOT}/org/${iacOutputMeta.orgName}/projects under the name ${projectName}`;
|
|
2066
|
+
}
|
|
2067
|
+
exports.shareResultsOutput = shareResultsOutput;
|
|
2058
2068
|
|
|
2059
2069
|
|
|
2060
2070
|
/***/ }),
|