···11-import type { Handle } from '@sveltejs/kit';
11+import type { Handle } from "@sveltejs/kit";
2233export const handle: Handle = async ({ event, resolve }) => {
44 return resolve(event, {
···99 // the data we already had.
1010 // so we allow these headers to have atcute function properly.
1111 filterSerializedResponseHeaders(name) {
1212- return name === 'content-type' || name === 'content-length';
1212+ return name === "content-type" || name === "content-length";
1313 }
1414 });
1515};
···11// `$icon/<name>` is a vite alias for unplugin-icons' `~icons/lucide/<name>`
22// virtual module (see vite.config.ts). mirror its ambient type here so tsc /
33// svelte-check resolve the aliased imports. must stay a global .d.ts (no export)
44-declare module '$icon/*' {
55- import type { Component } from 'svelte';
66- import type { SvelteHTMLElements } from 'svelte/elements';
44+declare module "$icon/*" {
55+ import type { Component } from "svelte";
66+ import type { SvelteHTMLElements } from "svelte/elements";
7788- const component: Component<SvelteHTMLElements['svg']>;
88+ const component: Component<SvelteHTMLElements["svg"]>;
991010 export default component;
1111}
···11-export * from './client';
22-export * from './pagination';
33-export * from './count';
44-export * from './records';
55-export * as knot from './knot';
66-export * from './search';
77-export * from './coverage';
88-export * from './identity';
99-export * from './load';
1010-export * from './uri';
1111-export * from './graph';
11+export * from "./client";
22+export * from "./pagination";
33+export * from "./count";
44+export * from "./records";
55+export * as knot from "./knot";
66+export * from "./search";
77+export * from "./coverage";
88+export * from "./identity";
99+export * from "./load";
1010+export * from "./uri";
1111+export * from "./graph";
···11-import { ok } from '@atcute/client';
22-import { mainSchema as putRecordSchema } from '@atcute/atproto/types/repo/putRecord';
33-import type { Nsid, RecordKey } from '@atcute/lexicons/syntax';
44-import type { OAuthUserAgent } from '@atcute/oauth-browser-client';
55-import { createClient } from '$lib/auth/agent';
66-import type { ProfileRecord } from './records';
11+import { ok } from "@atcute/client";
22+import { mainSchema as putRecordSchema } from "@atcute/atproto/types/repo/putRecord";
33+import type { Nsid, RecordKey } from "@atcute/lexicons/syntax";
44+import type { OAuthUserAgent } from "@atcute/oauth-browser-client";
55+import { createClient } from "$lib/auth/agent";
66+import type { ProfileRecord } from "./records";
7788-const PROFILE_COLLECTION = 'sh.tangled.actor.profile' as Nsid;
88+const PROFILE_COLLECTION = "sh.tangled.actor.profile" as Nsid;
991010// the profile record lives at the fixed rkey `self`; put upserts it.
1111export const putProfile = async (agent: OAuthUserAgent, record: ProfileRecord): Promise<void> => {
···1515 input: {
1616 repo: agent.sub,
1717 collection: PROFILE_COLLECTION,
1818- rkey: 'self' as RecordKey,
1818+ rkey: "self" as RecordKey,
1919 record
2020 }
2121 })