Socket
Socket
Sign inDemoInstall

spotify-minimal-api

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

dist/spotify-minimal-api.cjs.js

2

package.json
{
"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}`,

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