grepmax 0.12.4 → 0.12.5
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.
|
@@ -295,7 +295,7 @@ class VectorDB {
|
|
|
295
295
|
});
|
|
296
296
|
}
|
|
297
297
|
optimize() {
|
|
298
|
-
return __awaiter(this, arguments, void 0, function* (retries =
|
|
298
|
+
return __awaiter(this, arguments, void 0, function* (retries = 5, retentionMs = 0) {
|
|
299
299
|
const table = yield this.ensureTable();
|
|
300
300
|
const cutoff = new Date(Date.now() - retentionMs);
|
|
301
301
|
for (let attempt = 1; attempt <= retries; attempt++) {
|
package/package.json
CHANGED