wayfind 2.0.55 → 2.0.56
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.
package/bin/distill.js
CHANGED
|
@@ -212,10 +212,10 @@ async function distillEntries(options = {}) {
|
|
|
212
212
|
|
|
213
213
|
// Calculate date range for this tier
|
|
214
214
|
const now = new Date();
|
|
215
|
-
const sinceDate =
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
untilDate
|
|
215
|
+
const sinceDate = tierDef.maxAgeDays === Infinity
|
|
216
|
+
? new Date(0)
|
|
217
|
+
: new Date(now.getTime() - tierDef.maxAgeDays * 86400000);
|
|
218
|
+
const untilDate = new Date(now.getTime() - tierDef.minAgeDays * 86400000);
|
|
219
219
|
|
|
220
220
|
const since = sinceDate.toISOString().split('T')[0];
|
|
221
221
|
const until = untilDate.toISOString().split('T')[0];
|
package/package.json
CHANGED