transmogrify --> transformers

This commit is contained in:
Alex Gleason 2023-07-13 20:46:59 -05:00
parent 97e6f1385c
commit e5082ed805
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
6 changed files with 5 additions and 5 deletions

View File

@ -3,7 +3,7 @@ import { type Filter, findReplyTag, z } from '@/deps.ts';
import { getAuthor, getFilter, getFollows, publish } from '@/client.ts';
import { parseMetaContent } from '@/schema.ts';
import { signEvent } from '@/sign.ts';
import { toAccount, toStatus } from '@/transmogrify/nostr-to-mastoapi.ts';
import { toAccount, toStatus } from '@/transformers/nostr-to-mastoapi.ts';
import { buildLinkHeader, eventDateComparator, lookupAccount, nostrNow, paginationSchema, parseBody } from '@/utils.ts';
const createAccountController: AppController = (c) => {

View File

@ -1,6 +1,6 @@
import { AppController } from '@/app.ts';
import { lookupAccount } from '@/utils.ts';
import { toAccount } from '@/transmogrify/nostr-to-mastoapi.ts';
import { toAccount } from '@/transformers/nostr-to-mastoapi.ts';
const searchController: AppController = async (c) => {
const q = c.req.query('q');

View File

@ -3,7 +3,7 @@ import { getAncestors, getDescendants, getEvent, publish } from '@/client.ts';
import { ISO6391, Kind, z } from '@/deps.ts';
import { type Event } from '@/event.ts';
import { signEvent } from '@/sign.ts';
import { toStatus } from '@/transmogrify/nostr-to-mastoapi.ts';
import { toStatus } from '@/transformers/nostr-to-mastoapi.ts';
import { nostrNow, parseBody } from '@/utils.ts';
const createStatusSchema = z.object({

View File

@ -1,5 +1,5 @@
import { getFeed, getFollows, getPublicFeed } from '@/client.ts';
import { toStatus } from '@/transmogrify/nostr-to-mastoapi.ts';
import { toStatus } from '@/transformers/nostr-to-mastoapi.ts';
import { buildLinkHeader, paginationSchema } from '@/utils.ts';
import type { AppController } from '@/app.ts';

View File

@ -38,4 +38,4 @@ async function toActor(event: Event<0>, username: string): Promise<Actor> {
};
}
export { toActor };
export { toActor };