/*! MIT License © Sindre Sorhus */ /** * @license * web-streams-polyfill v4.0.0-beta.1 * Copyright 2021 Mattias Buelens, Diwank Singh Tomer and other contributors. * This code is released under the MIT license. * SPDX-License-Identifier: MIT */ /** * Function that converts Node's Readable into WHATWG ReadableStream * * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js * Because it uses forked web-streams-polyfill that are outdated. * * @author https://github.com/gwicke * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE * @param nodeStream */ /** * Function that converts WHATWG ReadableStream into Node's Readable * * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js * Because it uses forked web-streams-polyfill that is outdated. * * **Warning!** * If you want to use this function in browser you have to polyfill `stream` package with your bundler. * * @author https://github.com/gwicke * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE * @param webStream * @param options */ /** * Function that deep merges objects * * @copyright https://github.com/sindresorhus/ky/blob/b3c9e88fa49d50150dbb6e6b771b4af56cb40c98/source/utils/merge.ts * @licence MIT * @param sources */ /** * Taken over from https://github.com/gwicke/node-web-streams/blob/master/lib/conversions.js * Because it uses forked web-streams-polyfill that are outdated. * * @author https://github.com/gwicke * @licence Apache License 2.0 https://github.com/gwicke/node-web-streams/blob/master/LICENSE */ /** * [js-sha3]{@link https://github.com/emn178/js-sha3} * * @version 0.8.0 * @author Chen, Yi-Cyuan [emn178@gmail.com] * @copyright Chen, Yi-Cyuan 2015-2018 * @license MIT */