Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cody-music

Package Overview
Dependencies
Maintainers
1
Versions
234
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cody-music - npm Package Compare versions

Comparing version 2.3.9 to 2.4.0

28

lib/store.ts

@@ -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 @@

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