@etalon/cli 1.0.4 → 1.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -116,13 +116,13 @@ function formatVendorEntry(dv, compact = false) {
116
116
  const lines = [];
117
117
  const riskColor = vendor.risk_score >= 6 ? chalk.red : vendor.risk_score >= 3 ? chalk.yellow : chalk.green;
118
118
  lines.push(
119
- `${riskColor(vendor.domains[0].padEnd(35))} ${chalk.bold(vendor.name)}`
119
+ `${riskColor((vendor.domains?.[0] ?? "unknown").padEnd(35))} ${chalk.bold(vendor.name)}`
120
120
  );
121
121
  lines.push(`\u251C\u2500 ${chalk.dim("Category:")} ${vendor.category}`);
122
122
  if (!compact) {
123
123
  const gdprStatus = vendor.gdpr_compliant ? chalk.green("Compliant") + (vendor.dpa_url ? chalk.dim(" (with DPA)") : "") : chalk.red("Non-compliant");
124
124
  lines.push(`\u251C\u2500 ${chalk.dim("GDPR:")} ${gdprStatus}`);
125
- if (vendor.data_collected.length > 0) {
125
+ if (vendor.data_collected && vendor.data_collected.length > 0) {
126
126
  lines.push(`\u251C\u2500 ${chalk.dim("Data:")} ${vendor.data_collected.join(", ")}`);
127
127
  }
128
128
  if (vendor.dpa_url) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etalon/cli",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "ETALON — Privacy audit tool for websites. Scan any site for trackers and GDPR compliance.",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",