Socket
Socket
Sign inDemoInstall

ksoft.js

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ksoft.js - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4

3

lib/structures/Track.js
class Track {
constructor(name, id, artist, albums, lyrics) {
constructor(name, id, artist, albums, lyrics, url) {
this.name = name;

@@ -16,2 +16,3 @@ this.id = parseInt(id) > 0 ? id : null;

this.lyrics = lyrics;
this.url = url;
}

@@ -18,0 +19,0 @@ }

{
"name": "ksoft.js",
"description": "Official Node.js Wrapper for the KSoft.Si API.",
"version": "3.1.3",
"version": "3.1.4",
"main": "src/index.js",

@@ -6,0 +6,0 @@ "types": "typings/index.d.ts",

@@ -9,3 +9,3 @@ const Endpoint = require('../../../lib/Endpoint');

const text_only = options.textOnly || false;
return this.client.api.lyrics.search({ q: query, text_only, limit: 1, offline: 'no' });
return this.client.api.lyrics.search({ q: query, text_only, limit: 1 });
}

@@ -19,3 +19,3 @@

this.createAlbums(track.album, track.album_ids, track.album_year),
this.normalizeLyrics(track.lyrics));
this.normalizeLyrics(track.lyrics), track.url);
}

@@ -22,0 +22,0 @@

@@ -10,3 +10,3 @@ const Endpoint = require('../../../lib/Endpoint');

const text_only = options.textOnly || false;
return this.client.api.lyrics.search({ q: query, limit, text_only, offline: 'yes' });
return this.client.api.lyrics.search({ q: query, limit, text_only });
}

@@ -19,3 +19,3 @@

this.createAlbums(track.album, track.album_ids, track.album_year),
this.normalizeLyrics(track.lyrics)));
this.normalizeLyrics(track.lyrics), track.url));
}

@@ -22,0 +22,0 @@

@@ -12,4 +12,4 @@ const Endpoint = require('../../../lib/Endpoint');

if (data.error) throw new Error(data.message);
return new Track(data.name, data.id, data.artist, data.albums, data.lyrics);
return new Track(data.name, data.id, data.artist, data.albums, data.lyrics, data.url);
}
}
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