lastfm-nodejs-client 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/index.d.ts +12 -22
- package/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/src/types.d.ts +1 -1
package/@types/index.d.ts
CHANGED
|
@@ -149,7 +149,7 @@ export interface Date {
|
|
|
149
149
|
export interface Track {
|
|
150
150
|
artist: Artist;
|
|
151
151
|
streamable: string;
|
|
152
|
-
image:
|
|
152
|
+
image: Image[];
|
|
153
153
|
mbid: string;
|
|
154
154
|
album: Album;
|
|
155
155
|
name: string;
|
|
@@ -278,12 +278,7 @@ export interface WeeklyTrackChartAttr2 {
|
|
|
278
278
|
}
|
|
279
279
|
|
|
280
280
|
export const LastFmApi: () => {
|
|
281
|
-
auth: (
|
|
282
|
-
method: string,
|
|
283
|
-
user: string,
|
|
284
|
-
period: string,
|
|
285
|
-
limit: number
|
|
286
|
-
) => Promise<AuthResponse>;
|
|
281
|
+
auth: (method: string, user: string, period: string, limit: number) => Promise<AuthResponse>;
|
|
287
282
|
config: {
|
|
288
283
|
api_key: string;
|
|
289
284
|
app_name: string;
|
|
@@ -295,65 +290,60 @@ export const LastFmApi: () => {
|
|
|
295
290
|
share_secret: string;
|
|
296
291
|
username: string;
|
|
297
292
|
};
|
|
298
|
-
getInfo: (
|
|
299
|
-
method: string,
|
|
300
|
-
user: string,
|
|
301
|
-
period: string,
|
|
302
|
-
limit: number
|
|
303
|
-
) => Promise<UserResponse>;
|
|
293
|
+
getInfo: (method: string, user: string, period: string, limit: number) => Promise<UserResponse>;
|
|
304
294
|
getLovedTracks: (
|
|
305
295
|
method: string,
|
|
306
296
|
user: string,
|
|
307
297
|
period: string,
|
|
308
|
-
limit: number
|
|
298
|
+
limit: number,
|
|
309
299
|
) => Promise<LovedTracksResponse>;
|
|
310
300
|
getRecentTracks: (
|
|
311
301
|
method: string,
|
|
312
302
|
user: string,
|
|
313
303
|
period: string,
|
|
314
|
-
limit: number
|
|
304
|
+
limit: number,
|
|
315
305
|
) => Promise<RecentTracksResponse>;
|
|
316
306
|
getTopAlbums: (
|
|
317
307
|
method: string,
|
|
318
308
|
user: string,
|
|
319
309
|
period: string,
|
|
320
|
-
limit: number
|
|
310
|
+
limit: number,
|
|
321
311
|
) => Promise<TopAlbumsResponse>;
|
|
322
312
|
getTopArtists: (
|
|
323
313
|
method: string,
|
|
324
314
|
user: string,
|
|
325
315
|
period: string,
|
|
326
|
-
limit: number
|
|
316
|
+
limit: number,
|
|
327
317
|
) => Promise<TopArtistsResponse>;
|
|
328
318
|
getTopTracks: (
|
|
329
319
|
method: string,
|
|
330
320
|
user: string,
|
|
331
321
|
period: string,
|
|
332
|
-
limit: number
|
|
322
|
+
limit: number,
|
|
333
323
|
) => Promise<TopTrackResponse>;
|
|
334
324
|
getWeeklyAlbumChart: (
|
|
335
325
|
method: string,
|
|
336
326
|
user: string,
|
|
337
327
|
period: string,
|
|
338
|
-
limit: number
|
|
328
|
+
limit: number,
|
|
339
329
|
) => Promise<WeeklyAlbumChartResponse>;
|
|
340
330
|
getWeeklyArtistChart: (
|
|
341
331
|
method: string,
|
|
342
332
|
user: string,
|
|
343
333
|
period: string,
|
|
344
|
-
limit: number
|
|
334
|
+
limit: number,
|
|
345
335
|
) => Promise<WeeklyArtistChartResponse>;
|
|
346
336
|
getWeeklyChartList: (
|
|
347
337
|
method: string,
|
|
348
338
|
user: string,
|
|
349
339
|
period: string,
|
|
350
|
-
limit: number
|
|
340
|
+
limit: number,
|
|
351
341
|
) => Promise<WeeklyChartListResponse>;
|
|
352
342
|
getWeeklyTrackChart: (
|
|
353
343
|
method: string,
|
|
354
344
|
user: string,
|
|
355
345
|
period: string,
|
|
356
|
-
limit: number
|
|
346
|
+
limit: number,
|
|
357
347
|
) => Promise<WeeklyTrackChartResponse>;
|
|
358
348
|
};
|
|
359
349
|
export interface config {
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lastfm-nodejs-client",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "A client for
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "A NodeJS wrapper client for LastFm API. Fetching public data by username using the LastFm public API",
|
|
5
5
|
"main": "./dist",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "rimraf dist && tsc",
|