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

ionic-youtube-search

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ionic-youtube-search - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

28

lib/lib/search.js

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

try {
data = html.split("ytInitialData = ")[1].split("');</script>")[0];
data = html.split("ytInitialData = ")[1].split("\"]};</script>")[0];
html = data.replace(/\\x([0-9A-F]{2})/ig, function () {

@@ -71,14 +71,21 @@ var items = [];

}
catch (e) {
alert(1);
}
catch (e) { /* nothing */ }
try {
details = JSON.parse(html.split('{"itemSectionRenderer":{"contents":')[html.split('{"itemSectionRenderer":{"contents":').length - 1].split(',"continuations":[{')[0]);
details = JSON.parse(html.split('{\"itemSectionRenderer\":{\"contents\":')[html.split('{\"itemSectionRenderer\":{\"contents\":').length - 1].split(',"continuations":[{')[0]);
fetched = true;
}
catch (e) {
alert(2);
alert(22);
}
if (!fetched) {
try {
details = JSON.parse(html.split('{"itemSectionRenderer":{"contents":')[html.split('{"itemSectionRenderer":{"contents":').length - 1].split(',"continuations":[{')[0]);
fetched = true;
}
catch (e) {
alert(2);
}
}
if (!fetched) {
try {
details = JSON.parse(html.split('{"itemSectionRenderer":')[html.split('{"itemSectionRenderer":').length - 1].split('},{"continuationItemRenderer":{')[0]).contents;

@@ -91,2 +98,11 @@ fetched = true;

}
if (!fetched) {
try {
details = JSON.parse(html.split('{\"itemSectionRenderer\":')[html.split('{\"itemSectionRenderer\":').length - 1].split('},{\"continuationItemRenderer\":{')[0]).contents;
fetched = true;
}
catch (e) {
alert(33);
}
}
alert('Not fetched');

@@ -93,0 +109,0 @@ if (!fetched)

{
"name": "ionic-youtube-search",
"version": "1.0.7",
"version": "1.0.8",
"description": "Search videos on YouTube without API key in ionic apps",

@@ -5,0 +5,0 @@ "main": "lib/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