discord-player-youtubei
Advanced tools
Comparing version 1.2.5-beta.1 to 1.2.5-beta.2
@@ -66,10 +66,7 @@ "use strict"; | ||
var import_youtubei = require("youtubei.js"); | ||
function createReadableFromWeb(readStream) { | ||
const readable = new import_stream.Readable(); | ||
(async () => { | ||
for await (const chunk of import_youtubei.Utils.streamToIterable(readStream)) { | ||
readable.push(chunk); | ||
} | ||
readable.push(null); | ||
})(); | ||
async function createReadableFromWeb(readStream) { | ||
const readable = new import_stream.PassThrough(); | ||
for await (const chunk of import_youtubei.Utils.streamToIterable(readStream)) { | ||
readable.write(chunk); | ||
} | ||
return readable; | ||
@@ -76,0 +73,0 @@ } |
{ | ||
"name": "discord-player-youtubei", | ||
"version": "1.2.5-beta.1", | ||
"version": "1.2.5-beta.2", | ||
"description": "An unofficial package to test the use of youtubei in discord-player v6.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
36384
565