@thornfe/jql2iql 0.0.2 → 0.0.3

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.cjs CHANGED
@@ -24887,7 +24887,9 @@ function convertOrderByClause(orderBy, constantsMap) {
24887
24887
  for (const orderField of orderBy.fields) {
24888
24888
  const fieldName = orderField.field;
24889
24889
  const direction = orderField.direction.toLowerCase();
24890
- const iqlFieldName = fieldMap[normalizeFieldName(fieldName)]?.customFieldKey || fieldName;
24890
+ const fieldConfig = fieldMap[normalizeFieldName(fieldName)];
24891
+ if (!fieldConfig || !fieldConfig.customFieldKey) continue;
24892
+ const iqlFieldName = fieldConfig.customFieldKey;
24891
24893
  orderFields.push(`${iqlFieldName} ${direction}`);
24892
24894
  }
24893
24895
  if (orderFields.length === 0) return "";
package/dist/index.mjs CHANGED
@@ -24889,7 +24889,9 @@ function convertOrderByClause(orderBy, constantsMap) {
24889
24889
  for (const orderField of orderBy.fields) {
24890
24890
  const fieldName = orderField.field;
24891
24891
  const direction = orderField.direction.toLowerCase();
24892
- const iqlFieldName = fieldMap[normalizeFieldName(fieldName)]?.customFieldKey || fieldName;
24892
+ const fieldConfig = fieldMap[normalizeFieldName(fieldName)];
24893
+ if (!fieldConfig || !fieldConfig.customFieldKey) continue;
24894
+ const iqlFieldName = fieldConfig.customFieldKey;
24893
24895
  orderFields.push(`${iqlFieldName} ${direction}`);
24894
24896
  }
24895
24897
  if (orderFields.length === 0) return "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thornfe/jql2iql",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "A Translator That Converts Jira JQL into Gitee IQL",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",