@abaplint/transpiler-cli 2.7.48 → 2.7.49
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/bundle.js +20 -14
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -20792,6 +20792,13 @@ class TypeUtils {
|
|
|
20792
20792
|
return false;
|
|
20793
20793
|
}
|
|
20794
20794
|
}
|
|
20795
|
+
else if (source instanceof basic_1.ObjectReferenceType) {
|
|
20796
|
+
if (target instanceof basic_1.XSequenceType
|
|
20797
|
+
|| target instanceof basic_1.IntegerType
|
|
20798
|
+
|| target instanceof basic_1.XStringType) {
|
|
20799
|
+
return false;
|
|
20800
|
+
}
|
|
20801
|
+
}
|
|
20795
20802
|
else if (source instanceof basic_1.XStringType) {
|
|
20796
20803
|
if (target instanceof basic_1.CLikeType
|
|
20797
20804
|
|| target instanceof basic_1.IntegerType
|
|
@@ -33799,10 +33806,10 @@ class FloatingPointType extends _abstract_type_1.AbstractType {
|
|
|
33799
33806
|
return this.length;
|
|
33800
33807
|
}
|
|
33801
33808
|
toText() {
|
|
33802
|
-
return "```
|
|
33809
|
+
return "```f LENGTH " + this.getLength() + "```";
|
|
33803
33810
|
}
|
|
33804
33811
|
toABAP() {
|
|
33805
|
-
return "
|
|
33812
|
+
return "f LENGTH " + this.getLength();
|
|
33806
33813
|
}
|
|
33807
33814
|
isGeneric() {
|
|
33808
33815
|
return false;
|
|
@@ -46409,25 +46416,23 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
46409
46416
|
keyFields: [],
|
|
46410
46417
|
name: "primary_key",
|
|
46411
46418
|
};
|
|
46412
|
-
for (const f of ((_c = this.parsedXML) === null || _c === void 0 ? void 0 : _c.dd42v) || []) {
|
|
46413
|
-
if (f.keyname === "") {
|
|
46414
|
-
primaryKey.keyFields.push(f.keyfield);
|
|
46415
|
-
}
|
|
46416
|
-
}
|
|
46417
46419
|
}
|
|
46418
|
-
else if (((
|
|
46420
|
+
else if (((_c = this.parsedXML) === null || _c === void 0 ? void 0 : _c.accessmode) === "H") {
|
|
46419
46421
|
primaryKey = {
|
|
46420
|
-
isUnique: ((
|
|
46422
|
+
isUnique: ((_d = this.parsedXML) === null || _d === void 0 ? void 0 : _d.keykind) === "U",
|
|
46421
46423
|
type: basic_1.TableAccessType.hashed,
|
|
46422
46424
|
keyFields: [],
|
|
46423
46425
|
name: "primary_key",
|
|
46424
46426
|
};
|
|
46425
|
-
|
|
46426
|
-
|
|
46427
|
-
|
|
46428
|
-
|
|
46427
|
+
}
|
|
46428
|
+
for (const f of ((_e = this.parsedXML) === null || _e === void 0 ? void 0 : _e.dd42v) || []) {
|
|
46429
|
+
if (f.keyname === "") {
|
|
46430
|
+
primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.push(f.keyfield);
|
|
46429
46431
|
}
|
|
46430
46432
|
}
|
|
46433
|
+
if (((_f = this.parsedXML) === null || _f === void 0 ? void 0 : _f.keydef) === "T" && (primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.length) === 0) {
|
|
46434
|
+
primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.push("table_line");
|
|
46435
|
+
}
|
|
46431
46436
|
const tableOptions = {
|
|
46432
46437
|
withHeader: false,
|
|
46433
46438
|
keyType: Types.TableKeyType.user,
|
|
@@ -46543,6 +46548,7 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
46543
46548
|
this.parsedXML.accessmode = dd40v.ACCESSMODE;
|
|
46544
46549
|
this.parsedXML.keykind = dd40v.KEYKIND;
|
|
46545
46550
|
this.parsedXML.ddtext = dd40v.DDTEXT;
|
|
46551
|
+
this.parsedXML.keydef = dd40v.KEYDEF;
|
|
46546
46552
|
for (const x of (0, xml_utils_1.xmlToArray)((_a = values.DD42V) === null || _a === void 0 ? void 0 : _a.DD42V)) {
|
|
46547
46553
|
this.parsedXML.dd42v.push({
|
|
46548
46554
|
keyname: x.SECKEYNAME || "",
|
|
@@ -47582,7 +47588,7 @@ class Registry {
|
|
|
47582
47588
|
}
|
|
47583
47589
|
static abaplintVersion() {
|
|
47584
47590
|
// magic, see build script "version.sh"
|
|
47585
|
-
return "2.102.
|
|
47591
|
+
return "2.102.5";
|
|
47586
47592
|
}
|
|
47587
47593
|
getDDICReferences() {
|
|
47588
47594
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.49",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.49",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|
|
33
33
|
"@types/node": "^20.4.4",
|
|
34
|
-
"@abaplint/core": "^2.102.
|
|
34
|
+
"@abaplint/core": "^2.102.5",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
36
|
"webpack": "^5.88.2",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|