@docupace/pipeline 1.0.52 → 1.0.53

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/package.json +1 -1
  2. package/src/next/jira.js +11 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docupace/pipeline",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/src/next/jira.js CHANGED
@@ -34,15 +34,19 @@ export async function updateComponentVersion(issueKey, packageName, version) {
34
34
  let currentValue = response.data.fields.customfield_10458 || '';
35
35
  let components = new Map();
36
36
 
37
- // Parse existing components
38
- if (currentValue) {
39
- currentValue.split(';').forEach((entry) => {
40
- const [comp, ver] = entry.split(':');
41
- components.set(comp, ver);
42
- });
37
+ try {
38
+ // Parse existing components
39
+ if (currentValue) {
40
+ currentValue.split(';').forEach((entry) => {
41
+ const [comp, ver] = entry.split(':');
42
+ components.set(comp, ver);
43
+ });
44
+ }
45
+ // Update or add new component version
46
+ } catch {
47
+ console.log('Patch version has incorrect data overriding');
43
48
  }
44
49
 
45
- // Update or add new component version
46
50
  components.set(component, version);
47
51
 
48
52
  // Convert back to string format