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

spotify-url-info

Package Overview
Dependencies
Maintainers
2
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-url-info - npm Package Compare versions

Comparing version 3.2.11 to 3.2.12

2

package.json

@@ -5,3 +5,3 @@ {

"homepage": "https://github.com/microlinkhq/spotify-url-info",
"version": "3.2.11",
"version": "3.2.12",
"main": "src/index.js",

@@ -8,0 +8,0 @@ "author": {

@@ -23,4 +23,6 @@ 'use strict'

const throwError = message => {
throw new TypeError(`${message}\n${ERROR.REPORT}`)
const throwError = (message, html) => {
const error = new TypeError(`${message}\n${ERROR.REPORT}`)
error.html = html
throw error
}

@@ -32,3 +34,3 @@

let scripts = embed.find(el => el.tagName === 'html')
if (scripts === undefined) return throwError(ERROR.NOT_SCRIPTS)
if (scripts === undefined) return throwError(ERROR.NOT_SCRIPTS, html)

@@ -69,3 +71,3 @@ scripts = scripts.children

return throwError(ERROR.NOT_DATA)
return throwError(ERROR.NOT_DATA, html)
}

@@ -113,3 +115,4 @@

const getTracks = data => data.trackList ? data.trackList.map(toTrack) : [toTrack(data)]
const getTracks = data =>
data.trackList ? data.trackList.map(toTrack) : [toTrack(data)]

@@ -174,1 +177,2 @@ function getPreview (data) {

module.exports.parseData = parseData
module.exports.throwError = throwError
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