Comparing version 3.1.3 to 3.1.4
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); | ||
} | ||
} |
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
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
29151
845