Socket
Socket
Sign inDemoInstall

spotify-web-api-ts

Package Overview
Dependencies
4
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.1 to 1.2.0

6

cjs/apis/FollowApi.d.ts

@@ -8,4 +8,6 @@ import { Http } from '../helpers/Http';

areFollowingPlaylist(playlistId: string, userIds: string[]): Promise<boolean[]>;
followArtist(artistId: string): Promise<void>;
followArtists(artistIds: string[]): Promise<void>;
followPlaylist(playlistId: string, options?: FollowPlaylistOptions): Promise<void>;
followUser(userId: string): Promise<void>;
followUsers(userIds: string[]): Promise<void>;

@@ -15,6 +17,10 @@ getFollowedArtists(options?: GetFollowedArtistsOptions): Promise<CursorBasedPaging<Artist>>;

isFollowingArtists(artistIds: string[]): Promise<boolean[]>;
isFollowingPlaylist(playlistId: string, userId: string): Promise<boolean>;
isFollowingUser(userId: string): Promise<boolean>;
isFollowingUsers(userIds: string[]): Promise<boolean[]>;
unfollowArtist(artistId: string): Promise<void>;
unfollowArtists(artistIds: string[]): Promise<void>;
unfollowPlaylist(playlistId: string): Promise<void>;
unfollowUser(userId: string): Promise<void>;
unfollowUsers(userIds: string[]): Promise<void>;
}

@@ -23,2 +23,5 @@ "use strict";

}
followArtist(artistId) {
return this.followArtists([artistId]);
}
followArtists(artistIds) {

@@ -37,2 +40,5 @@ return this.http.put('/me/following', {

}
followUser(userId) {
return this.followUsers([userId]);
}
followUsers(userIds) {

@@ -70,2 +76,14 @@ return this.http.put('/me/following', {

}
isFollowingPlaylist(playlistId, userId) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.areFollowingPlaylist(playlistId, [userId]);
return response[0];
});
}
isFollowingUser(userId) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.isFollowingUsers([userId]);
return response[0];
});
}
isFollowingUsers(userIds) {

@@ -79,2 +97,5 @@ return this.http.get('/me/following/contains', {

}
unfollowArtist(artistId) {
return this.unfollowArtists([artistId]);
}
unfollowArtists(artistIds) {

@@ -93,2 +114,5 @@ return this.http.delete('/me/following', {

}
unfollowUser(userId) {
return this.unfollowUsers([userId]);
}
unfollowUsers(userIds) {

@@ -95,0 +119,0 @@ return this.http.delete('/me/following', {

@@ -8,4 +8,6 @@ import { Http } from '../helpers/Http';

areFollowingPlaylist(playlistId: string, userIds: string[]): Promise<boolean[]>;
followArtist(artistId: string): Promise<void>;
followArtists(artistIds: string[]): Promise<void>;
followPlaylist(playlistId: string, options?: FollowPlaylistOptions): Promise<void>;
followUser(userId: string): Promise<void>;
followUsers(userIds: string[]): Promise<void>;

@@ -15,6 +17,10 @@ getFollowedArtists(options?: GetFollowedArtistsOptions): Promise<CursorBasedPaging<Artist>>;

isFollowingArtists(artistIds: string[]): Promise<boolean[]>;
isFollowingPlaylist(playlistId: string, userId: string): Promise<boolean>;
isFollowingUser(userId: string): Promise<boolean>;
isFollowingUsers(userIds: string[]): Promise<boolean[]>;
unfollowArtist(artistId: string): Promise<void>;
unfollowArtists(artistIds: string[]): Promise<void>;
unfollowPlaylist(playlistId: string): Promise<void>;
unfollowUser(userId: string): Promise<void>;
unfollowUsers(userIds: string[]): Promise<void>;
}

@@ -21,2 +21,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
followArtist(artistId) {
return this.followArtists([artistId]);
}
followArtists(artistIds) {

@@ -35,2 +38,5 @@ return this.http.put('/me/following', {

}
followUser(userId) {
return this.followUsers([userId]);
}
followUsers(userIds) {

@@ -68,2 +74,14 @@ return this.http.put('/me/following', {

}
isFollowingPlaylist(playlistId, userId) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.areFollowingPlaylist(playlistId, [userId]);
return response[0];
});
}
isFollowingUser(userId) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.isFollowingUsers([userId]);
return response[0];
});
}
isFollowingUsers(userIds) {

@@ -77,2 +95,5 @@ return this.http.get('/me/following/contains', {

}
unfollowArtist(artistId) {
return this.unfollowArtists([artistId]);
}
unfollowArtists(artistIds) {

@@ -91,2 +112,5 @@ return this.http.delete('/me/following', {

}
unfollowUser(userId) {
return this.unfollowUsers([userId]);
}
unfollowUsers(userIds) {

@@ -93,0 +117,0 @@ return this.http.delete('/me/following', {

2

package.json
{
"name": "spotify-web-api-ts",
"version": "1.1.1",
"version": "1.2.0",
"description": "An isomorphic TypeScript wrapper for Spotify's Web API",

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

@@ -8,4 +8,6 @@ import { Http } from '../helpers/Http';

areFollowingPlaylist(playlistId: string, userIds: string[]): Promise<boolean[]>;
followArtist(artistId: string): Promise<void>;
followArtists(artistIds: string[]): Promise<void>;
followPlaylist(playlistId: string, options?: FollowPlaylistOptions): Promise<void>;
followUser(userId: string): Promise<void>;
followUsers(userIds: string[]): Promise<void>;

@@ -15,7 +17,11 @@ getFollowedArtists(options?: GetFollowedArtistsOptions): Promise<CursorBasedPaging<Artist>>;

isFollowingArtists(artistIds: string[]): Promise<boolean[]>;
isFollowingPlaylist(playlistId: string, userId: string): Promise<boolean>;
isFollowingUser(userId: string): Promise<boolean>;
isFollowingUsers(userIds: string[]): Promise<boolean[]>;
unfollowArtist(artistId: string): Promise<void>;
unfollowArtists(artistIds: string[]): Promise<void>;
unfollowPlaylist(playlistId: string): Promise<void>;
unfollowUser(userId: string): Promise<void>;
unfollowUsers(userIds: string[]): Promise<void>;
}
//# sourceMappingURL=FollowApi.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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