From 45cef2721f859036ae07a5c9a4a2d35162b6bdd4 Mon Sep 17 00:00:00 2001 From: Jack <5182053+phyzical@users.noreply.github.com> Date: Fri, 2 Aug 2024 10:04:13 +0800 Subject: [PATCH 1/3] Update version-checker.js --- util/version-checker.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/util/version-checker.js b/util/version-checker.js index 5a52a4c..b73d39e 100644 --- a/util/version-checker.js +++ b/util/version-checker.js @@ -2,9 +2,13 @@ import axios from 'axios'; import meow from 'meow'; const checkVersion = async () => { - const res = await axios.default( - 'https://api.github.com/repos/SwapnilSoni1999/spotify-dl/tags' - ); + try { + const res = await axios.default( + 'https://api.github.com/repos/SwapnilSoni1999/spotify-dl/tags' + ); + } catch (_e) { + console.log("Could not check current version, have checked too many times skipping"); + } const latestVersion = res.data[0].name; const pkg = meow('', { importMeta: import.meta }).pkg; From d57de3fb6a210459c02d820feeab1858de07f1bd Mon Sep 17 00:00:00 2001 From: Jack <5182053+phyzical@users.noreply.github.com> Date: Fri, 2 Aug 2024 10:05:17 +0800 Subject: [PATCH 2/3] Update version-checker.js --- util/version-checker.js | 1 + 1 file changed, 1 insertion(+) diff --git a/util/version-checker.js b/util/version-checker.js index b73d39e..cc901ed 100644 --- a/util/version-checker.js +++ b/util/version-checker.js @@ -8,6 +8,7 @@ const checkVersion = async () => { ); } catch (_e) { console.log("Could not check current version, have checked too many times skipping"); + return; } const latestVersion = res.data[0].name; const pkg = meow('', { importMeta: import.meta }).pkg; From 9bd54c070d19298ced4d7e130009ff538c5c5bb4 Mon Sep 17 00:00:00 2001 From: Jack <5182053+phyzical@users.noreply.github.com> Date: Fri, 2 Aug 2024 10:06:14 +0800 Subject: [PATCH 3/3] Update package.json Bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f6927a8..ebba79d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@swapnilsoni1999/spotify-dl", "productName": "Spotify Downloader", - "version": "1.2.0", + "version": "1.2.1", "description": "Spotify Songs, Playlist & Album Downloader", "main": "app.js", "bin": {