@xuda.io/xuda-studio-checker 1.0.39 → 1.0.41
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/index.mjs +13 -10
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1520,7 +1520,7 @@ const check_prog_fieldset = function (doc) {
|
|
|
1520
1520
|
ref: field.id,
|
|
1521
1521
|
id: `${doc._id}-${field.id}`,
|
|
1522
1522
|
});
|
|
1523
|
-
|
|
1523
|
+
continue;
|
|
1524
1524
|
} else {
|
|
1525
1525
|
switch (field.data.type) {
|
|
1526
1526
|
case 'virtual':
|
|
@@ -1561,7 +1561,7 @@ const check_prog_fieldset = function (doc) {
|
|
|
1561
1561
|
ref: field.id,
|
|
1562
1562
|
id: `${doc._id}-${field.id}`,
|
|
1563
1563
|
});
|
|
1564
|
-
|
|
1564
|
+
continue;
|
|
1565
1565
|
} else {
|
|
1566
1566
|
var ret_dsc = check_prog_datasource(doc);
|
|
1567
1567
|
if (ret_dsc.length) return ret;
|
|
@@ -1576,7 +1576,7 @@ const check_prog_fieldset = function (doc) {
|
|
|
1576
1576
|
ref: field.id,
|
|
1577
1577
|
id: `${doc._id}-${field.id}`,
|
|
1578
1578
|
});
|
|
1579
|
-
|
|
1579
|
+
continue;
|
|
1580
1580
|
}
|
|
1581
1581
|
|
|
1582
1582
|
if (!find_item_by_key(_datasource_table_arr, 'field_id', field.data.field_id)) {
|
|
@@ -1589,7 +1589,7 @@ const check_prog_fieldset = function (doc) {
|
|
|
1589
1589
|
ref: field.id,
|
|
1590
1590
|
id: `${doc._id}-${field.id}`,
|
|
1591
1591
|
});
|
|
1592
|
-
|
|
1592
|
+
continue;
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
@@ -1680,7 +1680,7 @@ const check_prog_fieldset = function (doc) {
|
|
|
1680
1680
|
ref: field.id,
|
|
1681
1681
|
id: `${doc._id}-${field.id}`,
|
|
1682
1682
|
});
|
|
1683
|
-
return ret;
|
|
1683
|
+
// return ret;
|
|
1684
1684
|
break;
|
|
1685
1685
|
}
|
|
1686
1686
|
}
|
|
@@ -1869,7 +1869,7 @@ const check_prog_triggers = function (doc, workflow, source_type, source_id, sou
|
|
|
1869
1869
|
source_id,
|
|
1870
1870
|
id: `${doc._id}-${source_id}-${trigger_item.id}-${key}`,
|
|
1871
1871
|
});
|
|
1872
|
-
|
|
1872
|
+
continue;
|
|
1873
1873
|
}
|
|
1874
1874
|
if (param_ret.data.dir !== 'in' && val.value) {
|
|
1875
1875
|
const ret_local_field = find_item_by_key(doc.progFields, 'field_id', val.value);
|
|
@@ -2876,7 +2876,8 @@ const check_prog_parameters = function (doc) {
|
|
|
2876
2876
|
ref: parameter.id,
|
|
2877
2877
|
id: `${doc._id}-${parameter.id}`,
|
|
2878
2878
|
});
|
|
2879
|
-
|
|
2879
|
+
continue;
|
|
2880
|
+
// return ret;
|
|
2880
2881
|
} else {
|
|
2881
2882
|
switch (parameter.data.type) {
|
|
2882
2883
|
case 'string':
|
|
@@ -2901,7 +2902,7 @@ const check_prog_parameters = function (doc) {
|
|
|
2901
2902
|
ref: parameter.id,
|
|
2902
2903
|
id: `${doc._id}-${parameter.id}`,
|
|
2903
2904
|
});
|
|
2904
|
-
return ret;
|
|
2905
|
+
// return ret;
|
|
2905
2906
|
break;
|
|
2906
2907
|
}
|
|
2907
2908
|
}
|
|
@@ -2915,7 +2916,8 @@ const check_prog_parameters = function (doc) {
|
|
|
2915
2916
|
ref: parameter.id,
|
|
2916
2917
|
id: `${doc._id}-${parameter.id}`,
|
|
2917
2918
|
});
|
|
2918
|
-
return ret;
|
|
2919
|
+
// return ret;
|
|
2920
|
+
continue;
|
|
2919
2921
|
} else {
|
|
2920
2922
|
switch (parameter.data.dir) {
|
|
2921
2923
|
case 'in':
|
|
@@ -2943,7 +2945,7 @@ const check_prog_parameters = function (doc) {
|
|
|
2943
2945
|
ref: parameter.id,
|
|
2944
2946
|
id: `${doc._id}-${parameter.id}`,
|
|
2945
2947
|
});
|
|
2946
|
-
return ret;
|
|
2948
|
+
// return ret;
|
|
2947
2949
|
break;
|
|
2948
2950
|
}
|
|
2949
2951
|
}
|
|
@@ -3033,6 +3035,7 @@ const check_prog_expression = function (doc, exp, path, category) {
|
|
|
3033
3035
|
// if (!path) debugger;
|
|
3034
3036
|
var ret = [];
|
|
3035
3037
|
if (!exp) return ret;
|
|
3038
|
+
if (typeof exp !== 'string') return ret;
|
|
3036
3039
|
|
|
3037
3040
|
// if (is_server && doc.properties.runAt !== "server") return ret;
|
|
3038
3041
|
if (!UglifyJS) return ret;
|