ESM atproto packages (#10543)

This commit is contained in:
Samuel Newman
2026-05-22 00:41:04 +03:00
committed by GitHub
parent e1e5f28e98
commit 6fd81fe5dc
7 changed files with 86 additions and 136 deletions
+2 -5
View File
@@ -8,10 +8,7 @@ import {
type Did,
type Un$Typed,
} from '@atproto/api'
import {type FetchHandler} from '@atproto/api/dist/agent'
import {type SessionManager} from '@atproto/api/dist/session-manager'
import {TID} from '@atproto/common-web'
import {type FetchHandlerOptions} from '@atproto/xrpc'
import {networkRetry} from '#/lib/async/retry'
import {
@@ -336,9 +333,9 @@ export function sessionAccountToSession(
export class Agent extends BaseAgent {
constructor(
proxyHeader: ProxyHeaderValue | null,
options: SessionManager | FetchHandler | FetchHandlerOptions,
...options: ConstructorParameters<typeof BaseAgent>
) {
super(options)
super(...options)
if (proxyHeader) {
this.configureProxy(proxyHeader)
}