File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11<script setup lang="ts">
2- import type { FileDiffResponse , FileChange } from ' #shared/types'
2+ import type { FileDiffResponse , FileChange , DiffHunk } from ' #shared/types'
33import { createDiff , insertSkipBlocks , countDiffStats } from ' #shared/utils/diff'
44import { motion } from ' motion-v'
55
@@ -110,9 +110,7 @@ function computeDiff() {
110110 }
111111
112112 const hunksWithSkips = insertSkipBlocks (
113- parsed .hunks .filter (
114- (h ): h is (typeof parsed .hunks )[number ] & { type: ' hunk' } => h .type === ' hunk' ,
115- ),
113+ parsed .hunks .filter ((h ): h is DiffHunk => h .type === ' hunk' ),
116114 )
117115 const stats = countDiffStats (hunksWithSkips )
118116
Original file line number Diff line number Diff line change @@ -555,7 +555,9 @@ defineOgImageComponent('Package', {
555555 </kbd >
556556 </NuxtLink >
557557 <NuxtLink
558- v-if =" displayVersion && latestVersion && displayVersion.version !== latestVersion.version"
558+ v-if ="
559+ displayVersion && latestVersion && displayVersion.version !== latestVersion.version
560+ "
559561 :to =" `/diff/${pkg.name}/v/${displayVersion.version}...${latestVersion.version}`"
560562 class =" px-2 py-1.5 font-mono text-xs rounded transition-colors duration-150 border border-transparent text-fg-subtle hover:text-fg hover:bg-bg hover:shadow hover:border-border focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 inline-flex items-center gap-1.5"
561563 >
You can’t perform that action at this time.
0 commit comments