Comparing version 1.0.32 to 1.0.33
@@ -124,3 +124,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, _b, _c, index, snapshot, diff; | ||
var _a, _b, _c, index, i, snapshot, diff; | ||
return __generator(this, function (_d) { | ||
@@ -141,3 +141,9 @@ switch (_d.label) { | ||
_c.value = _d.sent(); | ||
index = this._recent_deltas.value.reverse().findIndex(function (o) { return !!o.snapshot; }); | ||
index = -1; | ||
for (i = this._recent_deltas.value.length - 1; i >= 0; i--) { | ||
if (this._recent_deltas.value[i].snapshot) { | ||
index = i; | ||
break; | ||
} | ||
} | ||
if (index >= 0) { | ||
@@ -144,0 +150,0 @@ index = this._recent_deltas.value.length - index - 1; |
{ | ||
"name": "ag-repo", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
94217
2013