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

spotify-url-info

Package Overview
Dependencies
Maintainers
0
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.17 to 3.2.18

6

package.json

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

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

@@ -30,2 +30,6 @@ "author": {

{
"name": "Victor",
"email": "victor@offspringdigital.com"
},
{
"name": "Eitho",

@@ -32,0 +36,0 @@ "email": "62159998+Eithoo@users.noreply.github.com"

5

src/index.js

@@ -90,3 +90,4 @@ 'use strict'

const getImages = data => data.coverArt?.sources || data.images
const getImages = data =>
data.coverArt?.sources || data.images || data.visualIdentity.image

@@ -127,3 +128,3 @@ const getDate = data => data.releaseDate?.isoString || data.release_date

artist: track.artist,
image: getImages(data).reduce((a, b) => (a.width > b.width ? a : b)).url,
image: getImages(data)?.reduce((a, b) => (a.width > b.width ? a : b))?.url,
audio: track.previewUrl,

@@ -130,0 +131,0 @@ link: getLink(data),

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