spotify-url-info
Advanced tools
Comparing version 3.1.6 to 3.1.7
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/microlinkhq/spotify-url-info", | ||
"version": "3.1.6", | ||
"version": "3.1.7", | ||
"main": "src/index.js", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -36,3 +36,3 @@ 'use strict' | ||
return normalizeData({ | ||
data: JSON.parse(decodeURIComponent(script.children[0].content)) | ||
data: JSON.parse(Buffer.from(script.children[0].content, 'base64')) | ||
}) | ||
@@ -47,5 +47,4 @@ } | ||
// found data in the new embed style | ||
const data = JSON.parse( | ||
Buffer.from(decodeURIComponent(script.children[0].content), 'base64') | ||
).data.entity | ||
const data = JSON.parse(Buffer.from(script.children[0].content, 'base64')) | ||
.data.entity | ||
return normalizeData({ data }) | ||
@@ -52,0 +51,0 @@ } |
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
13117
219