From 91c71634021163ac58319be750c3eb3085673cce Mon Sep 17 00:00:00 2001 From: RemixDev Date: Tue, 27 Jul 2021 21:24:57 +0200 Subject: [PATCH] Updated deemix lib to 3.3.4 --- .gitignore | 3 +++ server/package.json | 4 ++-- server/src/main.ts | 4 ++-- server/yarn.lock | 26 +++++++++----------------- 4 files changed, 16 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 279825c..bfcfd9e 100644 --- a/.gitignore +++ b/.gitignore @@ -64,6 +64,9 @@ typings/ .vscode .idea +# development +*.map + # distribution dist/* server-dist/* diff --git a/server/package.json b/server/package.json index 0e7c6cb..4edd5cb 100644 --- a/server/package.json +++ b/server/package.json @@ -29,8 +29,8 @@ "bufferutil": "4.0.3", "cookie-parser": "1.4.5", "debug": "2.6.9", - "deemix": "3.3.3", - "deezer-js": "^1.0.4", + "deemix": "3.3.4", + "deezer-js": "^1.0.5", "dotenv": "8.2.0", "express": "4.17.1", "express-session": "^1.17.1", diff --git a/server/src/main.ts b/server/src/main.ts index e3f9498..23f7ff3 100644 --- a/server/src/main.ts +++ b/server/src/main.ts @@ -49,8 +49,8 @@ plugins.spotify.setup() export const listener = { send(key: string, data?: any) { - if (data) console.log(key, data) - else console.log(key) + const logLine = deemix.utils.formatListener(key, data) + if (logLine) console.log(logLine) if (['downloadInfo', 'downloadWarn'].includes(key)) return wss.clients.forEach(client => { if (client.readyState === WebSocket.OPEN) { diff --git a/server/yarn.lock b/server/yarn.lock index ae53ce7..4847cec 100644 --- a/server/yarn.lock +++ b/server/yarn.lock @@ -2148,14 +2148,14 @@ decompress-response@^6.0.0: dependencies: mimic-response "^3.1.0" -deemix@3.3.3: - version "3.3.3" - resolved "https://registry.yarnpkg.com/deemix/-/deemix-3.3.3.tgz#a82117a2cb7556c51fc84252a88ee7158d0faa5f" - integrity sha512-moi45Ds9/g7rv5mBw7PK9CSnt6LtlbMlTXJT8ZlZWa6VZ8sI9ruvgyGGRy4UvwgvnZrebwGkhOyA5h8K7mQvYw== +deemix@3.3.4: + version "3.3.4" + resolved "https://registry.yarnpkg.com/deemix/-/deemix-3.3.4.tgz#1f6c6a5cba97c7bd0e58412d852e830e187603e9" + integrity sha512-gWjKaN3TKnOe8MvNTSKw1EwSJkXPmCdRvUymZ2R4sYqzyBngnmazCZrFDXGq4xDjA29MnTTHuNE1B5mVBcNxtA== dependencies: async "^3.2.0" crypto "^1.0.1" - deezer-js "^1.0.3" + deezer-js "^1.0.5" got "^11.8.2" metaflac-js2 "^1.0.7" spotify-web-api-node "^5.0.2" @@ -2175,18 +2175,10 @@ deepmerge@^4.0.0, deepmerge@^4.2.2: resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.2.2.tgz#44d2ea3679b8f4d4ffba33f03d865fc1e7bf4955" integrity sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg== -deezer-js@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/deezer-js/-/deezer-js-1.0.3.tgz#e9345aeb658606e8a33ec33835806b7e977c3eb3" - integrity sha512-J/bHsxUGC3BS0wuQyf4rYsjKRUsxDR6SvnrJzgtNVdZeLzcGeCPn32nPkAZhegJGp8bNaDgzgkDSySCxJNFGpA== - dependencies: - got "^11.8.2" - tough-cookie "^4.0.0" - -deezer-js@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/deezer-js/-/deezer-js-1.0.4.tgz#3ad7b2f0f6b381391c8deefc0954a931c1a8a714" - integrity sha512-TQnjEayJkDnEqhAzkRDvk5AWJ/WDUXmM8RPednEcq9o+PWVovOz7GNGZ/dZThFJzX/lt/fSm1vXkjYogHKDYZw== +deezer-js@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/deezer-js/-/deezer-js-1.0.5.tgz#566ad6d924122dfa9d3f7595a805964978defa0d" + integrity sha512-UJwQkaUZONr6/nvutCk3bxmUYBtLb0lEcScHgR82FsfFjLTqMJJT/3uuqX/NF5qRfop2HWPyAzJWDUKDVu6pJw== dependencies: got "^11.8.2" tough-cookie "^4.0.0"