duoops 0.2.14 → 0.2.15

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.
@@ -59,7 +59,10 @@ Total recent: ${totalEmissions.toFixed(3)} gCO2e
59
59
  Total energy: ${totalEnergy.toFixed(4)} kWh
60
60
 
61
61
  Recent Jobs:
62
- ${records.map(r => `- ${r.ingested_at} | ${r.gitlab_job_name} (${r.machine_type}): ${r.total_emissions_g.toFixed(3)} gCO2e, ${r.energy_kwh.toFixed(4)} kWh, ${r.runtime_seconds.toFixed(0)}s`).join('\n')}
62
+ ${records.map(r => {
63
+ const ts = typeof r.ingested_at === 'object' && r.ingested_at !== null ? (r.ingested_at as {value: string}).value : String(r.ingested_at)
64
+ return `- ${ts} | ${r.gitlab_job_name} (${r.machine_type}): ${r.total_emissions_g.toFixed(3)} gCO2e, ${r.energy_kwh.toFixed(4)} kWh, ${r.runtime_seconds.toFixed(0)}s`
65
+ }).join('\n')}
63
66
  `
64
67
 
65
68
  return {
@@ -669,5 +669,5 @@
669
669
  ]
670
670
  }
671
671
  },
672
- "version": "0.2.14"
672
+ "version": "0.2.15"
673
673
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duoops",
3
3
  "description": "Toolset for Explainable and Sustainable CI on Gitlab.",
4
- "version": "0.2.14",
4
+ "version": "0.2.15",
5
5
  "author": "Younes Laaroussi",
6
6
  "bin": {
7
7
  "duoops": "./bin/run.js"