lastfm-nodejs-client 1.1.4 → 1.1.5

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.1.5
4
+
5
+ - Fix incorrect type on request method
6
+
3
7
  ## 1.1.4
4
8
 
5
9
  - Fix incorrect type on request method
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { AuthResponse, LovedTracksResponse, RecentTracksResponse, TopAlbumsResponse, TopArtistsResponse, TopTrackResponse, UserResponse, WeeklyAlbumChartResponse, WeeklyArtistChartResponse, WeeklyChartListResponse, WeeklyTrackChartResponse } from '../@types';
2
2
  declare function LastFmApi(): {
3
- auth: (method: string, user: string, period: string, limit: number) => Promise<AuthResponse>;
3
+ auth: (method: string, user: string, period: string, limit: string) => Promise<AuthResponse>;
4
4
  config: {
5
5
  api_key: string;
6
6
  app_name: string;
@@ -12,16 +12,16 @@ declare function LastFmApi(): {
12
12
  share_secret: string;
13
13
  username: string;
14
14
  };
15
- getInfo: (method: string, user: string, period: string, limit: number) => Promise<UserResponse>;
16
- getLovedTracks: (method: string, user: string, period: string, limit: number) => Promise<LovedTracksResponse>;
17
- getRecentTracks: (method: string, user: string, period: string, limit: number) => Promise<RecentTracksResponse>;
18
- getTopAlbums: (method: string, user: string, period: string, limit: number) => Promise<TopAlbumsResponse>;
19
- getTopArtists: (method: string, user: string, period: string, limit: number) => Promise<TopArtistsResponse>;
20
- getTopTracks: (method: string, user: string, period: string, limit: number) => Promise<TopTrackResponse>;
21
- getWeeklyAlbumChart: (method: string, user: string, period: string, limit: number) => Promise<WeeklyAlbumChartResponse>;
22
- getWeeklyArtistChart: (method: string, user: string, period: string, limit: number) => Promise<WeeklyArtistChartResponse>;
23
- getWeeklyChartList: (method: string, user: string, period: string, limit: number) => Promise<WeeklyChartListResponse>;
24
- getWeeklyTrackChart: (method: string, user: string, period: string, limit: number) => Promise<WeeklyTrackChartResponse>;
15
+ getInfo: (method: string, user: string, period: string, limit: string) => Promise<UserResponse>;
16
+ getLovedTracks: (method: string, user: string, period: string, limit: string) => Promise<LovedTracksResponse>;
17
+ getRecentTracks: (method: string, user: string, period: string, limit: string) => Promise<RecentTracksResponse>;
18
+ getTopAlbums: (method: string, user: string, period: string, limit: string) => Promise<TopAlbumsResponse>;
19
+ getTopArtists: (method: string, user: string, period: string, limit: string) => Promise<TopArtistsResponse>;
20
+ getTopTracks: (method: string, user: string, period: string, limit: string) => Promise<TopTrackResponse>;
21
+ getWeeklyAlbumChart: (method: string, user: string, period: string, limit: string) => Promise<WeeklyAlbumChartResponse>;
22
+ getWeeklyArtistChart: (method: string, user: string, period: string, limit: string) => Promise<WeeklyArtistChartResponse>;
23
+ getWeeklyChartList: (method: string, user: string, period: string, limit: string) => Promise<WeeklyChartListResponse>;
24
+ getWeeklyTrackChart: (method: string, user: string, period: string, limit: string) => Promise<WeeklyTrackChartResponse>;
25
25
  method: {
26
26
  auth: string;
27
27
  user: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lastfm-nodejs-client",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
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
  "keywords": [