@abaplint/cli 2.102.4 → 2.102.5
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 +20 -14
- package/package.json +2 -2
package/build/cli.js
CHANGED
|
@@ -21739,6 +21739,13 @@ class TypeUtils {
|
|
|
21739
21739
|
return false;
|
|
21740
21740
|
}
|
|
21741
21741
|
}
|
|
21742
|
+
else if (source instanceof basic_1.ObjectReferenceType) {
|
|
21743
|
+
if (target instanceof basic_1.XSequenceType
|
|
21744
|
+
|| target instanceof basic_1.IntegerType
|
|
21745
|
+
|| target instanceof basic_1.XStringType) {
|
|
21746
|
+
return false;
|
|
21747
|
+
}
|
|
21748
|
+
}
|
|
21742
21749
|
else if (source instanceof basic_1.XStringType) {
|
|
21743
21750
|
if (target instanceof basic_1.CLikeType
|
|
21744
21751
|
|| target instanceof basic_1.IntegerType
|
|
@@ -34746,10 +34753,10 @@ class FloatingPointType extends _abstract_type_1.AbstractType {
|
|
|
34746
34753
|
return this.length;
|
|
34747
34754
|
}
|
|
34748
34755
|
toText() {
|
|
34749
|
-
return "```
|
|
34756
|
+
return "```f LENGTH " + this.getLength() + "```";
|
|
34750
34757
|
}
|
|
34751
34758
|
toABAP() {
|
|
34752
|
-
return "
|
|
34759
|
+
return "f LENGTH " + this.getLength();
|
|
34753
34760
|
}
|
|
34754
34761
|
isGeneric() {
|
|
34755
34762
|
return false;
|
|
@@ -47356,25 +47363,23 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
47356
47363
|
keyFields: [],
|
|
47357
47364
|
name: "primary_key",
|
|
47358
47365
|
};
|
|
47359
|
-
for (const f of ((_c = this.parsedXML) === null || _c === void 0 ? void 0 : _c.dd42v) || []) {
|
|
47360
|
-
if (f.keyname === "") {
|
|
47361
|
-
primaryKey.keyFields.push(f.keyfield);
|
|
47362
|
-
}
|
|
47363
|
-
}
|
|
47364
47366
|
}
|
|
47365
|
-
else if (((
|
|
47367
|
+
else if (((_c = this.parsedXML) === null || _c === void 0 ? void 0 : _c.accessmode) === "H") {
|
|
47366
47368
|
primaryKey = {
|
|
47367
|
-
isUnique: ((
|
|
47369
|
+
isUnique: ((_d = this.parsedXML) === null || _d === void 0 ? void 0 : _d.keykind) === "U",
|
|
47368
47370
|
type: basic_1.TableAccessType.hashed,
|
|
47369
47371
|
keyFields: [],
|
|
47370
47372
|
name: "primary_key",
|
|
47371
47373
|
};
|
|
47372
|
-
|
|
47373
|
-
|
|
47374
|
-
|
|
47375
|
-
|
|
47374
|
+
}
|
|
47375
|
+
for (const f of ((_e = this.parsedXML) === null || _e === void 0 ? void 0 : _e.dd42v) || []) {
|
|
47376
|
+
if (f.keyname === "") {
|
|
47377
|
+
primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.push(f.keyfield);
|
|
47376
47378
|
}
|
|
47377
47379
|
}
|
|
47380
|
+
if (((_f = this.parsedXML) === null || _f === void 0 ? void 0 : _f.keydef) === "T" && (primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.length) === 0) {
|
|
47381
|
+
primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.push("table_line");
|
|
47382
|
+
}
|
|
47378
47383
|
const tableOptions = {
|
|
47379
47384
|
withHeader: false,
|
|
47380
47385
|
keyType: Types.TableKeyType.user,
|
|
@@ -47490,6 +47495,7 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
47490
47495
|
this.parsedXML.accessmode = dd40v.ACCESSMODE;
|
|
47491
47496
|
this.parsedXML.keykind = dd40v.KEYKIND;
|
|
47492
47497
|
this.parsedXML.ddtext = dd40v.DDTEXT;
|
|
47498
|
+
this.parsedXML.keydef = dd40v.KEYDEF;
|
|
47493
47499
|
for (const x of (0, xml_utils_1.xmlToArray)((_a = values.DD42V) === null || _a === void 0 ? void 0 : _a.DD42V)) {
|
|
47494
47500
|
this.parsedXML.dd42v.push({
|
|
47495
47501
|
keyname: x.SECKEYNAME || "",
|
|
@@ -48529,7 +48535,7 @@ class Registry {
|
|
|
48529
48535
|
}
|
|
48530
48536
|
static abaplintVersion() {
|
|
48531
48537
|
// magic, see build script "version.sh"
|
|
48532
|
-
return "2.102.
|
|
48538
|
+
return "2.102.5";
|
|
48533
48539
|
}
|
|
48534
48540
|
getDDICReferences() {
|
|
48535
48541
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/cli",
|
|
3
|
-
"version": "2.102.
|
|
3
|
+
"version": "2.102.5",
|
|
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.102.
|
|
41
|
+
"@abaplint/core": "^2.102.5",
|
|
42
42
|
"@types/chai": "^4.3.5",
|
|
43
43
|
"@types/glob": "^7.2.0",
|
|
44
44
|
"@types/minimist": "^1.2.2",
|