refactor(federation): 🚚 Remove custom path alias

This commit is contained in:
Jesse Wierzbinski 2024-07-23 00:11:05 +02:00
parent 1529708dd8
commit 2313bcbbcc
No known key found for this signature in database
13 changed files with 30 additions and 37 deletions

View file

@ -1,3 +1,3 @@
import pkg from "@/federation/package.json" with { type: "json" };
import pkg from "../package.json" with { type: "json" };
export const DEFAULT_UA = `LysandFederation/${pkg.version} (+${pkg.homepage})`;

View file

@ -1,8 +1,8 @@
import type { SignatureConstructor } from "@/federation/cryptography";
import { DEFAULT_UA } from "@/federation/requester/constants";
import type { User } from "@/federation/schemas";
import { WebFingerSchema } from "@/federation/schemas/webfinger";
import { fromZodError } from "zod-validation-error";
import type { SignatureConstructor } from "../cryptography";
import type { User } from "../schemas";
import { WebFingerSchema } from "../schemas/webfinger";
import { DEFAULT_UA } from "./constants";
type HttpVerb = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";