We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7628790 commit 45cef27Copy full SHA for 45cef27
util/version-checker.js
@@ -2,9 +2,13 @@ import axios from 'axios';
2
import meow from 'meow';
3
4
const checkVersion = async () => {
5
- const res = await axios.default(
6
- 'https://api.github.com/repos/SwapnilSoni1999/spotify-dl/tags'
7
- );
+ try {
+ const res = await axios.default(
+ 'https://api.github.com/repos/SwapnilSoni1999/spotify-dl/tags'
8
+ );
9
+ } catch (_e) {
10
+ console.log("Could not check current version, have checked too many times skipping");
11
+ }
12
const latestVersion = res.data[0].name;
13
const pkg = meow('', { importMeta: import.meta }).pkg;
14
0 commit comments