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