@solely/simple-fm
Advanced tools
Comparing version 0.4.1 to 0.4.5
@@ -1,17 +0,1 @@ | ||
import Album from './album.js'; | ||
import Artist from './artist.js'; | ||
import Country from './country.js'; | ||
import Tag from './tag.js'; | ||
import Track from './track.js'; | ||
import User from './user.js'; | ||
export * from './types.js'; | ||
export default class LastFMClient { | ||
private readonly token; | ||
readonly album: Album; | ||
readonly artist: Artist; | ||
readonly country: Country; | ||
readonly tag: Tag; | ||
readonly track: Track; | ||
readonly user: User; | ||
constructor(token: string); | ||
} | ||
export {}; |
@@ -1,27 +0,5 @@ | ||
import Album from './album.js'; | ||
import Artist from './artist.js'; | ||
import Country from './country.js'; | ||
import Tag from './tag.js'; | ||
import Track from './track.js'; | ||
import User from './user.js'; | ||
export * from './types.js'; | ||
export default class LastFMClient { | ||
token; | ||
album; | ||
artist; | ||
country; | ||
tag; | ||
track; | ||
user; | ||
constructor(token) { | ||
this.token = token; | ||
if (!token) | ||
throw new Error('You have not specified a Last.fm API key.'); | ||
this.album = new Album(token); | ||
this.artist = new Artist(token); | ||
this.country = new Country(token); | ||
this.tag = new Tag(token); | ||
this.track = new Track(token); | ||
this.user = new User(token); | ||
} | ||
} | ||
// eslint-disable-next-line import/no-useless-path-segments | ||
import fm from './lib/index.js'; | ||
const client = new fm('6cdcde2dc32d6d7f1fef576261e447e2'); | ||
const data = await client.chart.fetchTopTags(); | ||
console.log(data); |
{ | ||
"name": "@solely/simple-fm", | ||
"version": "0.4.1", | ||
"version": "0.4.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "license": "Zlib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
30892
25
986
0
1