Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spotify-node-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spotify-node-wrapper - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

package.json
{
"name": "spotify-node-wrapper",
"version": "1.0.1",
"version": "1.0.2",
"description": "A simplified interface to interact with the Spotify Web API.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -35,8 +35,5 @@ import fetch from 'node-fetch';

let ids = '?ids=';
listOfAlbumID.map(async (album) => {
ids += `${album},`;
})
let albums = listOfAlbumID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -97,8 +94,5 @@ method: 'GET',

let ids = '?ids=';
listOfAlbumID.map(async (album) => {
ids += `${album},`;
})
let albums = listOfAlbumID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -138,8 +132,5 @@ method: 'PUT',

let ids = '?ids=';
listOfAlbumID.map(async (album) => {
ids += `${album},`;
})
let albums = listOfAlbumID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -177,10 +168,7 @@ method: 'DELETE',

}
let ids = '?ids=';
listOfAlbumID.map(async (album) => {
ids += `${album},`;
})
let albums = listOfAlbumID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -195,6 +183,3 @@ method: 'GET',

const response = await fetch(`${baseURI}me/albums/contains${ids}`, options);
return {
response: await response.json(),
};
return response.json()
}

@@ -201,0 +186,0 @@

@@ -33,10 +33,7 @@ import fetch from 'node-fetch';

}
let ids = '?ids=';
listOfArtistID.map(async (album) => {
ids += `${album},`;
})
let albums = listOfArtistID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -43,0 +40,0 @@ method: 'GET',

@@ -35,8 +35,5 @@ import fetch from 'node-fetch';

let ids = '?ids=';
listOfAudiobookID.map(async (audiobook) => {
ids += `${audiobook},`;
})
let albums = listOfAudiobookID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -97,8 +94,5 @@ method: 'GET',

let ids = '?ids=';
listOfAudiobookID.map(async (audiobook) => {
ids += `${audiobook},`;
})
let albums = listOfAudiobookID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -136,10 +130,7 @@ method: 'PUT',

}
let ids = '?ids=';
listOfAudiobookID.map(async (audiobook) => {
ids += `${audiobook},`;
})
let albums = listOfAudiobookID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -177,10 +168,7 @@ method: 'DELETE',

}
let ids = '?ids=';
listOfAudiobookID.map(async (album) => {
ids += `${album},`;
})
let albums = listOfAudiobookID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -187,0 +175,0 @@ method: 'GET',

@@ -34,8 +34,5 @@ import fetch from 'node-fetch';

let ids = '?ids=';
listOfChapterID.forEach((chapter) => {
ids += `${chapter},`;
});
let albums = listOfChapterID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -42,0 +39,0 @@ method: 'GET',

@@ -33,3 +33,5 @@ import fetch from 'node-fetch';

const ids = listOfEpisodeID.join(",");
let ids = '?ids=';
let albums = listOfEpisodeID.join(',');
ids += `${albums}`;

@@ -44,3 +46,3 @@ const options = {

const response = await fetch(`${baseURI}episodes?ids=${ids}`, options);
const response = await fetch(`${baseURI}episodes${ids}`, options);
return response.json();

@@ -47,0 +49,0 @@ }

@@ -32,10 +32,7 @@ import fetch from 'node-fetch';

}
let ids = '?ids=';
listOfShowID.forEach(show => {
ids += `${show},`;
});
let albums = listOfShowID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -134,8 +131,5 @@ method: 'GET',

let ids = '?ids=';
listOfShowID.forEach(show => {
ids += `${show},`;
});
let albums = listOfShowID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -174,8 +168,5 @@ method: 'DELETE',

let ids = '?ids=';
listOfShowID.forEach(show => {
ids += `${show},`;
});
let albums = listOfShowID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -182,0 +173,0 @@ method: 'GET',

@@ -34,8 +34,5 @@ import fetch from 'node-fetch';

let ids = '?ids=';
listOfTrackID.forEach(track => {
ids += `${track},`;
});
let albums = listOfTrackID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -82,8 +79,5 @@ method: 'GET',

let ids = '?ids=';
listOfTrackID.forEach(track => {
ids += `${track},`;
});
let albums = listOfTrackID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -122,8 +116,5 @@ method: 'PUT',

let ids = '?ids=';
listOfTrackID.forEach(track => {
ids += `${track},`;
});
let albums = listOfTrackID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -162,8 +153,5 @@ method: 'DELETE',

let ids = '?ids=';
listOfTrackID.forEach(track => {
ids += `${track},`;
});
let albums = listOfTrackID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -200,8 +188,5 @@ method: 'GET',

let ids = '?ids=';
listOfTrackID.forEach(track => {
ids += `${track},`;
});
let albums = listOfTrackID.join(',');
ids += `${albums}`;
ids = ids.slice(0, -1);
const options = {

@@ -208,0 +193,0 @@ method: 'GET',

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