@abaplint/transpiler-cli 2.7.49 → 2.7.50
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 +12 -8
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -27234,16 +27234,16 @@ const data_definition_1 = __webpack_require__(/*! ../expressions/data_definition
|
|
|
27234
27234
|
const unknown_type_1 = __webpack_require__(/*! ../../types/basic/unknown_type */ "./node_modules/@abaplint/core/build/src/abap/types/basic/unknown_type.js");
|
|
27235
27235
|
class Data {
|
|
27236
27236
|
runSyntax(node, scope, filename) {
|
|
27237
|
+
const name = node.findFirstExpression(Expressions.DefinitionName);
|
|
27237
27238
|
const dd = node.findFirstExpression(Expressions.DataDefinition);
|
|
27238
27239
|
if (dd) {
|
|
27239
27240
|
const id = new data_definition_1.DataDefinition().runSyntax(dd, scope, filename);
|
|
27240
27241
|
if ((id === null || id === void 0 ? void 0 : id.getType().isGeneric()) === true
|
|
27241
27242
|
&& (id === null || id === void 0 ? void 0 : id.getType().containsVoid()) === false) {
|
|
27242
|
-
throw new Error("DATA definition cannot be generic");
|
|
27243
|
+
throw new Error("DATA definition cannot be generic, " + name);
|
|
27243
27244
|
}
|
|
27244
27245
|
return id;
|
|
27245
27246
|
}
|
|
27246
|
-
const name = node.findFirstExpression(Expressions.DefinitionName);
|
|
27247
27247
|
if (name) {
|
|
27248
27248
|
return new _typed_identifier_1.TypedIdentifier(name.getFirstToken(), filename, new unknown_type_1.UnknownType("data, fallback"));
|
|
27249
27249
|
}
|
|
@@ -46407,7 +46407,7 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
46407
46407
|
super.setDirty();
|
|
46408
46408
|
}
|
|
46409
46409
|
buildTableOptions() {
|
|
46410
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
46410
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
46411
46411
|
let primaryKey = undefined;
|
|
46412
46412
|
if (((_a = this.parsedXML) === null || _a === void 0 ? void 0 : _a.accessmode) === "S") {
|
|
46413
46413
|
primaryKey = {
|
|
@@ -46433,15 +46433,19 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
46433
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
46434
|
primaryKey === null || primaryKey === void 0 ? void 0 : primaryKey.keyFields.push("table_line");
|
|
46435
46435
|
}
|
|
46436
|
+
let keyType = Types.TableKeyType.user;
|
|
46437
|
+
if (((_g = this.parsedXML) === null || _g === void 0 ? void 0 : _g.keydef) === "D") {
|
|
46438
|
+
keyType = Types.TableKeyType.default;
|
|
46439
|
+
}
|
|
46436
46440
|
const tableOptions = {
|
|
46437
46441
|
withHeader: false,
|
|
46438
|
-
keyType:
|
|
46442
|
+
keyType: keyType,
|
|
46439
46443
|
primaryKey: primaryKey,
|
|
46440
46444
|
secondary: [],
|
|
46441
46445
|
};
|
|
46442
|
-
for (const k of ((
|
|
46446
|
+
for (const k of ((_h = this.parsedXML) === null || _h === void 0 ? void 0 : _h.dd43v) || []) {
|
|
46443
46447
|
const fields = [];
|
|
46444
|
-
for (const f of ((
|
|
46448
|
+
for (const f of ((_j = this.parsedXML) === null || _j === void 0 ? void 0 : _j.dd42v) || []) {
|
|
46445
46449
|
if (f.keyname === k.keyname) {
|
|
46446
46450
|
fields.push(f.keyfield);
|
|
46447
46451
|
}
|
|
@@ -46457,7 +46461,7 @@ class TableType extends _abstract_object_1.AbstractObject {
|
|
|
46457
46461
|
default:
|
|
46458
46462
|
break;
|
|
46459
46463
|
}
|
|
46460
|
-
(
|
|
46464
|
+
(_k = tableOptions.secondary) === null || _k === void 0 ? void 0 : _k.push({
|
|
46461
46465
|
name: k.keyname,
|
|
46462
46466
|
type: accessType,
|
|
46463
46467
|
keyFields: fields,
|
|
@@ -47588,7 +47592,7 @@ class Registry {
|
|
|
47588
47592
|
}
|
|
47589
47593
|
static abaplintVersion() {
|
|
47590
47594
|
// magic, see build script "version.sh"
|
|
47591
|
-
return "2.102.
|
|
47595
|
+
return "2.102.6";
|
|
47592
47596
|
}
|
|
47593
47597
|
getDDICReferences() {
|
|
47594
47598
|
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.50",
|
|
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.50",
|
|
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.6",
|
|
35
35
|
"progress": "^2.0.3",
|
|
36
36
|
"webpack": "^5.88.2",
|
|
37
37
|
"webpack-cli": "^5.1.4",
|