ionic-youtube-search
Advanced tools
Comparing version 1.0.9 to 1.1.0
@@ -59,7 +59,6 @@ "use strict"; | ||
html = _a.sent(); | ||
navigator.clipboard.writeText(html); | ||
// try to parse html | ||
try { | ||
data = html.split("ytInitialData = '")[1].split("';</script>")[0]; | ||
// let data = html.split("ytInitialData = JSON.parse('")[1].split("');</script>")[0]; | ||
// @ts-ignore | ||
html = data.replace(/\\x([0-9A-F]{2})/ig, function () { | ||
@@ -72,2 +71,3 @@ var items = []; | ||
}); | ||
navigator.clipboard.writeText(html); | ||
} | ||
@@ -74,0 +74,0 @@ catch (e) { /* nothing */ } |
{ | ||
"name": "ionic-youtube-search", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "Search videos on YouTube without API key in ionic apps", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27911