Merge pull request #52 from mozzius/update-client

Update `@atproto/api`
This commit is contained in:
ryo
2024-10-17 22:53:43 +09:00
committed by GitHub
4 changed files with 105 additions and 128 deletions

View File

@@ -1,4 +1,4 @@
import { AtUri, type AtpSessionData, BskyAgent } from "@atproto/api";
import { AtUri, type AtpSessionData, AtpAgent } from "@atproto/api";
// try and cut down the amount of session resumes by caching the clients
const clientCache = new Map<string, BskyClient>()
@@ -15,11 +15,11 @@ export class BskyClient {
handle: string;
email: string;
};
agent: BskyAgent;
agent: AtpAgent;
session = {};
private constructor() {
this.agent = new BskyAgent({
this.agent = new AtpAgent({
service: this.service,
persistSession: (evt, session) => {
this.session = session;