Bumped to Node 24 and upgraded dependencies.

This commit is contained in:
2026-08-09 02:03:54 +02:00
parent 2e4ba27d98
commit 5c7a0397c9
25 changed files with 5340 additions and 8905 deletions

View File

@@ -1,6 +1,5 @@
'use strict';
const fetch = require('node-fetch');
const mime = require('mime');
// const unprint = require('unprint');
@@ -28,6 +27,11 @@ async function fetchPredata() {
}
function scrapeGallery(data, { predata }) {
if (!data.gifs.length) {
// Math.min() of an empty array is Infinity, which becomes an invalid date below
return null;
}
const oldestDate = Math.min(...data.gifs.map((gif) => gif.createDate));
const curated = {