diff --git a/.gitignore b/.gitignore index c89f8f8..f92d14d 100644 --- a/.gitignore +++ b/.gitignore @@ -112,3 +112,4 @@ test.js ODD Scans/ out.txt +debug.js diff --git a/README.md b/README.md index 8daba7f..6a985bc 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,8 @@ indexer.scanUrl(url) | Wrapper Version | Supported ODD Versions (up to) | Included Version | | --- | --- | --- | -| **8.0.0** | **v2.3.1.4+** | **v2.3.1.4** | +| **8.0.2** | **v2.4.4.1+** | **v2.4.4.1** | +| 8.0.0 | v2.4.4.1+ | v2.3.1.4 | | 7.0.0 | 2.2.0.1-2.2.0.2 | 2.2.0.2 | | 6.2.0 | 2.1.0.8 | 2.1.0.8 | | 6.1.2 | 2.1.0.0 | 2.1.0.0 | diff --git a/config.js b/config.js index 93662f4..8343a9c 100644 --- a/config.js +++ b/config.js @@ -2,8 +2,8 @@ module.exports = {} module.exports.GitHubReleasesUrl = `https://api.github.com/repos/KoalaBear84/OpenDirectoryDownloader/releases` module.exports.OpenDirectoryDownloaderVersion = { - version: `v2.3.1.4`, - releaseId: `73286674` + version: `v2.4.4.1`, + releaseId: `74008221` } module.exports.OpenDirectoryDownloaderFolder = `${__dirname}/ODD` module.exports.OpenDirectoryDownloaderOutputFolderName = `Scans` diff --git a/install.js b/install.js index 3cbd112..eeff32c 100644 --- a/install.js +++ b/install.js @@ -9,7 +9,12 @@ const architecture = process.arch console.info(`Fetching release assets from GitHub...`) fetch(`${CONFIG.GitHubReleasesUrl}/${CONFIG.OpenDirectoryDownloaderVersion.releaseId}/assets`).then(res => res.json()).then(assets => { - + + if (assets?.message?.includes(`API rate limit exceeded`)) { + console.error(`GitHub API rate limit exceeded, cannot fetch OpenDirectoryDownloader executable!`) + process.exit(1) + } + const version = CONFIG.OpenDirectoryDownloaderVersion.version.match(/^v?(\d+\.\d+\.\d+\.\d+)$/)[1] let releaseName diff --git a/package-lock.json b/package-lock.json index 3d4502d..3a4440f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "open-directory-downloader", - "version": "8.0.1", + "version": "8.0.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index afb8e06..bc356ff 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-directory-downloader", - "version": "8.0.1", + "version": "8.0.2", "description": "A NodeJS wrapper around KoalaBear84/OpenDirectoryDownloader", "main": "open-directory-downloader.js", "scripts": {