johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
import type * as getStep from '#lib/lexicons/dev/knotless/getStep.ts';
import type { PageLoad } from './$types';
import { xrpc } from '#lib/data.ts';
import { repoUri } from '#lib/steps.ts';
/** The step `step` that `authority`'s repository `repo` publishes, at its latest version, with its versions and who uses it. */
export const load: PageLoad = async (event) => {
const { authority, repo, step } = event.params;
const params = { repo: repoUri(authority, repo), name: step };
return { step: await xrpc<typeof getStep.main>(event, 'dev.knotless.getStep', params) };
};