@bryan-thompson/inspector-assessment-cli 1.22.8 → 1.22.9
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/build/assess-full.js +3 -1
- package/package.json +1 -1
package/build/assess-full.js
CHANGED
|
@@ -693,10 +693,12 @@ function saveResults(serverName, results, options) {
|
|
|
693
693
|
const finalPath = options.outputPath || defaultPath;
|
|
694
694
|
// For JSON format, add metadata wrapper
|
|
695
695
|
if (format === "json") {
|
|
696
|
+
// Filter out undefined/skipped modules from results (--skip-modules support)
|
|
697
|
+
const filteredResults = Object.fromEntries(Object.entries(results).filter(([_, v]) => v !== undefined));
|
|
696
698
|
const output = {
|
|
697
699
|
timestamp: new Date().toISOString(),
|
|
698
700
|
assessmentType: "full",
|
|
699
|
-
...
|
|
701
|
+
...filteredResults,
|
|
700
702
|
...(policyReport ? { policyCompliance: policyReport } : {}),
|
|
701
703
|
};
|
|
702
704
|
fs.writeFileSync(finalPath, JSON.stringify(output, null, 2));
|
package/package.json
CHANGED