@abaplint/cli 2.113.207 → 2.113.208
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/build/cli.js +16 -10
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -15206,15 +15206,16 @@ class ModifyEntities {
|
|
|
15206
15206
|
const create = (0, combi_1.seq)("CREATE", (0, combi_1.opt)(by), "FROM", expressions_1.Source, (0, combi_1.opt)(relating));
|
|
15207
15207
|
const updateFrom = (0, combi_1.seq)("UPDATE FROM", expressions_1.Source, (0, combi_1.opt)(relating));
|
|
15208
15208
|
const deleteFrom = (0, combi_1.seq)("DELETE FROM", expressions_1.Source);
|
|
15209
|
-
const
|
|
15209
|
+
const updateFields = (0, combi_1.seq)("UPDATE", fieldsWith);
|
|
15210
|
+
const operation = (0, combi_1.alt)((0, combi_1.seq)("UPDATE SET FIELDS WITH", expressions_1.Source), (0, combi_1.seq)("CREATE SET FIELDS WITH", expressions_1.Source), updateFields, deleteFrom, updateFrom, create, execute, (0, combi_1.seq)("CREATE", (0, combi_1.opt)(by), (0, combi_1.optPrio)("AUTO FILL CID"), (0, combi_1.altPrio)(withh, fieldsWith)));
|
|
15210
15211
|
const failed = (0, combi_1.seq)("FAILED", expressions_1.Target);
|
|
15211
15212
|
const result = (0, combi_1.seq)("RESULT", expressions_1.Target);
|
|
15212
15213
|
const mapped = (0, combi_1.seq)("MAPPED", expressions_1.Target);
|
|
15213
15214
|
const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
|
|
15214
15215
|
const end = (0, combi_1.optPrio)((0, combi_1.per)(failed, result, mapped, reported));
|
|
15215
|
-
const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plusPrio)((0, combi_1.seq)("ENTITY", expressions_1.
|
|
15216
|
+
const entities = (0, combi_1.seq)((0, combi_1.optPrio)("AUGMENTING"), "ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plusPrio)((0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.plus)(operation))));
|
|
15216
15217
|
const create2 = (0, combi_1.seq)("CREATE", fieldsWith, "CREATE BY", expressions_1.AssociationName, fieldsWith);
|
|
15217
|
-
const entity = (0, combi_1.seq)("ENTITY", (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.EntityAssociation), (0, combi_1.alt)(execute, create, deleteFrom, updateFrom, create2));
|
|
15218
|
+
const entity = (0, combi_1.seq)("ENTITY", (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.EntityAssociation), (0, combi_1.alt)(execute, create, updateFields, deleteFrom, updateFrom, create2));
|
|
15218
15219
|
return (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("MODIFY", (0, combi_1.alt)(entities, entity), end));
|
|
15219
15220
|
}
|
|
15220
15221
|
}
|
|
@@ -16157,8 +16158,9 @@ class ReadEntities {
|
|
|
16157
16158
|
const failed = (0, combi_1.seq)("FAILED", expressions_1.Target);
|
|
16158
16159
|
const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
|
|
16159
16160
|
const entity = (0, combi_1.seq)("ENTITY", expressions_1.NamespaceSimpleName, (0, combi_1.opt)((0, combi_1.seq)("BY", expressions_1.AssociationName)), (0, combi_1.alt)(fields, from, all), (0, combi_1.optPrio)(result));
|
|
16160
|
-
const s = (0, combi_1.seq)("ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plus)(entity), (0, combi_1.optPrio)((0, combi_1.seq)("LINK", expressions_1.Target)), (0, combi_1.optPrio)(
|
|
16161
|
-
const
|
|
16161
|
+
const s = (0, combi_1.seq)("ENTITIES OF", expressions_1.NamespaceSimpleName, (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.plus)(entity), (0, combi_1.optPrio)((0, combi_1.seq)("LINK", expressions_1.Target)), (0, combi_1.optPrio)((0, combi_1.per)(failed, reported)));
|
|
16162
|
+
const by = (0, combi_1.seq)("BY", expressions_1.AssociationName, fields);
|
|
16163
|
+
const single = (0, combi_1.seq)("ENTITY", (0, combi_1.opt)("IN LOCAL MODE"), (0, combi_1.alt)(expressions_1.NamespaceSimpleName, expressions_1.EntityAssociation), (0, combi_1.alt)(all, fields, from, by), result, (0, combi_1.optPrio)(failed), (0, combi_1.optPrio)(reported));
|
|
16162
16164
|
return (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("READ", (0, combi_1.alt)(s, single)));
|
|
16163
16165
|
}
|
|
16164
16166
|
}
|
|
@@ -40415,6 +40417,8 @@ class MethodParameters {
|
|
|
40415
40417
|
|| concat.includes(" FOR FEATURES ")
|
|
40416
40418
|
|| concat.includes(" FOR INSTANCE FEATURES ")
|
|
40417
40419
|
|| concat.includes(" FOR READ ")
|
|
40420
|
+
|| concat.includes(" FOR VALIDATION ")
|
|
40421
|
+
|| concat.includes(" FOR DETERMINE ")
|
|
40418
40422
|
|| concat.includes(" FOR LOCK ")
|
|
40419
40423
|
|| concat.includes(" FOR MODIFY ")) {
|
|
40420
40424
|
const token = isRap.getFirstToken();
|
|
@@ -40930,7 +40934,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
40930
40934
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
40931
40935
|
class CDSAggregate extends combi_1.Expression {
|
|
40932
40936
|
getRunnable() {
|
|
40933
|
-
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.
|
|
40937
|
+
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.star)((0, combi_1.seq)(".", _1.CDSName)));
|
|
40934
40938
|
const value = (0, combi_1.alt)(name, "*", _1.CDSCast, _1.CDSCase, _1.CDSFunction);
|
|
40935
40939
|
return (0, combi_1.seq)((0, combi_1.alt)("MAX", "MIN", "SUM", "AVG", "COUNT"), "(", (0, combi_1.opt)("DISTINCT"), value, ")");
|
|
40936
40940
|
}
|
|
@@ -41148,8 +41152,10 @@ exports.CDSCardinality = void 0;
|
|
|
41148
41152
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
41149
41153
|
class CDSCardinality extends combi_1.Expression {
|
|
41150
41154
|
getRunnable() {
|
|
41151
|
-
const
|
|
41152
|
-
|
|
41155
|
+
const numeric = (0, combi_1.seq)("[", (0, combi_1.alt)("0", "1", "*"), (0, combi_1.opt)((0, combi_1.seq)(".", ".", (0, combi_1.alt)("0", "1", "*"))), "]");
|
|
41156
|
+
const num = (0, combi_1.alt)("ONE", "MANY");
|
|
41157
|
+
const text = (0, combi_1.seq)("OF", num, "TO", num);
|
|
41158
|
+
return (0, combi_1.alt)(numeric, text);
|
|
41153
41159
|
}
|
|
41154
41160
|
}
|
|
41155
41161
|
exports.CDSCardinality = CDSCardinality;
|
|
@@ -41303,7 +41309,7 @@ class CDSDefineCustom extends combi_1.Expression {
|
|
|
41303
41309
|
getRunnable() {
|
|
41304
41310
|
const field = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.str)("KEY")), cds_name_1.CDSName, ":", cds_type_1.CDSType, ";");
|
|
41305
41311
|
const compsiOrAssoci = (0, combi_1.seq)(cds_name_1.CDSName, ":", (0, combi_1.alt)(_1.CDSComposition, _1.CDSAssociation), ";");
|
|
41306
|
-
return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.str)("DEFINE"), (0, combi_1.opt)((0, combi_1.str)("ROOT")), (0, combi_1.str)("CUSTOM ENTITY"), cds_name_1.CDSName, (0, combi_1.str)("{"), (0, combi_1.plus)((0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.alt)(field, compsiOrAssoci))), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
|
|
41312
|
+
return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.str)("DEFINE"), (0, combi_1.opt)((0, combi_1.str)("ROOT")), (0, combi_1.str)("CUSTOM ENTITY"), (0, combi_1.opt)(_1.CDSWithParameters), cds_name_1.CDSName, (0, combi_1.str)("{"), (0, combi_1.plus)((0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), (0, combi_1.alt)(field, compsiOrAssoci))), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
|
|
41307
41313
|
}
|
|
41308
41314
|
}
|
|
41309
41315
|
exports.CDSDefineCustom = CDSDefineCustom;
|
|
@@ -54475,7 +54481,7 @@ class Registry {
|
|
|
54475
54481
|
}
|
|
54476
54482
|
static abaplintVersion() {
|
|
54477
54483
|
// magic, see build script "version.sh"
|
|
54478
|
-
return "2.113.
|
|
54484
|
+
return "2.113.208";
|
|
54479
54485
|
}
|
|
54480
54486
|
getDDICReferences() {
|
|
54481
54487
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.113.
|
|
3
|
+
"version": "2.113.208",
|
|
4
4
|
"description": "abaplint - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"homepage": "https://abaplint.org",
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@abaplint/core": "^2.113.
|
|
41
|
+
"@abaplint/core": "^2.113.208",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|