From 7902fedb9c9b5ec1bde1f625c67b387a5a4a846a Mon Sep 17 00:00:00 2001 From: jnfrati Date: Wed, 23 Sep 2026 16:11:58 +0200 Subject: [PATCH] [proxy] Flatten the license script's sort comparator --- proxy/web/scripts/third-party-licenses.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/web/scripts/third-party-licenses.mjs b/proxy/web/scripts/third-party-licenses.mjs index bfdfef761..2ebff5f59 100644 --- a/proxy/web/scripts/third-party-licenses.mjs +++ b/proxy/web/scripts/third-party-licenses.mjs @@ -29,7 +29,7 @@ function fail(message) { function shippedPackages(lock) { return Object.entries(lock.packages) .filter(([path, meta]) => path !== "" && (!meta.dev || bundledTooling.has(path))) - .sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0)); + .sort(([a], [b]) => Number(a > b) - Number(a < b)); } function packageSection(path, meta) {