Added concurrency control for downloads using p-limit (max 6 simultaneous). Removed cli-progress and progress bars from downloads, as it shits the bed with concurrency. Simplified axios requests in downloadJar (removed custom headers as it was used only for cli-progress). Refactored Jenkins handling to use API JSON instead of HTML scraping. (as i had weird failing with a few jenkins servers, and this seemed to fix it completely) Removed cli-progress dependency; added p-limit dependency.
19 lines
344 B
JSON
19 lines
344 B
JSON
{
|
|
"name": "download-plugs",
|
|
"version": "1.1.1",
|
|
"main": "index.js",
|
|
"scripts": {
|
|
"run": "node index.js"
|
|
},
|
|
"keywords": [],
|
|
"author": "Sophia Atkinson",
|
|
"license": "MIT",
|
|
"description": "",
|
|
"dependencies": {
|
|
"axios": "^1.9.0",
|
|
"cheerio": "^1.0.0",
|
|
"p-limit": "^7.2.0",
|
|
"ssh2-sftp-client": "^12.0.0"
|
|
}
|
|
}
|