Skip to content

Commit

Permalink
Merge pull request #184 from eliperkins/dependabot/npm_and_yarn/types…
Browse files Browse the repository at this point in the history
…cript-5.7.2

Bump typescript from 5.6.3 to 5.7.2
  • Loading branch information
eliperkins authored Nov 25, 2024
2 parents 3bff7a8 + 4d2e821 commit 35f3256
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 31 deletions.
22 changes: 11 additions & 11 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
34 changes: 20 additions & 14 deletions app/[slug]/image.png/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { format, formatDuration, intervalToDuration } from "date-fns";
type Weight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
type FontStyle = "normal" | "italic";
interface FontOptions {
data: Buffer | ArrayBuffer;
data: ArrayBuffer | Buffer<ArrayBufferLike>;
name: string;
weight?: Weight;
style?: FontStyle;
Expand Down Expand Up @@ -102,17 +102,23 @@ async function loadRalewayFonts(): Promise<FontOptions[]> {
900: "assets/fonts/Raleway/static/Raleway-BlackItalic.ttf",
};
return Promise.all([
...Object.entries(normalFontMap).map(async ([weight, path]) => ({
name: "Raleway",
weight: weight as unknown as Weight,
data: await loadFont(path),
})),
...Object.entries(italicFontMap).map(async ([weight, path]) => ({
name: "Raleway",
weight: weight as unknown as Weight,
data: await loadFont(path),
style: "italic",
})),
...Object.entries(normalFontMap).map(
async ([weight, path]) =>
({
name: "Raleway",
weight: parseInt(weight, 10) as Weight,
data: await loadFont(path),
}) as FontOptions,
),
...Object.entries(italicFontMap).map(
async ([weight, path]) =>
({
name: "Raleway",
weight: parseInt(weight, 10) as Weight,
data: await loadFont(path),
style: "italic",
}) as FontOptions,
),
]);
}

Expand All @@ -123,12 +129,12 @@ async function loadQuattrocentoFonts(): Promise<FontOptions[]> {
data: await loadFont(
"assets/fonts/Quattrocento/Quattrocento-Regular.ttf",
),
},
} as FontOptions,
{
name: "Quattrocento",
data: await loadFont("assets/fonts/Quattrocento/Quattrocento-Bold.ttf"),
weight: 700,
},
} as FontOptions,
];
}

Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7358,22 +7358,22 @@ __metadata:
linkType: hard

"typescript@npm:^5":
version: 5.6.3
resolution: "typescript@npm:5.6.3"
version: 5.7.2
resolution: "typescript@npm:5.7.2"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/c328e418e124b500908781d9f7b9b93cf08b66bf5936d94332b463822eea2f4e62973bfb3b8a745fdc038785cb66cf59d1092bac3ec2ac6a3e5854687f7833f1
checksum: 10/4caa3904df69db9d4a8bedc31bafc1e19ffb7b24fbde2997a1633ae1398d0de5bdbf8daf602ccf3b23faddf1aeeb9b795223a2ed9c9a4fdcaf07bfde114a401a
languageName: node
linkType: hard

"typescript@patch:typescript@npm%3A^5#optional!builtin<compat/typescript>":
version: 5.6.3
resolution: "typescript@patch:typescript@npm%3A5.6.3#optional!builtin<compat/typescript>::version=5.6.3&hash=8c6c40"
version: 5.7.2
resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin<compat/typescript>::version=5.7.2&hash=5786d5"
bin:
tsc: bin/tsc
tsserver: bin/tsserver
checksum: 10/00504c01ee42d470c23495426af07512e25e6546bce7e24572e72a9ca2e6b2e9bea63de4286c3cfea644874da1467dcfca23f4f98f7caf20f8b03c0213bb6837
checksum: 10/d75ca10141afc64fd3474b41a8b082b640555bed388d237558aed64e5827ddadb48f90932c7f4205883f18f5bcab8b6a739a2cfac95855604b0dfeb34bc2f3eb
languageName: node
linkType: hard

Expand Down

0 comments on commit 35f3256

Please sign in to comment.