@abaplint/transpiler-cli 2.5.1 → 2.5.2
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 +38 -6
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -69408,15 +69408,16 @@ exports.HandleSMIM = void 0;
|
|
|
69408
69408
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
69409
69409
|
class HandleSMIM {
|
|
69410
69410
|
runObject(obj, _reg) {
|
|
69411
|
-
var _a
|
|
69411
|
+
var _a;
|
|
69412
69412
|
const filename = (_a = obj.getXMLFile()) === null || _a === void 0 ? void 0 : _a.getFilename().replace(".xml", ".mjs").toLowerCase();
|
|
69413
69413
|
if (filename === undefined) {
|
|
69414
69414
|
return [];
|
|
69415
69415
|
}
|
|
69416
69416
|
obj.parse();
|
|
69417
|
+
const dataFile = obj.getDataFile();
|
|
69417
69418
|
const chunk = new chunk_1.Chunk().appendString(`abap.SMIM["${obj.getName().toUpperCase()}"] = {
|
|
69418
69419
|
"objectType": "SMIM",
|
|
69419
|
-
"filename": ${JSON.stringify(
|
|
69420
|
+
"filename": ${JSON.stringify(dataFile === null || dataFile === void 0 ? void 0 : dataFile.getFilename())},
|
|
69420
69421
|
"url": ${JSON.stringify(obj.getURL())},
|
|
69421
69422
|
"class": ${JSON.stringify(obj.getClass())},
|
|
69422
69423
|
};`);
|
|
@@ -69430,7 +69431,21 @@ class HandleSMIM {
|
|
|
69430
69431
|
requires: [],
|
|
69431
69432
|
exports: [],
|
|
69432
69433
|
};
|
|
69433
|
-
|
|
69434
|
+
const ret = [output];
|
|
69435
|
+
if (dataFile) {
|
|
69436
|
+
const data = {
|
|
69437
|
+
object: {
|
|
69438
|
+
name: obj.getName(),
|
|
69439
|
+
type: obj.getType(),
|
|
69440
|
+
},
|
|
69441
|
+
filename: dataFile === null || dataFile === void 0 ? void 0 : dataFile.getFilename(),
|
|
69442
|
+
chunk: new chunk_1.Chunk().appendString(dataFile === null || dataFile === void 0 ? void 0 : dataFile.getRaw()),
|
|
69443
|
+
requires: [],
|
|
69444
|
+
exports: [],
|
|
69445
|
+
};
|
|
69446
|
+
ret.push(data);
|
|
69447
|
+
}
|
|
69448
|
+
return ret;
|
|
69434
69449
|
}
|
|
69435
69450
|
}
|
|
69436
69451
|
exports.HandleSMIM = HandleSMIM;
|
|
@@ -69630,15 +69645,16 @@ exports.HandleW3MI = void 0;
|
|
|
69630
69645
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
69631
69646
|
class HandleW3MI {
|
|
69632
69647
|
runObject(obj, _reg) {
|
|
69633
|
-
var _a
|
|
69648
|
+
var _a;
|
|
69634
69649
|
const filename = (_a = obj.getXMLFile()) === null || _a === void 0 ? void 0 : _a.getFilename().replace(".xml", ".mjs").toLowerCase();
|
|
69635
69650
|
if (filename === undefined) {
|
|
69636
69651
|
return [];
|
|
69637
69652
|
}
|
|
69638
69653
|
obj.parse();
|
|
69654
|
+
const dataFile = obj.getDataFile();
|
|
69639
69655
|
const chunk = new chunk_1.Chunk().appendString(`abap.W3MI["${obj.getName().toUpperCase()}"] = {
|
|
69640
69656
|
"objectType": "W3MI",
|
|
69641
|
-
"filename": ${JSON.stringify(
|
|
69657
|
+
"filename": ${JSON.stringify(dataFile === null || dataFile === void 0 ? void 0 : dataFile.getFilename())},
|
|
69642
69658
|
};`);
|
|
69643
69659
|
const output = {
|
|
69644
69660
|
object: {
|
|
@@ -69650,7 +69666,21 @@ class HandleW3MI {
|
|
|
69650
69666
|
requires: [],
|
|
69651
69667
|
exports: [],
|
|
69652
69668
|
};
|
|
69653
|
-
|
|
69669
|
+
const ret = [output];
|
|
69670
|
+
if (dataFile) {
|
|
69671
|
+
const data = {
|
|
69672
|
+
object: {
|
|
69673
|
+
name: obj.getName(),
|
|
69674
|
+
type: obj.getType(),
|
|
69675
|
+
},
|
|
69676
|
+
filename: dataFile === null || dataFile === void 0 ? void 0 : dataFile.getFilename(),
|
|
69677
|
+
chunk: new chunk_1.Chunk().appendString(dataFile === null || dataFile === void 0 ? void 0 : dataFile.getRaw()),
|
|
69678
|
+
requires: [],
|
|
69679
|
+
exports: [],
|
|
69680
|
+
};
|
|
69681
|
+
ret.push(data);
|
|
69682
|
+
}
|
|
69683
|
+
return ret;
|
|
69654
69684
|
}
|
|
69655
69685
|
}
|
|
69656
69686
|
exports.HandleW3MI = HandleW3MI;
|
|
@@ -90099,6 +90129,8 @@ function writeObjects(objects, writeSourceMaps, outputFolder, files) {
|
|
|
90099
90129
|
if (writeSourceMaps === true
|
|
90100
90130
|
&& o.object.type.toUpperCase() !== "TABL"
|
|
90101
90131
|
&& o.object.type.toUpperCase() !== "DTEL"
|
|
90132
|
+
&& o.object.type.toUpperCase() !== "W3MI"
|
|
90133
|
+
&& o.object.type.toUpperCase() !== "SMIM"
|
|
90102
90134
|
&& o.object.type.toUpperCase() !== "ENQU"
|
|
90103
90135
|
&& o.object.type.toUpperCase() !== "TTYP") {
|
|
90104
90136
|
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.2",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.5.
|
|
28
|
+
"@abaplint/transpiler": "^2.5.2",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|