ag-timemachine
Advanced tools
Comparing version 1.0.67 to 1.0.68
20
index.js
@@ -45,4 +45,2 @@ "use strict"; | ||
var AgHelper_1 = require("ag-utilities/AgHelper"); | ||
var AgLodashWrap_1 = require("ag-utilities/AgLodashWrap"); | ||
var AgDiff_1 = require("ag-utilities/AgDiff"); | ||
var objects = {}; | ||
@@ -73,18 +71,3 @@ var AgTimeMachine = /** @class */ (function () { | ||
rtRecentDatas: function (id) { | ||
var ret = AgHelper_1.AgHelper.toMap(_this.getObject(id).recentDatas.value, function (v) { return v.time.getTime() + ''; }); | ||
for (var _i = 0, _a = Object.keys(ret); _i < _a.length; _i++) { | ||
var key = _a[_i]; | ||
if (temp === null || temp === void 0 ? void 0 : temp[key]) { | ||
console.log(); | ||
console.log(); | ||
console.log(); | ||
console.log(key); | ||
console.log(JSON.stringify(temp[key], null, 2)); | ||
console.log(JSON.stringify(ret[key], null, 2)); | ||
console.log(JSON.stringify(AgDiff_1.AgDiff.diff(temp[key], ret[key]), null, 2)); | ||
break; | ||
} | ||
} | ||
temp = (0, AgLodashWrap_1.cloneDeep)(ret); | ||
return ret; | ||
return AgHelper_1.AgHelper.toMap(_this.getObject(id).recentDatas.value, function (v) { return v.time.getTime() + ''; }); | ||
}, | ||
@@ -172,2 +155,1 @@ rtRecentFrequence: function (id) { | ||
exports.AgTimeMachine = AgTimeMachine; | ||
var temp; |
{ | ||
"name": "ag-timemachine", | ||
"version": "1.0.67", | ||
"version": "1.0.68", | ||
"description": "", | ||
@@ -9,3 +9,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"ag-utilities": "^1.1.42" | ||
"ag-utilities": "^1.1.43" | ||
}, | ||
@@ -12,0 +12,0 @@ "devDependencies": { |
@@ -131,3 +131,3 @@ "use strict"; | ||
var _a; | ||
var record = { time: new Date(), delta: (0, AgLodashWrap_1.cloneDeep)(delta) }; | ||
var record = { time: new Date(), delta: delta }; | ||
var time = _this.updateDeltas(record); | ||
@@ -134,0 +134,0 @@ _this.updateLifeTime(time); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
65686
1446
Updatedag-utilities@^1.1.43