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.27 to 2.9.28

15

dist/lib/playlist.js

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

let tracks = [];
const totalTracksToFetch = !qsOptions.limit || qsOptions.limit === -1 ? -1 : qsOptions.limit;
if (!qsOptions.limit) {

@@ -87,3 +88,5 @@ qsOptions["limit"] = 50;

// ensure the playerType is set
trackContainers.forEach((item) => {
let fetchedLimit = false;
for (let x = 0; x < trackContainers.length; x++) {
const item = trackContainers[x];
if (item.track) {

@@ -93,3 +96,11 @@ const track = this.buildTrack(item.track);

}
});
if (totalTracksToFetch > 0 &&
tracks.length >= totalTracksToFetch) {
fetchedLimit = true;
break;
}
}
if (fetchedLimit) {
break;
}
if (codyResp.data.next) {

@@ -96,0 +107,0 @@ // fetch the next set (remove the root)

@@ -87,2 +87,5 @@ import { MusicClient, SPOTIFY_ROOT_API } from "./client";

const totalTracksToFetch =
!qsOptions.limit || qsOptions.limit === -1 ? -1 : qsOptions.limit;
if (!qsOptions.limit) {

@@ -93,2 +96,3 @@ qsOptions["limit"] = 50;

}
if (!qsOptions.offset) {

@@ -120,3 +124,5 @@ qsOptions["offset"] = 0;

// ensure the playerType is set
trackContainers.forEach((item: any) => {
let fetchedLimit = false;
for (let x = 0; x < trackContainers.length; x++) {
const item = trackContainers[x];
if (item.track) {

@@ -126,4 +132,15 @@ const track: Track = this.buildTrack(item.track);

}
});
if (
totalTracksToFetch > 0 &&
tracks.length >= totalTracksToFetch
) {
fetchedLimit = true;
break;
}
}
if (fetchedLimit) {
break;
}
if (codyResp.data.next) {

@@ -130,0 +147,0 @@ // fetch the next set (remove the root)

2

package.json
{
"name": "cody-music",
"version": "2.9.27",
"version": "2.9.28",
"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