File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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'
44// @ts-expect-error: (tasky): idk why this is type-erroring even if it has types? /shrug
55import { motion } from ' motion-v'
@@ -111,9 +111,7 @@ function computeDiff() {
111111 }
112112
113113 const hunksWithSkips = insertSkipBlocks (
114- parsed .hunks .filter (
115- (h ): h is (typeof parsed .hunks )[number ] & { type: ' hunk' } => h .type === ' hunk' ,
116- ),
114+ parsed .hunks .filter ((h ): h is DiffHunk => h .type === ' hunk' ),
117115 )
118116 const stats = countDiffStats (hunksWithSkips )
119117
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