Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ytdl-core

Package Overview
Dependencies
Maintainers
1
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ytdl-core - npm Package Compare versions

Comparing version 0.7.18 to 0.7.19

4

lib/util.js

@@ -220,3 +220,7 @@ var qs = require('querystring');

*/
var idRegex = /^[a-zA-Z0-9-_]{11}$/;
exports.getVideoID = function(link) {
if (idRegex.test(link)) {
return link;
}
var parsed = url.parse(link, true);

@@ -223,0 +227,0 @@ var id = parsed.query.v;

2

package.json

@@ -9,3 +9,3 @@ {

],
"version": "0.7.18",
"version": "0.7.19",
"repository": {

@@ -12,0 +12,0 @@ "type": "git",

@@ -233,2 +233,4 @@ var util = require('../lib/util');

assert(id, 'VIDEO_ID');
id = util.getVideoID('RAW_VIDEOID'); // Video ids are 11-character long
assert(id, 'RAW_VIDEOID');
});

@@ -235,0 +237,0 @@ });

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