ag-timemachine
Advanced tools
Comparing version 1.0.55 to 1.0.56
{ | ||
"name": "ag-timemachine", | ||
"version": "1.0.55", | ||
"version": "1.0.56", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -54,2 +54,3 @@ "use strict"; | ||
var AgPoll_1 = require("ag-utilities/AgPoll"); | ||
var AgLodashWrap_1 = require("ag-utilities/AgLodashWrap"); | ||
var minBufferSpan = 60; | ||
@@ -131,3 +132,3 @@ var snapshotSpan = 60; | ||
var _a; | ||
var record = { time: new Date(), delta: delta }; | ||
var record = { time: new Date(), delta: (0, AgLodashWrap_1.cloneDeep)(delta) }; | ||
var time = _this.updateDeltas(record); | ||
@@ -137,3 +138,3 @@ _this.updateLifeTime(time); | ||
if (!_this.lastSnapshotTime || (new Date().getTime() - _this.lastSnapshotTime.getTime()) > snapshotSpan * 1000) { | ||
record.snapshot = { value: (_a = _this.diff) === null || _a === void 0 ? void 0 : _a.value }; | ||
record.snapshot = { value: (0, AgLodashWrap_1.cloneDeep)((_a = _this.diff) === null || _a === void 0 ? void 0 : _a.value) }; | ||
_this.lastSnapshotTime = new Date(); | ||
@@ -140,0 +141,0 @@ } |
66348
1459