a collection of lightweight TypeScript packages for AT Protocol, the protocol powering Bluesky
atproto bluesky typescript npm

fix(client): set `duplex: 'half'` when a ReadableStream is passed

mary.my.id c20907bd 48e69e36

verified
Changed files
+12
.changeset
packages
clients
client
+5
.changeset/sharp-rings-brake.md
··· 1 + --- 2 + '@atcute/client': patch 3 + --- 4 + 5 + set `duplex: 'half'` when a ReadableStream is passed
+1
packages/clients/client/lib/client.ts
··· 356 356 'content-type': input && !isWebInput ? 'application/json' : null, 357 357 'atproto-proxy': _constructProxyHeader(this.proxy), 358 358 }), 359 + duplex: input instanceof ReadableStream ? 'half' : undefined, 359 360 }); 360 361 361 362 {
+6
packages/clients/client/lib/env.d.ts
··· 1 1 import type {} from '@atcute/atproto'; 2 + 3 + declare global { 4 + interface RequestInit { 5 + duplex?: 'half' | 'full'; 6 + } 7 + }