mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
chore: ⬆️ Upgrade @lysand-org/federation to latest
This commit is contained in:
parent
8a6d71d958
commit
8213ca62e0
|
|
@ -2,8 +2,10 @@ import { mentionValidator } from "@/api";
|
||||||
import { sanitizeHtml, sanitizeHtmlInline } from "@/sanitization";
|
import { sanitizeHtml, sanitizeHtmlInline } from "@/sanitization";
|
||||||
import markdownItTaskLists from "@hackmd/markdown-it-task-lists";
|
import markdownItTaskLists from "@hackmd/markdown-it-task-lists";
|
||||||
import { getLogger } from "@logtape/logtape";
|
import { getLogger } from "@logtape/logtape";
|
||||||
import { SignatureConstructor } from "@lysand-org/federation";
|
import {
|
||||||
import { FederationRequester } from "@lysand-org/federation/requester";
|
FederationRequester,
|
||||||
|
SignatureConstructor,
|
||||||
|
} from "@lysand-org/federation";
|
||||||
import type { ContentFormat } from "@lysand-org/federation/types";
|
import type { ContentFormat } from "@lysand-org/federation/types";
|
||||||
import { config } from "config-manager";
|
import { config } from "config-manager";
|
||||||
import {
|
import {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
import { parseUserAddress, userAddressValidator } from "@/api";
|
import { parseUserAddress, userAddressValidator } from "@/api";
|
||||||
import { SignatureConstructor } from "@lysand-org/federation";
|
import {
|
||||||
import { FederationRequester } from "@lysand-org/federation/requester";
|
FederationRequester,
|
||||||
|
SignatureConstructor,
|
||||||
|
} from "@lysand-org/federation";
|
||||||
import { Args } from "@oclif/core";
|
import { Args } from "@oclif/core";
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
import ora from "ora";
|
import ora from "ora";
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
import { parseUserAddress, userAddressValidator } from "@/api";
|
import { parseUserAddress, userAddressValidator } from "@/api";
|
||||||
import { SignatureConstructor } from "@lysand-org/federation";
|
import {
|
||||||
import { FederationRequester } from "@lysand-org/federation/requester";
|
FederationRequester,
|
||||||
|
SignatureConstructor,
|
||||||
|
} from "@lysand-org/federation";
|
||||||
import { Args } from "@oclif/core";
|
import { Args } from "@oclif/core";
|
||||||
import chalk from "chalk";
|
import chalk from "chalk";
|
||||||
import ora from "ora";
|
import ora from "ora";
|
||||||
|
|
|
||||||
|
|
@ -104,7 +104,7 @@
|
||||||
"@json2csv/plainjs": "^7.0.6",
|
"@json2csv/plainjs": "^7.0.6",
|
||||||
"@logtape/logtape": "npm:@jsr/logtape__logtape@0.4.2",
|
"@logtape/logtape": "npm:@jsr/logtape__logtape@0.4.2",
|
||||||
"@lysand-org/client": "^0.2.4",
|
"@lysand-org/client": "^0.2.4",
|
||||||
"@lysand-org/federation": "^2.1.3",
|
"@lysand-org/federation": "2.1.8",
|
||||||
"@oclif/core": "^4.0.12",
|
"@oclif/core": "^4.0.12",
|
||||||
"@tufjs/canonical-json": "^2.0.0",
|
"@tufjs/canonical-json": "^2.0.0",
|
||||||
"altcha-lib": "^0.4.0",
|
"altcha-lib": "^0.4.0",
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,10 @@ import type {
|
||||||
Account as ApiAccount,
|
Account as ApiAccount,
|
||||||
Mention as ApiMention,
|
Mention as ApiMention,
|
||||||
} from "@lysand-org/client/types";
|
} from "@lysand-org/client/types";
|
||||||
import { EntityValidator } from "@lysand-org/federation";
|
import {
|
||||||
import type { FederationRequester } from "@lysand-org/federation/requester";
|
EntityValidator,
|
||||||
|
type FederationRequester,
|
||||||
|
} from "@lysand-org/federation";
|
||||||
import type { Entity, User as LysandUser } from "@lysand-org/federation/types";
|
import type { Entity, User as LysandUser } from "@lysand-org/federation/types";
|
||||||
import {
|
import {
|
||||||
type InferInsertModel,
|
type InferInsertModel,
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,10 @@ import { applyConfig, auth, handleZodError } from "@/api";
|
||||||
import { errorResponse, jsonResponse } from "@/response";
|
import { errorResponse, jsonResponse } from "@/response";
|
||||||
import type { Hono } from "@hono/hono";
|
import type { Hono } from "@hono/hono";
|
||||||
import { zValidator } from "@hono/zod-validator";
|
import { zValidator } from "@hono/zod-validator";
|
||||||
import { SignatureConstructor } from "@lysand-org/federation";
|
import {
|
||||||
import { FederationRequester } from "@lysand-org/federation/requester";
|
FederationRequester,
|
||||||
|
SignatureConstructor,
|
||||||
|
} from "@lysand-org/federation";
|
||||||
import { eq } from "drizzle-orm";
|
import { eq } from "drizzle-orm";
|
||||||
import {
|
import {
|
||||||
anyOf,
|
anyOf,
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,10 @@ import { applyConfig, auth, handleZodError } from "@/api";
|
||||||
import { errorResponse, jsonResponse } from "@/response";
|
import { errorResponse, jsonResponse } from "@/response";
|
||||||
import type { Hono } from "@hono/hono";
|
import type { Hono } from "@hono/hono";
|
||||||
import { zValidator } from "@hono/zod-validator";
|
import { zValidator } from "@hono/zod-validator";
|
||||||
import { SignatureConstructor } from "@lysand-org/federation";
|
import {
|
||||||
import { FederationRequester } from "@lysand-org/federation/requester";
|
FederationRequester,
|
||||||
|
SignatureConstructor,
|
||||||
|
} from "@lysand-org/federation";
|
||||||
import { eq, ilike, not, or, sql } from "drizzle-orm";
|
import { eq, ilike, not, or, sql } from "drizzle-orm";
|
||||||
import {
|
import {
|
||||||
anyOf,
|
anyOf,
|
||||||
|
|
|
||||||
|
|
@ -8,8 +8,10 @@ import {
|
||||||
import { errorResponse, jsonResponse } from "@/response";
|
import { errorResponse, jsonResponse } from "@/response";
|
||||||
import type { Hono } from "@hono/hono";
|
import type { Hono } from "@hono/hono";
|
||||||
import { zValidator } from "@hono/zod-validator";
|
import { zValidator } from "@hono/zod-validator";
|
||||||
import { SignatureConstructor } from "@lysand-org/federation";
|
import {
|
||||||
import { FederationRequester } from "@lysand-org/federation/requester";
|
FederationRequester,
|
||||||
|
SignatureConstructor,
|
||||||
|
} from "@lysand-org/federation";
|
||||||
import { and, eq, inArray, sql } from "drizzle-orm";
|
import { and, eq, inArray, sql } from "drizzle-orm";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
import { searchManager } from "~/classes/search/search-manager";
|
import { searchManager } from "~/classes/search/search-manager";
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,11 @@ import { errorResponse, jsonResponse } from "@/response";
|
||||||
import type { Hono } from "@hono/hono";
|
import type { Hono } from "@hono/hono";
|
||||||
import { zValidator } from "@hono/zod-validator";
|
import { zValidator } from "@hono/zod-validator";
|
||||||
import { getLogger } from "@logtape/logtape";
|
import { getLogger } from "@logtape/logtape";
|
||||||
import { SignatureConstructor } from "@lysand-org/federation";
|
|
||||||
import {
|
import {
|
||||||
FederationRequester,
|
FederationRequester,
|
||||||
type ResponseError,
|
type ResponseError,
|
||||||
} from "@lysand-org/federation/requester";
|
SignatureConstructor,
|
||||||
|
} from "@lysand-org/federation";
|
||||||
import { and, eq, isNull } from "drizzle-orm";
|
import { and, eq, isNull } from "drizzle-orm";
|
||||||
import { lookup } from "mime-types";
|
import { lookup } from "mime-types";
|
||||||
import { z } from "zod";
|
import { z } from "zod";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue