1
0
mirror of https://github.com/nodejs/docker-node.git synced 2025-04-18 17:04:01 +03:00

Fix the gap between the start of a maintenance period for an LTS and the new LTS start

This commit is contained in:
Laurent Goderre 2023-10-19 15:55:06 -04:00
parent ba45415915
commit a090a371cd

View File

@ -38,7 +38,7 @@ for (version of versions) {
let maintenance = new Date(`${config[version].maintenance}T00:00:00.00`).getTime();
let isCurrent = foundCurrent ? false : isNaN(lts) || lts >= now;
foundCurrent = isCurrent || foundCurrent;
let isLTS = foundLTS ? false : (maintenance >= now) && (now >= lts);
let isLTS = foundLTS ? false : (now >= lts);
foundLTS = isLTS || foundLTS;
let codename = config[version].codename
let defaultAlpine = config[version]['alpine-default']