File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -600,6 +600,42 @@ defineOgImageComponent('Package', {
600600 </ul >
601601 </section >
602602
603+ <section
604+ v-if =" displayVersion?.engines && (displayVersion.engines.node || displayVersion.engines.npm)"
605+ aria-labelledby =" compatibility-heading"
606+ >
607+ <h2
608+ id =" compatibility-heading"
609+ class =" text-xs text-fg-subtle uppercase tracking-wider mb-3"
610+ >
611+ Compatibility
612+ </h2 >
613+ <dl class =" space-y-2" >
614+ <div
615+ v-if =" displayVersion.engines.node"
616+ class =" flex items-center justify-between py-1"
617+ >
618+ <dt class =" text-fg-muted text-sm" >
619+ node
620+ </dt >
621+ <dd class =" font-mono text-sm text-fg" >
622+ {{ displayVersion.engines.node }}
623+ </dd >
624+ </div >
625+ <div
626+ v-if =" displayVersion.engines.npm"
627+ class =" flex items-center justify-between py-1"
628+ >
629+ <dt class =" text-fg-muted text-sm" >
630+ npm
631+ </dt >
632+ <dd class =" font-mono text-sm text-fg" >
633+ {{ displayVersion.engines.npm }}
634+ </dd >
635+ </div >
636+ </dl >
637+ </section >
638+
603639 <!-- Versions -->
604640 <section
605641 v-if =" sortedVersions.length"
You can’t perform that action at this time.
0 commit comments