New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2.6 to 2.2.7

22

dist/lib/apis.js

@@ -166,4 +166,9 @@ "use strict";

try {
let jsonList = result.split("[TRACK_END]");
// console.log("tracks by playlist json list: ", jsonList);
let jsonList;
if (result.indexOf("[TRACK_END],") !== -1) {
jsonList = result.split("[TRACK_END],");
}
else {
jsonList = result.split("[TRACK_END]");
}
if (jsonList && jsonList.length > 0) {

@@ -431,12 +436,13 @@ for (let i = 0; i < jsonList.length; i++) {

try {
result = result.split("[TRACK_END]");
// console.log("playlists json list: ", result);
if (result.indexOf("[TRACK_END],") !== -1) {
result = result.split("[TRACK_END],");
}
else {
result = result.split("[TRACK_END]");
}
if (result && result.length > 0) {
playlists = result.map((resultItem) => {
// if (!resultItem.includes("}")) {
// resultItem = `${resultItem}}`;
// }
try {
// {name, count}
let item = JSON.parse(resultItem);
let item = JSON.parse(resultItem.trim());
let playlistItem = new models_1.PlaylistItem();

@@ -443,0 +449,0 @@ playlistItem.public = true;

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

CodyMusic.getPlaylists(models_1.PlayerName.ItunesDesktop).then((result) => {
console.log("playlist 0: ", result[0]);
expect(result.length).to.not.equal(0);

@@ -81,3 +80,2 @@ const playlistItem = result[0];

let pageItem = result.data;
console.log("pageItem.items[0]: ", pageItem.items[0]);
expect(pageItem.items.length).to.not.equal(0);

@@ -84,0 +82,0 @@ done();

@@ -191,3 +191,8 @@ "use strict";

try {
let jsonList = result.split("[TRACK_END]");
let jsonList;
if (result.indexOf("[TRACK_END],") !== -1) {
jsonList = result.split("[TRACK_END],");
} else {
jsonList = result.split("[TRACK_END]");
}
if (jsonList && jsonList.length > 0) {

@@ -455,3 +460,7 @@ for (let i = 0; i < jsonList.length; i++) {

try {
result = result.split("[TRACK_END]");
if (result.indexOf("[TRACK_END],") !== -1) {
result = result.split("[TRACK_END],");
} else {
result = result.split("[TRACK_END]");
}
if (result && result.length > 0) {

@@ -461,3 +470,3 @@ playlists = result.map((resultItem: string) => {

// {name, count}
let item = JSON.parse(resultItem);
let item = JSON.parse(resultItem.trim());
let playlistItem: PlaylistItem = new PlaylistItem();

@@ -464,0 +473,0 @@ playlistItem.public = true;

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