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.9.2 to 2.9.3

2

dist/lib/apis.js

@@ -276,3 +276,3 @@ "use strict";

async function getSpotifyPlayerContext() {
return musicPlayerCtr.getSpotifyPlayerContext();
return musicPlayerCtr.getSpotifyPlayerContext(true);
}

@@ -279,0 +279,0 @@ exports.getSpotifyPlayerContext = getSpotifyPlayerContext;

@@ -51,3 +51,3 @@ import { PlayerDevice, Track, PlayerContext, Artist, PlayerName, CodyResponse } from "./models";

updateRepeatMode(setToOn: boolean): Promise<CodyResponse>;
getSpotifyPlayerContext(): Promise<PlayerContext>;
getSpotifyPlayerContext(clearCache: boolean): Promise<PlayerContext>;
launchAndPlaySpotifyTrack(trackId?: string, playlistId?: string, playerName?: PlayerName): Promise<void>;

@@ -54,0 +54,0 @@ playSpotifyTrackFromPlaylist(trackId: string, spotifyUserId: string, playlistId?: string): Promise<void>;

@@ -530,3 +530,6 @@ "use strict";

}
async getSpotifyPlayerContext() {
async getSpotifyPlayerContext(clearCache) {
if (clearCache) {
cacheMgr.set("player-context", null);
}
let playerContext = cacheMgr.get("player-context");

@@ -533,0 +536,0 @@ if (playerContext) {

@@ -339,3 +339,3 @@ "use strict";

export async function getSpotifyPlayerContext(): Promise<PlayerContext> {
return musicPlayerCtr.getSpotifyPlayerContext();
return musicPlayerCtr.getSpotifyPlayerContext(true);
}

@@ -342,0 +342,0 @@

@@ -659,3 +659,6 @@ import { MusicUtil } from "./util";

async getSpotifyPlayerContext(): Promise<PlayerContext> {
async getSpotifyPlayerContext(clearCache: boolean): Promise<PlayerContext> {
if (clearCache) {
cacheMgr.set("player-context", null);
}
let playerContext: PlayerContext = cacheMgr.get("player-context");

@@ -662,0 +665,0 @@ if (playerContext) {

{
"name": "cody-music",
"version": "2.9.2",
"version": "2.9.3",
"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",

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