New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

discord-player-youtubei

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-player-youtubei - npm Package Compare versions

Comparing version 1.2.6 to 1.2.7-beta.0

15

dist/index.js

@@ -79,12 +79,17 @@ "use strict";

(async () => {
let shouldListen = true;
for await (const chunk of import_youtubei.Utils.streamToIterable(readStream)) {
if (readable.destroyed) continue;
const shouldWrite = readable.write(chunk);
if (!shouldWrite) await new Promise((res) => readable.once("drain", () => res(null)));
if (!shouldWrite && shouldListen) {
shouldListen = false;
await new Promise((res) => {
readable.once("drain", () => {
shouldListen = true;
res();
});
});
}
}
})();
readable._destroy = () => {
readable.destroyed = true;
readable.destroy();
};
return readable;

@@ -91,0 +96,0 @@ }

{
"name": "discord-player-youtubei",
"version": "1.2.6",
"version": "1.2.7-beta.0",
"description": "An unofficial package to test the use of youtubei in discord-player v6.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc