@xuda.io/xuda-studio-checker 1.0.38 → 1.0.40
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 +15 -11
- 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);
|
|
@@ -2237,7 +2237,7 @@ const check_prog_triggers = function (doc, workflow, source_type, source_id, sou
|
|
|
2237
2237
|
});
|
|
2238
2238
|
} else {
|
|
2239
2239
|
if (_conf.cpi_methods[_api_method].private) {
|
|
2240
|
-
|
|
2240
|
+
ret.push({
|
|
2241
2241
|
code: 'CHK_MSG_PRG_TRG_384',
|
|
2242
2242
|
data: `api method ${_api_method} is private in ${source_type} "${source_name}" trigger`,
|
|
2243
2243
|
type: err_type,
|
|
@@ -2246,6 +2246,7 @@ const check_prog_triggers = function (doc, workflow, source_type, source_id, sou
|
|
|
2246
2246
|
source_id,
|
|
2247
2247
|
id: `${doc._id}-${source_id}-${trigger_item.id}`,
|
|
2248
2248
|
});
|
|
2249
|
+
continue;
|
|
2249
2250
|
}
|
|
2250
2251
|
if (_conf.cpi_methods[_api_method].fields) {
|
|
2251
2252
|
for (let [key, val] of Object.entries(_conf.cpi_methods[_api_method].fields)) {
|
|
@@ -2875,7 +2876,8 @@ const check_prog_parameters = function (doc) {
|
|
|
2875
2876
|
ref: parameter.id,
|
|
2876
2877
|
id: `${doc._id}-${parameter.id}`,
|
|
2877
2878
|
});
|
|
2878
|
-
|
|
2879
|
+
continue;
|
|
2880
|
+
// return ret;
|
|
2879
2881
|
} else {
|
|
2880
2882
|
switch (parameter.data.type) {
|
|
2881
2883
|
case 'string':
|
|
@@ -2900,7 +2902,7 @@ const check_prog_parameters = function (doc) {
|
|
|
2900
2902
|
ref: parameter.id,
|
|
2901
2903
|
id: `${doc._id}-${parameter.id}`,
|
|
2902
2904
|
});
|
|
2903
|
-
return ret;
|
|
2905
|
+
// return ret;
|
|
2904
2906
|
break;
|
|
2905
2907
|
}
|
|
2906
2908
|
}
|
|
@@ -2914,7 +2916,8 @@ const check_prog_parameters = function (doc) {
|
|
|
2914
2916
|
ref: parameter.id,
|
|
2915
2917
|
id: `${doc._id}-${parameter.id}`,
|
|
2916
2918
|
});
|
|
2917
|
-
return ret;
|
|
2919
|
+
// return ret;
|
|
2920
|
+
continue;
|
|
2918
2921
|
} else {
|
|
2919
2922
|
switch (parameter.data.dir) {
|
|
2920
2923
|
case 'in':
|
|
@@ -2942,7 +2945,7 @@ const check_prog_parameters = function (doc) {
|
|
|
2942
2945
|
ref: parameter.id,
|
|
2943
2946
|
id: `${doc._id}-${parameter.id}`,
|
|
2944
2947
|
});
|
|
2945
|
-
return ret;
|
|
2948
|
+
// return ret;
|
|
2946
2949
|
break;
|
|
2947
2950
|
}
|
|
2948
2951
|
}
|
|
@@ -3032,6 +3035,7 @@ const check_prog_expression = function (doc, exp, path, category) {
|
|
|
3032
3035
|
// if (!path) debugger;
|
|
3033
3036
|
var ret = [];
|
|
3034
3037
|
if (!exp) return ret;
|
|
3038
|
+
if (typeof exp !== 'string') return ret;
|
|
3035
3039
|
|
|
3036
3040
|
// if (is_server && doc.properties.runAt !== "server") return ret;
|
|
3037
3041
|
if (!UglifyJS) return ret;
|