Comparing version 0.2.11 to 0.2.12
{ | ||
"name": "discotify", | ||
"version": "0.2.11", | ||
"version": "0.2.12", | ||
"description": "Discord Rich Presence for spotify in TypeScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://kurozero.xyz", |
@@ -1,2 +0,2 @@ | ||
# discotify `0.2.11` | ||
# discotify `0.2.12` | ||
Spotify Rich Presence for Discord in TypeScript<br/> | ||
@@ -6,3 +6,3 @@ *shows your currently playing song as a fancy rich presence in Discord* | ||
Install globally with:<br/> | ||
`npm install -g discotify@0.2.11` | ||
`npm install -g discotify@0.2.12` | ||
@@ -9,0 +9,0 @@ ## Requirements |
@@ -17,3 +17,3 @@ const { format } = require('util'); | ||
function getJson(url, params?, headers?, cb?) { | ||
function getJson(url, params, headers, cb) { | ||
if (params instanceof Function) { | ||
@@ -63,3 +63,3 @@ cb = params; | ||
function getOauthToken(cb) { | ||
return getJson('http://open.spotify.com/token', function (err, res) { | ||
return getJson('http://open.spotify.com/token', null, null, function (err, res) { | ||
if (err) { | ||
@@ -239,3 +239,3 @@ return cb(err); | ||
function spotifyJsonRequest(self, spotifyRelativeUrl, additionalParams?, cb?) { | ||
function spotifyJsonRequest(self, spotifyRelativeUrl, additionalParams, cb) { | ||
cb = cb || function () { }; | ||
@@ -242,0 +242,0 @@ additionalParams = additionalParams || {}; |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
49663
0