@abaplint/transpiler-cli 2.5.1 → 2.5.3
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 +69 -10
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -35622,7 +35622,7 @@ const __1 = __webpack_require__(/*! ../.. */ "./node_modules/@abaplint/core/buil
|
|
|
35622
35622
|
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
35623
35623
|
class CDSDefineProjection extends combi_1.Expression {
|
|
35624
35624
|
getRunnable() {
|
|
35625
|
-
return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, (0, combi_1.opt)(
|
|
35625
|
+
return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, (0, combi_1.opt)(_1.CDSProviderContract), "AS PROJECTION ON", _1.CDSName, (0, combi_1.opt)(_1.CDSAs), (0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
|
|
35626
35626
|
}
|
|
35627
35627
|
}
|
|
35628
35628
|
exports.CDSDefineProjection = CDSDefineProjection;
|
|
@@ -35672,7 +35672,7 @@ const cds_as_1 = __webpack_require__(/*! ./cds_as */ "./node_modules/@abaplint/c
|
|
|
35672
35672
|
const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_cast.js");
|
|
35673
35673
|
class CDSElement extends combi_1.Expression {
|
|
35674
35674
|
getRunnable() {
|
|
35675
|
-
return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSFunction, _1.CDSArithmetics, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters)))), (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
|
|
35675
|
+
return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSFunction, _1.CDSArithmetics, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)(_1.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName), (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters)))), (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
|
|
35676
35676
|
}
|
|
35677
35677
|
}
|
|
35678
35678
|
exports.CDSElement = CDSElement;
|
|
@@ -35862,6 +35862,27 @@ exports.CDSParametersSelect = CDSParametersSelect;
|
|
|
35862
35862
|
|
|
35863
35863
|
/***/ }),
|
|
35864
35864
|
|
|
35865
|
+
/***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js":
|
|
35866
|
+
/*!****************************************************************************************!*\
|
|
35867
|
+
!*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js ***!
|
|
35868
|
+
\****************************************************************************************/
|
|
35869
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
35870
|
+
|
|
35871
|
+
"use strict";
|
|
35872
|
+
|
|
35873
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
35874
|
+
exports.CDSProviderContract = void 0;
|
|
35875
|
+
const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
|
|
35876
|
+
class CDSProviderContract extends combi_1.Expression {
|
|
35877
|
+
getRunnable() {
|
|
35878
|
+
return (0, combi_1.seq)("PROVIDER CONTRACT", (0, combi_1.alt)("TRANSACTIONAL_QUERY", "TRANSACTIONAL_INTERFACE", "ANALYTICAL_QUERY"));
|
|
35879
|
+
}
|
|
35880
|
+
}
|
|
35881
|
+
exports.CDSProviderContract = CDSProviderContract;
|
|
35882
|
+
//# sourceMappingURL=cds_provider_contract.js.map
|
|
35883
|
+
|
|
35884
|
+
/***/ }),
|
|
35885
|
+
|
|
35865
35886
|
/***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_relation.js":
|
|
35866
35887
|
/*!*******************************************************************************!*\
|
|
35867
35888
|
!*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_relation.js ***!
|
|
@@ -36065,6 +36086,7 @@ __exportStar(__webpack_require__(/*! ./cds_define_view */ "./node_modules/@abapl
|
|
|
36065
36086
|
__exportStar(__webpack_require__(/*! ./cds_element */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_element.js"), exports);
|
|
36066
36087
|
__exportStar(__webpack_require__(/*! ./cds_function */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_function.js"), exports);
|
|
36067
36088
|
__exportStar(__webpack_require__(/*! ./cds_group_by */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_group_by.js"), exports);
|
|
36089
|
+
__exportStar(__webpack_require__(/*! ./cds_provider_contract */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js"), exports);
|
|
36068
36090
|
__exportStar(__webpack_require__(/*! ./cds_integer */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_integer.js"), exports);
|
|
36069
36091
|
__exportStar(__webpack_require__(/*! ./cds_join */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_join.js"), exports);
|
|
36070
36092
|
__exportStar(__webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js"), exports);
|
|
@@ -40977,7 +40999,12 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
|
|
|
40977
40999
|
let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
|
|
40978
41000
|
if (found === undefined) {
|
|
40979
41001
|
const list = e.findDirectExpressions(expressions_1.CDSName);
|
|
40980
|
-
|
|
41002
|
+
if (e.concatTokens().toUpperCase().includes(" REDIRECTED TO ")) {
|
|
41003
|
+
found = list[0];
|
|
41004
|
+
}
|
|
41005
|
+
else {
|
|
41006
|
+
found = list[list.length - 1];
|
|
41007
|
+
}
|
|
40981
41008
|
}
|
|
40982
41009
|
if (found === undefined) {
|
|
40983
41010
|
continue;
|
|
@@ -45986,7 +46013,7 @@ class Registry {
|
|
|
45986
46013
|
}
|
|
45987
46014
|
static abaplintVersion() {
|
|
45988
46015
|
// magic, see build script "version.sh"
|
|
45989
|
-
return "2.95.
|
|
46016
|
+
return "2.95.22";
|
|
45990
46017
|
}
|
|
45991
46018
|
getDDICReferences() {
|
|
45992
46019
|
return this.references;
|
|
@@ -69408,15 +69435,16 @@ exports.HandleSMIM = void 0;
|
|
|
69408
69435
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
69409
69436
|
class HandleSMIM {
|
|
69410
69437
|
runObject(obj, _reg) {
|
|
69411
|
-
var _a
|
|
69438
|
+
var _a;
|
|
69412
69439
|
const filename = (_a = obj.getXMLFile()) === null || _a === void 0 ? void 0 : _a.getFilename().replace(".xml", ".mjs").toLowerCase();
|
|
69413
69440
|
if (filename === undefined) {
|
|
69414
69441
|
return [];
|
|
69415
69442
|
}
|
|
69416
69443
|
obj.parse();
|
|
69444
|
+
const dataFile = obj.getDataFile();
|
|
69417
69445
|
const chunk = new chunk_1.Chunk().appendString(`abap.SMIM["${obj.getName().toUpperCase()}"] = {
|
|
69418
69446
|
"objectType": "SMIM",
|
|
69419
|
-
"filename": ${JSON.stringify(
|
|
69447
|
+
"filename": ${JSON.stringify(dataFile === null || dataFile === void 0 ? void 0 : dataFile.getFilename())},
|
|
69420
69448
|
"url": ${JSON.stringify(obj.getURL())},
|
|
69421
69449
|
"class": ${JSON.stringify(obj.getClass())},
|
|
69422
69450
|
};`);
|
|
@@ -69430,7 +69458,21 @@ class HandleSMIM {
|
|
|
69430
69458
|
requires: [],
|
|
69431
69459
|
exports: [],
|
|
69432
69460
|
};
|
|
69433
|
-
|
|
69461
|
+
const ret = [output];
|
|
69462
|
+
if (dataFile) {
|
|
69463
|
+
const data = {
|
|
69464
|
+
object: {
|
|
69465
|
+
name: obj.getName(),
|
|
69466
|
+
type: obj.getType(),
|
|
69467
|
+
},
|
|
69468
|
+
filename: dataFile === null || dataFile === void 0 ? void 0 : dataFile.getFilename(),
|
|
69469
|
+
chunk: new chunk_1.Chunk().appendString(dataFile === null || dataFile === void 0 ? void 0 : dataFile.getRaw()),
|
|
69470
|
+
requires: [],
|
|
69471
|
+
exports: [],
|
|
69472
|
+
};
|
|
69473
|
+
ret.push(data);
|
|
69474
|
+
}
|
|
69475
|
+
return ret;
|
|
69434
69476
|
}
|
|
69435
69477
|
}
|
|
69436
69478
|
exports.HandleSMIM = HandleSMIM;
|
|
@@ -69630,15 +69672,16 @@ exports.HandleW3MI = void 0;
|
|
|
69630
69672
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
69631
69673
|
class HandleW3MI {
|
|
69632
69674
|
runObject(obj, _reg) {
|
|
69633
|
-
var _a
|
|
69675
|
+
var _a;
|
|
69634
69676
|
const filename = (_a = obj.getXMLFile()) === null || _a === void 0 ? void 0 : _a.getFilename().replace(".xml", ".mjs").toLowerCase();
|
|
69635
69677
|
if (filename === undefined) {
|
|
69636
69678
|
return [];
|
|
69637
69679
|
}
|
|
69638
69680
|
obj.parse();
|
|
69681
|
+
const dataFile = obj.getDataFile();
|
|
69639
69682
|
const chunk = new chunk_1.Chunk().appendString(`abap.W3MI["${obj.getName().toUpperCase()}"] = {
|
|
69640
69683
|
"objectType": "W3MI",
|
|
69641
|
-
"filename": ${JSON.stringify(
|
|
69684
|
+
"filename": ${JSON.stringify(dataFile === null || dataFile === void 0 ? void 0 : dataFile.getFilename())},
|
|
69642
69685
|
};`);
|
|
69643
69686
|
const output = {
|
|
69644
69687
|
object: {
|
|
@@ -69650,7 +69693,21 @@ class HandleW3MI {
|
|
|
69650
69693
|
requires: [],
|
|
69651
69694
|
exports: [],
|
|
69652
69695
|
};
|
|
69653
|
-
|
|
69696
|
+
const ret = [output];
|
|
69697
|
+
if (dataFile) {
|
|
69698
|
+
const data = {
|
|
69699
|
+
object: {
|
|
69700
|
+
name: obj.getName(),
|
|
69701
|
+
type: obj.getType(),
|
|
69702
|
+
},
|
|
69703
|
+
filename: dataFile === null || dataFile === void 0 ? void 0 : dataFile.getFilename(),
|
|
69704
|
+
chunk: new chunk_1.Chunk().appendString(dataFile === null || dataFile === void 0 ? void 0 : dataFile.getRaw()),
|
|
69705
|
+
requires: [],
|
|
69706
|
+
exports: [],
|
|
69707
|
+
};
|
|
69708
|
+
ret.push(data);
|
|
69709
|
+
}
|
|
69710
|
+
return ret;
|
|
69654
69711
|
}
|
|
69655
69712
|
}
|
|
69656
69713
|
exports.HandleW3MI = HandleW3MI;
|
|
@@ -90099,6 +90156,8 @@ function writeObjects(objects, writeSourceMaps, outputFolder, files) {
|
|
|
90099
90156
|
if (writeSourceMaps === true
|
|
90100
90157
|
&& o.object.type.toUpperCase() !== "TABL"
|
|
90101
90158
|
&& o.object.type.toUpperCase() !== "DTEL"
|
|
90159
|
+
&& o.object.type.toUpperCase() !== "W3MI"
|
|
90160
|
+
&& o.object.type.toUpperCase() !== "SMIM"
|
|
90102
90161
|
&& o.object.type.toUpperCase() !== "ENQU"
|
|
90103
90162
|
&& o.object.type.toUpperCase() !== "TTYP") {
|
|
90104
90163
|
const name = o.filename + ".map";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.5.
|
|
28
|
+
"@abaplint/transpiler": "^2.5.3",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|
|
32
|
-
"@abaplint/core": "^2.95.
|
|
32
|
+
"@abaplint/core": "^2.95.22",
|
|
33
33
|
"progress": "^2.0.3",
|
|
34
34
|
"webpack": "^5.75.0",
|
|
35
35
|
"webpack-cli": "^5.0.1",
|