diff --git a/bun.lockb b/bun.lockb index cbb5569d..6f47e0eb 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 351ec604..33221088 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@json2csv/plainjs": "^7.0.6", "@logtape/logtape": "npm:@jsr/logtape__logtape@0.4.2", "@lysand-org/client": "^0.2.3", - "@lysand-org/federation": "^2.1.0", + "@lysand-org/federation": "^2.1.1", "@oclif/core": "^4.0.12", "@tufjs/canonical-json": "^2.0.0", "altcha-lib": "^0.4.0", diff --git a/utils/content_types.ts b/utils/content_types.ts index d593f622..8dee9bc2 100644 --- a/utils/content_types.ts +++ b/utils/content_types.ts @@ -2,7 +2,7 @@ import type { ContentFormat } from "@lysand-org/federation/types"; import { lookup } from "mime-types"; import { config } from "~/packages/config-manager"; -export const getBestContentType = (content?: ContentFormat) => { +export const getBestContentType = (content?: ContentFormat | null) => { if (!content) { return { content: "", format: "text/plain" }; }