@abaplint/cli 2.113.207 → 2.113.209
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 +24 -12
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -15206,15 +15206,17 @@ 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 create2 = (0, combi_1.seq)("CREATE", fieldsWith, "CREATE BY", expressions_1.AssociationName, fieldsWith);
|
|
15217
|
-
const
|
|
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))));
|
|
15217
|
+
const create2 = (0, combi_1.seq)("CREATE", fieldsWith, (0, combi_1.opt)((0, combi_1.seq)("CREATE BY", expressions_1.AssociationName, fieldsWith)));
|
|
15218
|
+
const create3 = (0, combi_1.seq)("CREATE BY", expressions_1.AssociationName, fieldsWith);
|
|
15219
|
+
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, create3));
|
|
15218
15220
|
return (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("MODIFY", (0, combi_1.alt)(entities, entity), end));
|
|
15219
15221
|
}
|
|
15220
15222
|
}
|
|
@@ -16157,8 +16159,11 @@ class ReadEntities {
|
|
|
16157
16159
|
const failed = (0, combi_1.seq)("FAILED", expressions_1.Target);
|
|
16158
16160
|
const reported = (0, combi_1.seq)("REPORTED", expressions_1.Target);
|
|
16159
16161
|
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
|
|
16162
|
+
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)));
|
|
16163
|
+
const byall = (0, combi_1.seq)("BY", expressions_1.AssociationName, all);
|
|
16164
|
+
const by = (0, combi_1.seq)("BY", expressions_1.AssociationName, fields);
|
|
16165
|
+
const sub = (0, combi_1.seq)((0, combi_1.alt)(all, fields, from, by, byall), result);
|
|
16166
|
+
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.plus)(sub), (0, combi_1.optPrio)(failed), (0, combi_1.optPrio)(reported));
|
|
16162
16167
|
return (0, combi_1.ver)(version_1.Version.v754, (0, combi_1.seq)("READ", (0, combi_1.alt)(s, single)));
|
|
16163
16168
|
}
|
|
16164
16169
|
}
|
|
@@ -24371,6 +24376,8 @@ class BasicTypes {
|
|
|
24371
24376
|
return new Types.TableType(structure, options);
|
|
24372
24377
|
}
|
|
24373
24378
|
else if (typename && (text.startsWith("TYPE TABLE FOR CREATE ")
|
|
24379
|
+
|| text.startsWith("TYPE TABLE FOR READ ")
|
|
24380
|
+
|| text.startsWith("TYPE TABLE FOR DELETE ")
|
|
24374
24381
|
|| text.startsWith("TYPE TABLE FOR UPDATE "))) {
|
|
24375
24382
|
const name = typename.concatTokens();
|
|
24376
24383
|
const type = (_d = this.input.scope.getDDIC().lookupDDLS(name)) === null || _d === void 0 ? void 0 : _d.type;
|
|
@@ -40415,6 +40422,8 @@ class MethodParameters {
|
|
|
40415
40422
|
|| concat.includes(" FOR FEATURES ")
|
|
40416
40423
|
|| concat.includes(" FOR INSTANCE FEATURES ")
|
|
40417
40424
|
|| concat.includes(" FOR READ ")
|
|
40425
|
+
|| concat.includes(" FOR VALIDATION ")
|
|
40426
|
+
|| concat.includes(" FOR DETERMINE ")
|
|
40418
40427
|
|| concat.includes(" FOR LOCK ")
|
|
40419
40428
|
|| concat.includes(" FOR MODIFY ")) {
|
|
40420
40429
|
const token = isRap.getFirstToken();
|
|
@@ -40930,7 +40939,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
40930
40939
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
40931
40940
|
class CDSAggregate extends combi_1.Expression {
|
|
40932
40941
|
getRunnable() {
|
|
40933
|
-
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.
|
|
40942
|
+
const name = (0, combi_1.seq)(_1.CDSName, (0, combi_1.star)((0, combi_1.seq)(".", _1.CDSName)));
|
|
40934
40943
|
const value = (0, combi_1.alt)(name, "*", _1.CDSCast, _1.CDSCase, _1.CDSFunction);
|
|
40935
40944
|
return (0, combi_1.seq)((0, combi_1.alt)("MAX", "MIN", "SUM", "AVG", "COUNT"), "(", (0, combi_1.opt)("DISTINCT"), value, ")");
|
|
40936
40945
|
}
|
|
@@ -41148,8 +41157,10 @@ exports.CDSCardinality = void 0;
|
|
|
41148
41157
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
41149
41158
|
class CDSCardinality extends combi_1.Expression {
|
|
41150
41159
|
getRunnable() {
|
|
41151
|
-
const
|
|
41152
|
-
|
|
41160
|
+
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", "*"))), "]");
|
|
41161
|
+
const num = (0, combi_1.alt)("ONE", "MANY");
|
|
41162
|
+
const text = (0, combi_1.seq)("OF", num, "TO", num);
|
|
41163
|
+
return (0, combi_1.alt)(numeric, text);
|
|
41153
41164
|
}
|
|
41154
41165
|
}
|
|
41155
41166
|
exports.CDSCardinality = CDSCardinality;
|
|
@@ -41303,7 +41314,7 @@ class CDSDefineCustom extends combi_1.Expression {
|
|
|
41303
41314
|
getRunnable() {
|
|
41304
41315
|
const field = (0, combi_1.seq)((0, combi_1.opt)((0, combi_1.str)("KEY")), cds_name_1.CDSName, ":", cds_type_1.CDSType, ";");
|
|
41305
41316
|
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)(";"));
|
|
41317
|
+
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
41318
|
}
|
|
41308
41319
|
}
|
|
41309
41320
|
exports.CDSDefineCustom = CDSDefineCustom;
|
|
@@ -41699,9 +41710,10 @@ exports.CDSPrefixedName = void 0;
|
|
|
41699
41710
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
41700
41711
|
const cds_name_1 = __webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js");
|
|
41701
41712
|
const cds_parameters_1 = __webpack_require__(/*! ./cds_parameters */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters.js");
|
|
41713
|
+
const cds_parameters_select_1 = __webpack_require__(/*! ./cds_parameters_select */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_parameters_select.js");
|
|
41702
41714
|
class CDSPrefixedName extends combi_1.Expression {
|
|
41703
41715
|
getRunnable() {
|
|
41704
|
-
return (0, combi_1.seq)(cds_name_1.CDSName, (0, combi_1.opt)(cds_parameters_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", cds_name_1.CDSName, (0, combi_1.opt)(cds_parameters_1.CDSParameters))));
|
|
41716
|
+
return (0, combi_1.seq)(cds_name_1.CDSName, (0, combi_1.opt)((0, combi_1.alt)(cds_parameters_1.CDSParameters, cds_parameters_select_1.CDSParametersSelect)), (0, combi_1.star)((0, combi_1.seq)(".", cds_name_1.CDSName, (0, combi_1.opt)(cds_parameters_1.CDSParameters))));
|
|
41705
41717
|
}
|
|
41706
41718
|
}
|
|
41707
41719
|
exports.CDSPrefixedName = CDSPrefixedName;
|
|
@@ -54475,7 +54487,7 @@ class Registry {
|
|
|
54475
54487
|
}
|
|
54476
54488
|
static abaplintVersion() {
|
|
54477
54489
|
// magic, see build script "version.sh"
|
|
54478
|
-
return "2.113.
|
|
54490
|
+
return "2.113.209";
|
|
54479
54491
|
}
|
|
54480
54492
|
getDDICReferences() {
|
|
54481
54493
|
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.209",
|
|
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.209",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|