Skip to content

Commit 8663a00

Browse files
committed
stuff
1 parent ff21bed commit 8663a00

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/components/diff/ViewerPanel.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import type { FileDiffResponse, FileChange } from '#shared/types'
2+
import type { FileDiffResponse, FileChange, DiffHunk } from '#shared/types'
33
import { createDiff, insertSkipBlocks, countDiffStats } from '#shared/utils/diff'
44
import { 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

app/pages/package/[...package].vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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
>

0 commit comments

Comments
 (0)