"@types/babel__traverse": ["@types/babel__traverse@7.20.7", "", { "dependencies": { "@babel/types": "^7.20.7" } }, "sha512-dkO5fhS7+/oos4ciWxyEyjWe48zmG6wbCheo/G2ZnHx4fs3EU6YC6UM8rk56gAjNJ9P3MTH2jo5jb92/K6wbng=="],
- "@types/bun": ["@types/bun@1.3.2", "", { "dependencies": { "bun-types": "1.3.2" } }, "sha512-t15P7k5UIgHKkxwnMNkJbWlh/617rkDGEdSsDbu+qNHTaz9SKf7aC8fiIlUdD5RPpH6GEkP0cK7WlvmrEBRtWg=="],
+ "@types/bun": ["@types/bun@1.3.3", "", { "dependencies": { "bun-types": "1.3.3" } }, "sha512-ogrKbJ2X5N0kWLLFKeytG0eHDleBYtngtlbu9cyBKFtNL3cnpDZkNdQj8flVf6WTZUX5ulI9AY1oa7ljhSrp+g=="],
"@types/d3-array": ["@types/d3-array@3.2.1", "", {}, "sha512-Y2Jn2idRrLzUfAKV2LyRImR+y4oa2AntrgID95SHJxuMUrkNXmanDSed71sRNZysveJVt1hLLemQZIady0FpEg=="],
"buffer-crc32": ["buffer-crc32@0.2.13", "", {}, "sha512-VO9Ht/+p3SN7SKWqcrgEzjGbRSJYTx+Q1pTQC0wrWqHx0vpJraQ6GtHx8tvcg1rlK1byhU5gccxgOgj7B0TDkQ=="],
- "bun-types": ["bun-types@1.3.2", "", { "dependencies": { "@types/node": "*" }, "peerDependencies": { "@types/react": "^19" } }, "sha512-i/Gln4tbzKNuxP70OWhJRZz1MRfvqExowP7U6JKoI8cntFrtxg7RJK3jvz7wQW54UuvNC8tbKHHri5fy74FVqg=="],
+ "bun-types": ["bun-types@1.3.3", "", { "dependencies": { "@types/node": "*" } }, "sha512-z3Xwlg7j2l9JY27x5Qn3Wlyos8YAp0kKRlrePAOjgjMGS5IG6E7Jnlx736vH9UVI4wUICwwhC9anYL++XeOgTQ=="],
"call-bind-apply-helpers": ["call-bind-apply-helpers@1.0.2", "", { "dependencies": { "es-errors": "^1.3.0", "function-bind": "^1.1.2" } }, "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ=="],
"recharts": "^3.4.1"
},
"devDependencies": {
- "@types/bun": "^1.3.2"
+ "@types/bun": "^1.3.3"
}
}
\ No newline at end of file
---
import { type InferEntrySchema } from 'astro:content';
-import { formatDate } from '@utils/format.ts';
+import formatDate from '@utils/formatDate.ts';
import Rating from '@components/ui/rating.astro';
interface Props {
---
import { type CollectionEntry, getCollection, render } from 'astro:content';
-import { formatDate } from '@utils/format.ts';
+import formatDate from '@utils/formatDate.ts';
import Article from '@layouts/article.astro';
import Metadata from '@components/metadata.astro';
import type { APIRoute } from 'astro';
import { getCollection } from 'astro:content';
-import { formatDate } from '@utils/format.ts';
+import formatDate from '@utils/formatDate.ts';
import { ImageResponse } from '@vercel/og';
import { siteAuthor } from '@utils/globals.ts';
---
import { getCollection } from 'astro:content';
-import { formatDate } from '@utils/format.ts';
+import formatDate from '@utils/formatDate.ts';
import Base from '@layouts/base.astro';
const articles = await getCollection('articles');
import rss from '@astrojs/rss';
import { getCollection } from 'astro:content';
-import { formatDate } from '@utils/format.ts';
+import formatDate from '@utils/formatDate.ts';
import { siteSubtitle, siteTitle } from '@utils/globals.ts';
import createSlug from '@utils/createSlug.ts';
---
import { getCollection } from 'astro:content';
-import { formatDate } from '@utils/format.ts';
+import formatDate from '@utils/formatDate.ts';
import Base from '@layouts/base.astro';
import createSlug from '@utils/createSlug.ts';
---
import { getCollection } from 'astro:content';
-import { formatDate } from '@utils/format.ts';
+import formatDate from '@utils/formatDate.ts';
import Base from '@layouts/base.astro';
import RatingDistribution from '@components/ratingdistribution/component.astro';
import Rating from '@components/ui/rating.astro';
-export default function (text: string) {
+export default function (text: string): string {
return (
text
.trim()
-export function formatDate(date: Date): string {
+export default function (date: Date): string {
const year = date.getUTCFullYear();
const month = String(date.getUTCMonth() + 1).padStart(2, '0');
const day = String(date.getUTCDate()).padStart(2, '0');