mirror of
https://github.com/netbirdio/netbird.git
synced 2026-09-24 07:39:07 +02:00
[proxy] Flatten the license script's sort comparator
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user