We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unsupported BodyInit type
After import 'ky' (> 0.31.1), the Error: unsupported BodyInit type will block all code runs.
Since: v0.31.2
export const supportsStreams = (() => { let duplexAccessed = false; let hasContentType = false; const supportsReadableStream = typeof globalThis.ReadableStream === 'function'; if (supportsReadableStream) { hasContentType = new globalThis.Request('', { body: new globalThis.ReadableStream(), // <--- this error trigger error method: 'POST', get duplex() { duplexAccessed = true; return 'half'; }, }).headers.has('Content-Type'); } return duplexAccessed && !hasContentType; })();
Can we skip this step?
The text was updated successfully, but these errors were encountered:
What runtimes?
Sorry, something went wrong.
No branches or pull requests
After import 'ky' (> 0.31.1), the Error:
unsupported BodyInit type
will block all code runs.Since: v0.31.2
Can we skip this step?
The text was updated successfully, but these errors were encountered: