@abaplint/transpiler-cli 2.12.31 → 2.12.32
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 +31 -3
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -27269,7 +27269,7 @@ class Select {
|
|
|
27269
27269
|
}
|
|
27270
27270
|
}
|
|
27271
27271
|
static buildStructureType(fields, dbSources, scope) {
|
|
27272
|
-
var _a, _b, _c;
|
|
27272
|
+
var _a, _b, _c, _d, _e, _f;
|
|
27273
27273
|
if (fields.length === 1 && dbSources.length === 1) {
|
|
27274
27274
|
const dbType = (_a = dbSources[0]) === null || _a === void 0 ? void 0 : _a.parseType(scope.getRegistry());
|
|
27275
27275
|
if (dbType === undefined) {
|
|
@@ -27310,8 +27310,36 @@ class Select {
|
|
|
27310
27310
|
}
|
|
27311
27311
|
}
|
|
27312
27312
|
}
|
|
27313
|
+
else if (dbSources.length === 1) {
|
|
27314
|
+
const dbType = (_d = dbSources[0]) === null || _d === void 0 ? void 0 : _d.parseType(scope.getRegistry());
|
|
27315
|
+
if (dbType === undefined) {
|
|
27316
|
+
const name = ((_e = dbSources[0]) === null || _e === void 0 ? void 0 : _e.getName()) || "buildStructureTypeError";
|
|
27317
|
+
if (scope.getRegistry().inErrorNamespace(name) === true) {
|
|
27318
|
+
return new basic_1.UnknownType("Select, " + name + " not found");
|
|
27319
|
+
}
|
|
27320
|
+
else {
|
|
27321
|
+
return basic_1.VoidType.get((_f = dbSources[0]) === null || _f === void 0 ? void 0 : _f.getName());
|
|
27322
|
+
}
|
|
27323
|
+
}
|
|
27324
|
+
if (!(dbType instanceof basic_1.StructureType)) {
|
|
27325
|
+
return basic_1.VoidType.get("SELECT_todo14");
|
|
27326
|
+
}
|
|
27327
|
+
const allFieldsSimple = fields.every(f => isSimple.test(f.code));
|
|
27328
|
+
if (allFieldsSimple === true) {
|
|
27329
|
+
const components = [];
|
|
27330
|
+
for (const field of fields) {
|
|
27331
|
+
const type = dbType.getComponentByName(field.code);
|
|
27332
|
+
if (type === undefined) {
|
|
27333
|
+
return basic_1.VoidType.get("SELECT_todo9");
|
|
27334
|
+
}
|
|
27335
|
+
components.push({ name: field.as || field.code, type });
|
|
27336
|
+
}
|
|
27337
|
+
return new basic_1.StructureType(components);
|
|
27338
|
+
}
|
|
27339
|
+
return basic_1.VoidType.get("SELECT_todo12");
|
|
27340
|
+
}
|
|
27313
27341
|
else {
|
|
27314
|
-
return basic_1.VoidType.get("
|
|
27342
|
+
return basic_1.VoidType.get("SELECT_todo13");
|
|
27315
27343
|
}
|
|
27316
27344
|
}
|
|
27317
27345
|
static buildTableType(fields, dbSources, scope) {
|
|
@@ -54555,7 +54583,7 @@ class Registry {
|
|
|
54555
54583
|
}
|
|
54556
54584
|
static abaplintVersion() {
|
|
54557
54585
|
// magic, see build script "version.sh"
|
|
54558
|
-
return "2.115.
|
|
54586
|
+
return "2.115.27";
|
|
54559
54587
|
}
|
|
54560
54588
|
getDDICReferences() {
|
|
54561
54589
|
return this.ddicReferences;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.32",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@abaplint/core": "^2.115.
|
|
31
|
-
"@abaplint/transpiler": "^2.12.
|
|
30
|
+
"@abaplint/core": "^2.115.27",
|
|
31
|
+
"@abaplint/transpiler": "^2.12.32",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.10.13",
|
|
34
34
|
"@types/progress": "^2.0.7",
|