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 2.2.8 to 2.2.9

2

package.json

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

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

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

@@ -79,7 +79,9 @@ 'use strict'

const artist = []
.concat(track.artists)
.filter(Boolean)
.map(a => a.name)
.join(' & ')
const artist = track.show
? track.show.publisher
: []
.concat(track.artists)
.filter(Boolean)
.map(a => a.name)
.join(' & ')

@@ -94,3 +96,3 @@ return Promise.resolve({

image: images.reduce((a, b) => (a.width > b.width ? a : b)).url,
audio: track.preview_url,
audio: track.audio_preview_url || track.preview_url,
link: data.external_urls.spotify,

@@ -97,0 +99,0 @@ embed: `https://embed.spotify.com/?uri=${data.uri}`

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