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": { diff --git a/util/version-checker.js b/util/version-checker.js index 5a52a4c..cc901ed 100644 --- a/util/version-checker.js +++ b/util/version-checker.js @@ -2,9 +2,14 @@ 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"); + return; + } const latestVersion = res.data[0].name; const pkg = meow('', { importMeta: import.meta }).pkg;