Socket
Socket
Sign inDemoInstall

genius-lyrics-api

Package Overview
Dependencies
94
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.1.1 to 3.2.0

1

lib/getSong.js

@@ -16,2 +16,3 @@ const searchSong = require('./searchSong');

id: results[0].id,
title: results[0].title,
url: results[0].url,

@@ -18,0 +19,0 @@ lyrics,

12

lib/getSongById.js

@@ -13,5 +13,5 @@ const axios = require('axios');

try {
const headers = {
Authorization: 'Bearer ' + apiKey
};
// const headers = {
// Authorization: 'Bearer ' + apiKey
// };
let {

@@ -21,6 +21,10 @@ data: {

}
} = await axios.get(url + id, { headers });
} = await axios.get(
`${url}${id}&access_token=${apiKey}`
// { headers }
);
let lyrics = await extractLyrics(song.url);
return {
id: song.id,
title: song.full_title,
url: song.url,

@@ -27,0 +31,0 @@ lyrics,

{
"name": "genius-lyrics-api",
"version": "3.1.1",
"version": "3.2.0",
"main": "index.js",

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

@@ -41,2 +41,3 @@ # genius-lyrics-api [![npm version](https://img.shields.io/npm/v/genius-lyrics-api.svg?style=flat)](https://www.npmjs.com/package/genius-lyrics-api)

${song.id}
${song.title}
${song.url}

@@ -72,2 +73,3 @@ ${song.albumArt}

id: number; // Genius song id
title: string; // Song title
url: string; // Genius webpage URL for the song

@@ -74,0 +76,0 @@ lyrics: string; // Song lyrics

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc