cody-music
Advanced tools
Comparing version 2.3.9 to 2.4.0
@@ -28,9 +28,23 @@ import { CodyConfig } from "./models"; | ||
setConfig(config: CodyConfig) { | ||
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; | ||
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; | ||
} | ||
} | ||
@@ -37,0 +51,0 @@ |
{ | ||
"name": "cody-music", | ||
"version": "2.3.9", | ||
"version": "2.4.0", | ||
"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", |
@@ -6,5 +6,6 @@ # cody-music | ||
- Interally setting "itunesAccessGranted" | ||
to true if the user has granted access to iTunes | ||
This is accessible via the api: | ||
to true if the user has granted access to iTunes. | ||
- This is accessible via the api: | ||
- isItunesAccessGranted() | ||
@@ -16,2 +17,8 @@ | ||
- Set or update Spotify access or other settings using the CodyConfig with the following api: | ||
- setConfig(codyConfig) | ||
- You can send all or partial settings updates | ||
## Player control support | ||
@@ -18,0 +25,0 @@ |
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
344175
8327
491