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

@solely/simple-fm

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solely/simple-fm - npm Package Compare versions

Comparing version 0.4.1 to 0.4.5

dist/lib/album.d.ts

18

dist/index.d.ts

@@ -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",

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