fix basic build errors from deps bump
This commit is contained in:
parent
b9b7462c4f
commit
64162fa136
@ -1,6 +1,6 @@
|
||||
import express from 'express'
|
||||
import { verifyJwt, AuthRequiredError } from '@atproto/xrpc-server'
|
||||
import { DidResolver } from '@atproto/did-resolver'
|
||||
import { DidResolver } from '@atproto/identity'
|
||||
|
||||
export const validateAuth = async (
|
||||
req: express.Request,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { Database } from './db'
|
||||
import { DidResolver } from '@atproto/did-resolver'
|
||||
import { DidResolver } from '@atproto/identity'
|
||||
|
||||
export type AppContext = {
|
||||
db: Database
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Server } from '../lexicon'
|
||||
import { AppContext } from '../config'
|
||||
import algos from '../algos'
|
||||
import { AtUri } from '@atproto/uri'
|
||||
import { AtUri } from '@atproto/syntax'
|
||||
|
||||
export default function (server: Server, ctx: AppContext) {
|
||||
server.app.bsky.feed.describeFeedGenerator(async () => {
|
||||
|
@ -3,7 +3,7 @@ import { Server } from '../lexicon'
|
||||
import { AppContext } from '../config'
|
||||
import algos from '../algos'
|
||||
import { validateAuth } from '../auth'
|
||||
import { AtUri } from '@atproto/uri'
|
||||
import { AtUri } from '@atproto/syntax'
|
||||
|
||||
export default function (server: Server, ctx: AppContext) {
|
||||
server.app.bsky.feed.getFeedSkeleton(async ({ params, req }) => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import http from 'http'
|
||||
import events from 'events'
|
||||
import express from 'express'
|
||||
import { DidResolver, MemoryCache } from '@atproto/did-resolver'
|
||||
import { DidResolver, MemoryCache } from '@atproto/identity'
|
||||
import { createServer } from './lexicon'
|
||||
import feedGeneration from './methods/feed-generation'
|
||||
import describeGenerator from './methods/describe-generator'
|
||||
@ -35,10 +35,10 @@ export class FeedGenerator {
|
||||
const firehose = new FirehoseSubscription(db, cfg.subscriptionEndpoint)
|
||||
|
||||
const didCache = new MemoryCache()
|
||||
const didResolver = new DidResolver(
|
||||
{ plcUrl: 'https://plc.directory' },
|
||||
const didResolver = new DidResolver({
|
||||
plcUrl: 'https://plc.directory',
|
||||
didCache,
|
||||
)
|
||||
})
|
||||
|
||||
const server = createServer({
|
||||
validateResponse: true,
|
||||
|
Loading…
Reference in New Issue
Block a user