jiradc-cli 1.0.13 → 1.0.14

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -346,9 +346,13 @@ function compactRecord(obj) {
346
346
  }
347
347
  function pruneSentinels(fields) {
348
348
  const out = { ...fields };
349
- delete out.aggregatetimespent;
350
- delete out.aggregatetimeestimate;
351
- delete out.aggregatetimeoriginalestimate;
349
+ for (const [agg, leaf] of [
350
+ ["aggregatetimespent", "timespent"],
351
+ ["aggregatetimeestimate", "timeestimate"],
352
+ ["aggregatetimeoriginalestimate", "timeoriginalestimate"]
353
+ ]) {
354
+ if (out[agg] === out[leaf]) delete out[agg];
355
+ }
352
356
  if (out.workratio === -1) delete out.workratio;
353
357
  for (const k of ["progress", "aggregateprogress"]) {
354
358
  const v = out[k];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jiradc-cli",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "publish": true,
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -22,8 +22,8 @@
22
22
  "tsx": "^4.19.2",
23
23
  "typescript": "^5.7.2",
24
24
  "vitest": "^4.0.16",
25
- "config-eslint": "0.0.0",
26
- "config-typescript": "0.0.0"
25
+ "config-typescript": "0.0.0",
26
+ "config-eslint": "0.0.0"
27
27
  },
28
28
  "engines": {
29
29
  "node": ">=22.0.0"