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

easy-spotify-ts

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

easy-spotify-ts - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

1

dist/EasySpotify.d.ts

@@ -77,2 +77,3 @@ import { AxiosInstance, AxiosRequestConfig } from "axios";

updatePlaylistDetails(playlistId: string, params: UpdatePlaylistParams): Promise<void>;
addPlaylistTracks(playlistId: string, uris: string[]): Promise<void>;
replacePlaylistTracks(playlistId: string, uris: string[]): Promise<void>;

@@ -79,0 +80,0 @@ unfollowPlaylist(playlistId: string): Promise<void>;

33

dist/EasySpotify.js

@@ -626,3 +626,3 @@ "use strict";

};
EasySpotify.prototype.replacePlaylistTracks = function (playlistId, uris) {
EasySpotify.prototype.addPlaylistTracks = function (playlistId, uris) {
return __awaiter(this, void 0, void 0, function () {

@@ -634,3 +634,3 @@ var err_23;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.buildRequest("playlists/" + playlistId + "/tracks", { uris: uris }, "put")];
return [4 /*yield*/, this.buildRequest("playlists/" + playlistId + "/tracks", { uris: uris }, "post")];
case 1:

@@ -647,3 +647,3 @@ _a.sent();

};
EasySpotify.prototype.unfollowPlaylist = function (playlistId) {
EasySpotify.prototype.replacePlaylistTracks = function (playlistId, uris) {
return __awaiter(this, void 0, void 0, function () {

@@ -655,3 +655,3 @@ var err_24;

_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.buildRequest("playlists/" + playlistId + "/followers", undefined, "delete")];
return [4 /*yield*/, this.buildRequest("playlists/" + playlistId + "/tracks", { uris: uris }, "put")];
case 1:

@@ -668,5 +668,24 @@ _a.sent();

};
EasySpotify.prototype.unfollowPlaylist = function (playlistId) {
return __awaiter(this, void 0, void 0, function () {
var err_25;
return __generator(this, function (_a) {
switch (_a.label) {
case 0:
_a.trys.push([0, 2, , 3]);
return [4 /*yield*/, this.buildRequest("playlists/" + playlistId + "/followers", undefined, "delete")];
case 1:
_a.sent();
return [3 /*break*/, 3];
case 2:
err_25 = _a.sent();
throw err_25;
case 3: return [2 /*return*/];
}
});
});
};
EasySpotify.prototype.getUserProfile = function (userId) {
return __awaiter(this, void 0, void 0, function () {
var endpoint, response, err_25;
var endpoint, response, err_26;
return __generator(this, function (_a) {

@@ -685,4 +704,4 @@ switch (_a.label) {

case 2:
err_25 = _a.sent();
throw err_25;
err_26 = _a.sent();
throw err_26;
case 3: return [2 /*return*/];

@@ -689,0 +708,0 @@ }

@@ -0,0 +0,0 @@ export default class EasySpotifyConfig {

@@ -0,0 +0,0 @@ "use strict";

import EasySpotify from "./EasySpotify";
import EasySpotifyConfig from "./EasySpotifyConfig";
export { EasySpotify, EasySpotifyConfig };

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { SimplifiedArtist } from "./Artist";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ExternalUrls } from "./ExternalUrls";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { Image } from './Image';

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ export interface Copyright {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export interface ExternalIDS {
upc: string;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
export interface ExternalUrls {
spotify: string;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ export interface Followers {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ export interface Image {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ import { Album, FeaturedAlbums, SimplifiedAlbum } from "./Album";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { SimplifiedAlbum } from "./Album";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ import { ExternalUrls } from "./ExternalUrls";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ import { SimplifiedTrack } from ".";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { SimplifiedArtist } from "./Artist";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ import { SimplifiedAlbum } from "./Album";

@@ -0,0 +0,0 @@ "use strict";

@@ -0,0 +0,0 @@ import { ExternalUrls } from "./ExternalUrls";

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -0,0 +0,0 @@ MIT License

{
"name": "easy-spotify-ts",
"version": "0.2.1",
"version": "0.2.2",
"description": "A Spotify Web API library in Typescript",

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

@@ -0,0 +0,0 @@ # EasySpotifyTS - A Spotify Web Api TS Wrapper

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