recker 1.0.32-next.e0741bf → 1.0.33-next.bbc56eb
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/index.js +12 -4
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -482,6 +482,18 @@ ${colors.gray('Grade:')} ${gradeColor(colors.bold(report.grade))} ${colors.gray
|
|
|
482
482
|
if (report.metaDescription) {
|
|
483
483
|
console.log(`${colors.bold('Description:')} ${colors.gray(report.metaDescription.text.slice(0, 80))}${report.metaDescription.text.length > 80 ? '...' : ''}`);
|
|
484
484
|
}
|
|
485
|
+
if (report.openGraph) {
|
|
486
|
+
console.log(`${colors.bold('OpenGraph:')} ${report.openGraph.title ? colors.green('✔') : colors.red('✖')} title, ${report.openGraph.description ? colors.green('✔') : colors.red('✖')} description, ${report.openGraph.image ? colors.green('✔') : colors.red('✖')} image`);
|
|
487
|
+
}
|
|
488
|
+
if (report.twitterCard) {
|
|
489
|
+
console.log(`${colors.bold('Twitter Card:')} ${report.twitterCard.card || 'none'} ${report.twitterCard.title ? colors.green('✔') : colors.red('✖')} title, ${report.twitterCard.image ? colors.green('✔') : colors.red('✖')} image`);
|
|
490
|
+
}
|
|
491
|
+
if (report.structuredData.count > 0) {
|
|
492
|
+
console.log(`${colors.bold('Structured Data:')} ${report.structuredData.count} schema(s) - ${report.structuredData.types.join(', ')}`);
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
console.log(`${colors.bold('Structured Data:')} ${colors.yellow('None detected')}`);
|
|
496
|
+
}
|
|
485
497
|
console.log('');
|
|
486
498
|
console.log(`${colors.bold('Content Metrics:')}`);
|
|
487
499
|
console.log(` ${colors.gray('Words:')} ${report.content.wordCount} ${colors.gray('Reading time:')} ~${report.content.readingTimeMinutes} min`);
|
|
@@ -520,10 +532,6 @@ ${colors.gray('Grade:')} ${gradeColor(colors.bold(report.grade))} ${colors.gray
|
|
|
520
532
|
}
|
|
521
533
|
}
|
|
522
534
|
console.log('');
|
|
523
|
-
if (report.structuredData.count > 0) {
|
|
524
|
-
console.log(`${colors.bold('Structured Data:')} ${report.structuredData.types.join(', ') || 'Present'}`);
|
|
525
|
-
console.log('');
|
|
526
|
-
}
|
|
527
535
|
}
|
|
528
536
|
catch (error) {
|
|
529
537
|
console.error(colors.red(`SEO analysis failed: ${error.message}`));
|