jiradc-cli 1.0.13 → 1.0.14-g01c8c54.1
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/dist/index.js +9 -5
- package/package.json +4 -4
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
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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];
|
|
@@ -393,8 +397,8 @@ function transformIssueFields(fields) {
|
|
|
393
397
|
project,
|
|
394
398
|
created,
|
|
395
399
|
updated,
|
|
396
|
-
issuetype: transformIssueType(issuetype),
|
|
397
|
-
status: transformStatus(status),
|
|
400
|
+
...issuetype ? { issuetype: transformIssueType(issuetype) } : {},
|
|
401
|
+
...status ? { status: transformStatus(status) } : {},
|
|
398
402
|
...priority ? { priority: transformPriority(priority) } : {},
|
|
399
403
|
...resolution ? { resolution: transformResolution(resolution) } : {},
|
|
400
404
|
...assignee ? { assignee: transformUser(assignee) } : {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jiradc-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14-g01c8c54.1",
|
|
4
4
|
"publish": true,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"commander": "^13.1.0",
|
|
15
|
-
"jira-data-center-client": "1.0.32"
|
|
15
|
+
"jira-data-center-client": "1.0.32-g01c8c54.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/node": "24.10.4",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"tsx": "^4.19.2",
|
|
23
23
|
"typescript": "^5.7.2",
|
|
24
24
|
"vitest": "^4.0.16",
|
|
25
|
-
"config-
|
|
26
|
-
"config-
|
|
25
|
+
"config-typescript": "0.0.0",
|
|
26
|
+
"config-eslint": "0.0.0"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=22.0.0"
|