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 4.4.3 to 4.4.4

10

lib/utils.js

@@ -75,2 +75,5 @@ const miniget = require('miniget');

// States if the current character is treated as escaped or not
let isEscaped = false;
// Current open brackets to be closed

@@ -82,6 +85,11 @@ let counter = 0;

// Toggle the isString boolean when leaving/entering string
if (mixedJson[i] === '"' && mixedJson[i - 1] !== '\\') {
if (mixedJson[i] === '"' && !isEscaped) {
isString = !isString;
continue;
}
// Toggle the isEscaped boolean for every backslash
// Reset for every regular character
isEscaped = mixedJson[i] === '\\' && !isEscaped;
if (isString) continue;

@@ -88,0 +96,0 @@

2

package.json

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

],
"version": "4.4.3",
"version": "4.4.4",
"repository": {

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

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