Bumped Node to 26 LTS, replaced deprecated dependencies. Switched Nubiles from browser to request interface, seems to fare better with security wall.

This commit is contained in:
DebaucheryLibrarian
2026-11-08 00:38:01 +01:00
parent 98121e6162
commit 06ae62436a
13 changed files with 85 additions and 1657 deletions
+3 -3
View File
@@ -5,7 +5,7 @@ const Promise = require('bluebird');
const fsPromises = require('fs').promises;
const fs = require('fs');
const { PassThrough } = require('stream');
const blake2 = require('blake2');
const crypto = require('crypto');
const argv = require('yargs').argv;
const file = 'https://speed.hetzner.de/100MB.bin';
@@ -52,7 +52,7 @@ function setProgress(label, completedBytes, totalBytes, hash) {
}
async function buffered(label) {
const hash = new blake2.Hash('blake2b');
const hash = crypto.createHash('blake2b512');
const imageRes = await bhttp.get(file, {
onDownloadProgress(completedBytes, totalBytes) {
@@ -67,7 +67,7 @@ async function buffered(label) {
}
async function streamed(label) {
const hash = new blake2.Hash('blake2b');
const hash = crypto.createHash('blake2b512');
hash.setEncoding('hex');
const hashStream = new PassThrough();