genius-lyrics-api
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -14,3 +14,3 @@ const axios = require('axios'); | ||
const song = optimizeQuery ? getTitle(title, artist) : `${title} ${artist}`; | ||
const reqUrl = `${searchUrl}${encodeURI(song)}`; | ||
const reqUrl = `${searchUrl}${encodeURIComponent(song)}`; | ||
const headers = { | ||
@@ -17,0 +17,0 @@ Authorization: 'Bearer ' + apiKey |
{ | ||
"name": "genius-lyrics-api", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -108,3 +108,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) | ||
Accepts an [options](#types) object. <br/> | ||
Returns a promise that resolves to an object of type [searchResult](#types). Returns `null` if no matches are found. | ||
Returns a promise that resolves to an array of type [searchResult](#types). Returns `null` if no matches are found. | ||
@@ -111,0 +111,0 @@ ### `getSongById(id: (number | string))` |
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
9697