@typus/typus-sdk 1.0.50 → 1.0.52
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/lib/utils/leader-board.js +3 -15
- package/package.json +1 -1
|
@@ -137,7 +137,7 @@ function getDepositorLeaderBoard(start, end, step) {
|
|
|
137
137
|
case 3:
|
|
138
138
|
data = _a.sent();
|
|
139
139
|
samples = data.results[0].matrix.samples;
|
|
140
|
-
len_1 = samples.reduce(function (acc, curr) { return (acc > curr.values.length ? acc : curr.values.length); }, 0);
|
|
140
|
+
len_1 = samples.reduce(function (acc, curr) { return (acc > curr.values.length ? acc : curr.values.length); }, 0) - 1;
|
|
141
141
|
leader_board = samples
|
|
142
142
|
.map(function (element) {
|
|
143
143
|
// console.log("metric:", element.metric, "values: ", element.values);
|
|
@@ -268,19 +268,7 @@ function getBidderLeaderBoard(startTimestamp, end) {
|
|
|
268
268
|
}
|
|
269
269
|
exports.getBidderLeaderBoard = getBidderLeaderBoard;
|
|
270
270
|
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
switch (_e.label) {
|
|
274
|
-
case 0:
|
|
275
|
-
_b = (_a = console).log;
|
|
276
|
-
return [4 /*yield*/, getDepositorLeaderBoard("1684886400")];
|
|
277
|
-
case 1:
|
|
278
|
-
_b.apply(_a, [_e.sent()]);
|
|
279
|
-
_d = (_c = console).log;
|
|
280
|
-
return [4 /*yield*/, getBidderLeaderBoard("1684886400")];
|
|
281
|
-
case 2:
|
|
282
|
-
_d.apply(_c, [_e.sent()]);
|
|
283
|
-
return [2 /*return*/];
|
|
284
|
-
}
|
|
271
|
+
return __generator(this, function (_a) {
|
|
272
|
+
return [2 /*return*/];
|
|
285
273
|
});
|
|
286
274
|
}); })();
|