spotify-minimal-api
Advanced tools
Comparing version 1.0.1 to 1.0.2
{ | ||
"name": "spotify-minimal-api", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Let's use the Spotify API data to generate a nice user experience", | ||
@@ -5,0 +5,0 @@ "main": "dist/spotify-minimal-api.cjs.js", |
@@ -40,5 +40,5 @@ // Here we can use some of the user API | ||
export const getTopListened = async(limit, offset, type, time_range, token) => { | ||
const limit = limit ? limit : 10 | ||
const offset = offset ? offset : 0 | ||
const request = await fetch(`https://api.spotify.com/v1/me/top/${type}?time_range=${time_range}&limit=${limit}&offset=${offset}`,{ | ||
const inlimit = limit ? limit : 10 | ||
const inoffset = offset ? offset : 0 | ||
const request = await fetch(`https://api.spotify.com/v1/me/top/${type}?time_range=${time_range}&limit=${inlimit}&offset=${inoffset}`,{ | ||
headers: { | ||
@@ -45,0 +45,0 @@ 'Autorization' : `Bearer ${token}`, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
65205
7
1435
13