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.6.61 to 2.6.62

11

dist/lib/apis.d.ts

@@ -35,2 +35,8 @@ import { PlayerName, Track, PlayerDevice, SpotifyAudioFeature, PlaylistItem, CodyResponse, CodyConfig, PlayerContext, SpotifyAuthState } from "./models";

/**
* Returns false if cody music has been configured to to disable it
* or if it's the OS is not Mac,
* otherwise it's set to true by default
*/
export declare function isItunesDesktopEnabled(): any;
/**
* Get the Spotify accessToken provided via through the setConfig api

@@ -41,2 +47,7 @@ * @returns {string} the spotify access token string

/**
* Returns false if cody music has been configured to to disable it,
* otherwise it's set to true by default
*/
export declare function isSpotifyDesktopEnabled(): any;
/**
* Checks if the Spotify desktop or web player is running or not

@@ -43,0 +54,0 @@ * @returns {Promise<boolean>}

@@ -63,2 +63,11 @@ "use strict";

/**
* Returns false if cody music has been configured to to disable it
* or if it's the OS is not Mac,
* otherwise it's set to true by default
*/
function isItunesDesktopEnabled() {
return musicStore.itunesDesktopEnabled;
}
exports.isItunesDesktopEnabled = isItunesDesktopEnabled;
/**
* Get the Spotify accessToken provided via through the setConfig api

@@ -72,2 +81,10 @@ * @returns {string} the spotify access token string

/**
* Returns false if cody music has been configured to to disable it,
* otherwise it's set to true by default
*/
function isSpotifyDesktopEnabled() {
return musicStore.spotifyDesktopEnabled;
}
exports.isSpotifyDesktopEnabled = isSpotifyDesktopEnabled;
/**
* Checks if the Spotify desktop or web player is running or not

@@ -74,0 +91,0 @@ * @returns {Promise<boolean>}

5

dist/lib/playlist.js

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

if (fetchAll) {
let threshold = codyResp.data.limit * (codyResp.data.offset + 1);
let threshold = codyResp.data.limit + codyResp.data.offset;
let total = codyResp.data.total;

@@ -140,4 +140,3 @@ while (total > threshold) {

}
threshold =
codyResp.data.limit * (codyResp.data.offset + 1);
threshold = codyResp.data.limit + codyResp.data.offset;
total = codyResp.data.total;

@@ -144,0 +143,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const util_1 = require("./util");
const musicUtil = new util_1.MusicUtil();
class MusicStore {

@@ -132,2 +134,5 @@ constructor() {

get itunesDesktopEnabled() {
if (this._itunesDesktopEnabled && !musicUtil.isMac()) {
this._itunesDesktopEnabled = false;
}
return this._itunesDesktopEnabled;

@@ -134,0 +139,0 @@ }

1

dist/lib/util.d.ts
import { PlayerName, Track, CodyResponse } from "./models";
export declare class MusicUtil {
credentialByKey(key: string): any;
isLinux(): boolean;

@@ -5,0 +4,0 @@ isWindows(): boolean;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const store_1 = require("./store");
const models_1 = require("./models");
const cp = require("child_process");
const musicStore = store_1.MusicStore.getInstance();
class MusicUtil {
credentialByKey(key) {
return musicStore.credentialByKey(key);
}
isLinux() {

@@ -12,0 +7,0 @@ return this.isWindows() || this.isMac() ? false : true;

@@ -78,2 +78,11 @@ "use strict";

/**
* Returns false if cody music has been configured to to disable it
* or if it's the OS is not Mac,
* otherwise it's set to true by default
*/
export function isItunesDesktopEnabled() {
return musicStore.itunesDesktopEnabled;
}
/**
* Get the Spotify accessToken provided via through the setConfig api

@@ -87,2 +96,10 @@ * @returns {string} the spotify access token string

/**
* Returns false if cody music has been configured to to disable it,
* otherwise it's set to true by default
*/
export function isSpotifyDesktopEnabled() {
return musicStore.spotifyDesktopEnabled;
}
/**
* Checks if the Spotify desktop or web player is running or not

@@ -89,0 +106,0 @@ * @returns {Promise<boolean>}

import { CodyConfig } from "./models";
import { MusicUtil } from "./util";
const musicUtil = new MusicUtil();
export class MusicStore {

@@ -149,2 +152,5 @@ private _spotifyAccessToken: string = "";

get itunesDesktopEnabled(): any {
if (this._itunesDesktopEnabled && !musicUtil.isMac()) {
this._itunesDesktopEnabled = false;
}
return this._itunesDesktopEnabled;

@@ -151,0 +157,0 @@ }

@@ -1,2 +0,1 @@

import { MusicStore } from "./store";
import {

@@ -12,9 +11,3 @@ PlayerName,

const musicStore = MusicStore.getInstance();
export class MusicUtil {
credentialByKey(key: string): any {
return musicStore.credentialByKey(key);
}
isLinux() {

@@ -21,0 +14,0 @@ return this.isWindows() || this.isMac() ? false : true;

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

@@ -171,2 +171,9 @@ # cody-music

/**
* Returns false if cody music has been configured to to disable it
* or if it's the OS is not Mac,
* otherwise it's set to true by default
*/
isItunesDesktopEnabled()
/**
* Get the Spotify accessToken provided via through the setConfig api

@@ -178,2 +185,8 @@ * @returns {string} the spotify access token string

/**
* Returns false if cody music has been configured to to disable it,
* otherwise it's set to true by default
*/
isSpotifyDesktopEnabled()
/**
* Checks if the Spotify desktop or web player is running or not

@@ -180,0 +193,0 @@ * @returns {Promise<boolean>}

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