cody-music
Advanced tools
Comparing version 2.6.62 to 2.6.63
@@ -27,23 +27,9 @@ "use strict"; | ||
setConfig(config) { | ||
if (config.spotifyAccessToken) { | ||
this.spotifyAccessToken = config.spotifyAccessToken; | ||
} | ||
if (config.spotifyClientId) { | ||
this.spotifyClientId = config.spotifyClientId; | ||
} | ||
if (config.spotifyClientSecret) { | ||
this.spotifyClientSecret = config.spotifyClientSecret; | ||
} | ||
if (config.spotifyRefreshToken) { | ||
this.spotifyRefreshToken = config.spotifyRefreshToken; | ||
} | ||
if (config.enableItunesDesktop) { | ||
this.itunesDesktopEnabled = config.enableItunesDesktop; | ||
} | ||
if (config.enableSpotifyDesktop) { | ||
this.spotifyDesktopEnabled = config.enableSpotifyDesktop; | ||
} | ||
if (config.enableSpotifyApi) { | ||
this.spotifyApiEnabled = config.enableSpotifyApi; | ||
} | ||
this.spotifyAccessToken = config.spotifyAccessToken; | ||
this.spotifyClientId = config.spotifyClientId; | ||
this.spotifyClientSecret = config.spotifyClientSecret; | ||
this.spotifyRefreshToken = config.spotifyRefreshToken; | ||
this.itunesDesktopEnabled = config.enableItunesDesktop; | ||
this.spotifyDesktopEnabled = config.enableSpotifyDesktop; | ||
this.spotifyApiEnabled = config.enableSpotifyApi; | ||
} | ||
@@ -50,0 +36,0 @@ setCredentials(creds) { |
@@ -31,23 +31,9 @@ import { CodyConfig } from "./models"; | ||
setConfig(config: CodyConfig) { | ||
if (config.spotifyAccessToken) { | ||
this.spotifyAccessToken = config.spotifyAccessToken; | ||
} | ||
if (config.spotifyClientId) { | ||
this.spotifyClientId = config.spotifyClientId; | ||
} | ||
if (config.spotifyClientSecret) { | ||
this.spotifyClientSecret = config.spotifyClientSecret; | ||
} | ||
if (config.spotifyRefreshToken) { | ||
this.spotifyRefreshToken = config.spotifyRefreshToken; | ||
} | ||
if (config.enableItunesDesktop) { | ||
this.itunesDesktopEnabled = config.enableItunesDesktop; | ||
} | ||
if (config.enableSpotifyDesktop) { | ||
this.spotifyDesktopEnabled = config.enableSpotifyDesktop; | ||
} | ||
if (config.enableSpotifyApi) { | ||
this.spotifyApiEnabled = config.enableSpotifyApi; | ||
} | ||
this.spotifyAccessToken = config.spotifyAccessToken; | ||
this.spotifyClientId = config.spotifyClientId; | ||
this.spotifyClientSecret = config.spotifyClientSecret; | ||
this.spotifyRefreshToken = config.spotifyRefreshToken; | ||
this.itunesDesktopEnabled = config.enableItunesDesktop; | ||
this.spotifyDesktopEnabled = config.enableSpotifyDesktop; | ||
this.spotifyApiEnabled = config.enableSpotifyApi; | ||
} | ||
@@ -54,0 +40,0 @@ |
{ | ||
"name": "cody-music", | ||
"version": "2.6.62", | ||
"version": "2.6.63", | ||
"description": "mac osx spotify and itunes music player controller, spotify audio features, itunes and spotify genre, and playlist control", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
502673
12282