@ynhcj/xiaoyi-channel 0.0.198-beta → 0.0.199-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -264,9 +264,10 @@ function handleMemoryHistory() {
|
|
|
264
264
|
bucket.push({ fileName, detail, time: timePart });
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
// Build ans array sorted by date
|
|
267
|
+
// Build ans array sorted by date descending, each entry is { <date>: [...] }.
|
|
268
268
|
const ans = Array.from(byDate.keys())
|
|
269
269
|
.sort()
|
|
270
|
+
.reverse()
|
|
270
271
|
.map((dateStr) => ({ [dateStr]: byDate.get(dateStr).reverse() }));
|
|
271
272
|
// Prune memory.log: keep only the last 30 days.
|
|
272
273
|
try {
|