@kumori/aurora-backend-handler 1.0.138 → 1.0.139

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.
@@ -53,7 +53,9 @@ const applyReporting = (
53
53
  expiryTimers.delete(key);
54
54
 
55
55
  const values = dataPoints.map(toMilliCores).slice(-REPORTING_ITERATIONS);
56
- const expiredValues = values.map(() => 0);
56
+ const expiredValues = values.length
57
+ ? [...values, 0].slice(-REPORTING_ITERATIONS)
58
+ : values;
57
59
  const remainingMs =
58
60
  getNewestSampleTime(dataPoints) + REPORTING_MAX_AGE_MS - Date.now();
59
61
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-backend-handler",
3
- "version": "1.0.138",
3
+ "version": "1.0.139",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {