debian-mirror-gitlab/app/assets/javascripts/streaming/polyfills.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

6 lines
318 B
JavaScript
Raw Normal View History

2023-05-27 22:25:52 +05:30
import { createReadableStreamWrapper } from '@mattiasbuelens/web-streams-adapter';
import { ReadableStream as PolyfillReadableStream } from 'web-streams-polyfill';
// TODO: remove this when our WebStreams API reaches 100% support
export const toPolyfillReadable = createReadableStreamWrapper(PolyfillReadableStream);