@abaplint/cli 2.113.178 → 2.113.180
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
|
@@ -8234,7 +8234,7 @@ class SQLCompare extends combi_1.Expression {
|
|
|
8234
8234
|
const sub = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("ALL", "ANY", "SOME")), (0, combi_1.altPrio)(subSelect, subSelectDouble));
|
|
8235
8235
|
const arith = (0, combi_1.ver)(version_1.Version.v750, (0, combi_1.plusPrio)((0, combi_1.seq)((0, combi_1.altPrio)("+", "-", "*", "/"), _1.SQLFieldName)));
|
|
8236
8236
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8237
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
|
|
8237
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)), version_1.Version.OpenABAP);
|
|
8238
8238
|
const rett = (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLFunction, _1.ConstantString, (0, combi_1.seq)((0, combi_1.altPrio)(_1.SQLPath, _1.SQLFieldName), (0, combi_1.optPrio)(arith)), at), (0, combi_1.altPrio)((0, combi_1.seq)(_1.SQLCompareOperator, (0, combi_1.altPrio)(sub, source)), (0, combi_1.seq)((0, combi_1.optPrio)("NOT"), (0, combi_1.altPrio)(_1.SQLIn, like, between)), nul));
|
|
8239
8239
|
const exists = (0, combi_1.seq)("EXISTS", subSelect);
|
|
8240
8240
|
return (0, combi_1.altPrio)(exists, _1.Dynamic, rett);
|
|
@@ -8369,7 +8369,7 @@ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules
|
|
|
8369
8369
|
class SQLFieldList extends combi_1.Expression {
|
|
8370
8370
|
getRunnable() {
|
|
8371
8371
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), _1.SQLFieldName, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8372
|
-
const nev = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.starPrio)((0, combi_1.seq)(",", _1.SQLField)));
|
|
8372
|
+
const nev = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.starPrio)((0, combi_1.seq)(",", _1.SQLField)), version_1.Version.OpenABAP);
|
|
8373
8373
|
const old = (0, combi_1.starPrio)(_1.SQLField);
|
|
8374
8374
|
return (0, combi_1.altPrio)("*", _1.Dynamic, (0, combi_1.seq)(_1.SQLField, (0, combi_1.alt)(nev, old)), paren);
|
|
8375
8375
|
}
|
|
@@ -8397,10 +8397,10 @@ const tokens_1 = __webpack_require__(/*! ../../1_lexer/tokens */ "./node_modules
|
|
|
8397
8397
|
// loop must include one field from the database table
|
|
8398
8398
|
class SQLFieldListLoop extends combi_1.Expression {
|
|
8399
8399
|
getRunnable() {
|
|
8400
|
-
const comma = (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v740sp05, ","));
|
|
8400
|
+
const comma = (0, combi_1.opt)((0, combi_1.ver)(version_1.Version.v740sp05, ",", version_1.Version.OpenABAP));
|
|
8401
8401
|
const as = (0, combi_1.seq)("AS", _1.SQLAsName);
|
|
8402
8402
|
const someField = (0, combi_1.seq)(_1.SQLField, comma);
|
|
8403
|
-
const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2));
|
|
8403
|
+
const abap = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), _1.SimpleFieldChain2), version_1.Version.OpenABAP);
|
|
8404
8404
|
const fieldList = (0, combi_1.seq)((0, combi_1.star)(someField), (0, combi_1.alt)(_1.SQLFieldName, abap, sql_path_1.SQLPath, _1.Constant), (0, combi_1.optPrio)(as), comma, (0, combi_1.star)(someField));
|
|
8405
8405
|
const fields = (0, combi_1.alt)("*", _1.Dynamic, fieldList);
|
|
8406
8406
|
return fields;
|
|
@@ -8906,7 +8906,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
8906
8906
|
class SQLSource extends combi_1.Expression {
|
|
8907
8907
|
getRunnable() {
|
|
8908
8908
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8909
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)));
|
|
8909
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.altPrio)(_1.SimpleSource3, paren)), version_1.Version.OpenABAP);
|
|
8910
8910
|
return (0, combi_1.altPrio)(_1.SQLAliasField, _1.SimpleSource3, at);
|
|
8911
8911
|
}
|
|
8912
8912
|
}
|
|
@@ -8959,7 +8959,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
8959
8959
|
class SQLSourceSimple extends combi_1.Expression {
|
|
8960
8960
|
getRunnable() {
|
|
8961
8961
|
const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.ParenLeftW), _1.Source, (0, combi_1.tok)(tokens_1.WParenRightW));
|
|
8962
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.alt)(_1.SimpleSource3, paren)));
|
|
8962
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.alt)(_1.SimpleSource3, paren)), version_1.Version.OpenABAP);
|
|
8963
8963
|
return (0, combi_1.alt)(_1.SimpleSource3, at);
|
|
8964
8964
|
}
|
|
8965
8965
|
}
|
|
@@ -8985,7 +8985,7 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
|
|
|
8985
8985
|
class SQLTarget extends combi_1.Expression {
|
|
8986
8986
|
getRunnable() {
|
|
8987
8987
|
const n = (0, combi_1.ver)(version_1.Version.v754, "NEW");
|
|
8988
|
-
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.opt)(n), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.tok)(tokens_1.At)), _1.Target));
|
|
8988
|
+
const at = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.seq)((0, combi_1.opt)(n), (0, combi_1.altPrio)((0, combi_1.tok)(tokens_1.WAt), (0, combi_1.tok)(tokens_1.At)), _1.Target), version_1.Version.OpenABAP);
|
|
8989
8989
|
return (0, combi_1.altPrio)(at, _1.Target);
|
|
8990
8990
|
}
|
|
8991
8991
|
}
|
|
@@ -27993,11 +27993,17 @@ class Select {
|
|
|
27993
27993
|
}
|
|
27994
27994
|
}
|
|
27995
27995
|
static buildStructureType(fields, dbSources, scope) {
|
|
27996
|
-
var _a;
|
|
27996
|
+
var _a, _b, _c;
|
|
27997
27997
|
if (fields.length === 1 && dbSources.length === 1) {
|
|
27998
27998
|
const dbType = (_a = dbSources[0]) === null || _a === void 0 ? void 0 : _a.parseType(scope.getRegistry());
|
|
27999
27999
|
if (dbType === undefined) {
|
|
28000
|
-
|
|
28000
|
+
const name = ((_b = dbSources[0]) === null || _b === void 0 ? void 0 : _b.getName()) || "buildStructureTypeError";
|
|
28001
|
+
if (scope.getRegistry().inErrorNamespace(name) === true) {
|
|
28002
|
+
return new basic_1.UnknownType("Select, " + name + " not found");
|
|
28003
|
+
}
|
|
28004
|
+
else {
|
|
28005
|
+
return basic_1.VoidType.get((_c = dbSources[0]) === null || _c === void 0 ? void 0 : _c.getName());
|
|
28006
|
+
}
|
|
28001
28007
|
}
|
|
28002
28008
|
if (fields[0].code === "*") {
|
|
28003
28009
|
return dbType;
|
|
@@ -54889,7 +54895,7 @@ class Registry {
|
|
|
54889
54895
|
}
|
|
54890
54896
|
static abaplintVersion() {
|
|
54891
54897
|
// magic, see build script "version.sh"
|
|
54892
|
-
return "2.113.
|
|
54898
|
+
return "2.113.180";
|
|
54893
54899
|
}
|
|
54894
54900
|
getDDICReferences() {
|
|
54895
54901
|
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.180",
|
|
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.180",
|
|
42
42
|
"@types/chai": "^4.3.20",
|
|
43
43
|
"@types/minimist": "^1.2.5",
|
|
44
44
|
"@types/mocha": "^10.0.10",
|