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

discord-player-youtubei

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord-player-youtubei - npm Package Compare versions

Comparing version

to
1.4.3-beta.4

@@ -435,3 +435,3 @@ "use strict";

function extractVideoId(vid) {
const YOUTUBE_REGEX2 = /^https:\/\/youtu(\.)?be(\.com)?\/(watch\?v\=)?.{11}(\?|\#)?(.+)?/;
const YOUTUBE_REGEX2 = /^https:\/\/(www\.)?youtu(\.be\/.{11}(.+)?|be\.com\/watch\?v=.{11}(&.+)?)/;
if (!YOUTUBE_REGEX2.test(vid)) throw new Error("Invalid youtube url");

@@ -438,0 +438,0 @@ let id = new URL(vid).searchParams.get("v");

{
"name": "discord-player-youtubei",
"version": "1.4.3-beta.3",
"version": "1.4.3-beta.4",
"description": "An unofficial package to test the use of youtubei in discord-player v6.",

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

Sorry, the diff of this file is not supported yet