@abaplint/transpiler-cli 2.11.71 → 2.11.73
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 +13 -2
- package/package.json +3 -3
package/build/bundle.js
CHANGED
|
@@ -45488,6 +45488,13 @@ class AbstractObject {
|
|
|
45488
45488
|
}
|
|
45489
45489
|
addFile(file) {
|
|
45490
45490
|
this.setDirty();
|
|
45491
|
+
// update if it already exists
|
|
45492
|
+
for (let i = 0; i < this.files.length; i++) {
|
|
45493
|
+
if (this.files[i].getFilename() === file.getFilename()) {
|
|
45494
|
+
this.files[i] = file;
|
|
45495
|
+
return;
|
|
45496
|
+
}
|
|
45497
|
+
}
|
|
45491
45498
|
this.files.push(file);
|
|
45492
45499
|
}
|
|
45493
45500
|
getFiles() {
|
|
@@ -53878,7 +53885,7 @@ class Registry {
|
|
|
53878
53885
|
}
|
|
53879
53886
|
static abaplintVersion() {
|
|
53880
53887
|
// magic, see build script "version.sh"
|
|
53881
|
-
return "2.113.
|
|
53888
|
+
return "2.113.196";
|
|
53882
53889
|
}
|
|
53883
53890
|
getDDICReferences() {
|
|
53884
53891
|
return this.ddicReferences;
|
|
@@ -84110,10 +84117,14 @@ if (e.classic) {
|
|
|
84110
84117
|
for (const e of node.findAllExpressions(abaplint.Expressions.ParameterException)) {
|
|
84111
84118
|
const name = e.getFirstToken().getStr().toUpperCase();
|
|
84112
84119
|
// todo, also handle SimpleChain,
|
|
84113
|
-
|
|
84120
|
+
let value = e.findFirstExpression(abaplint.Expressions.Integer)?.getFirstToken().getStr().toUpperCase();
|
|
84114
84121
|
if (value === undefined) {
|
|
84115
84122
|
continue;
|
|
84116
84123
|
}
|
|
84124
|
+
while (value.substring(0, 1) === "0" && value.length > 1) {
|
|
84125
|
+
// remove leading zeros
|
|
84126
|
+
value = value.substring(1);
|
|
84127
|
+
}
|
|
84117
84128
|
if (name === "OTHERS") {
|
|
84118
84129
|
post += `default: abap.builtin.sy.get().subrc.set(${value}); break;\n`;
|
|
84119
84130
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.73",
|
|
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.113.
|
|
31
|
-
"@abaplint/transpiler": "^2.11.
|
|
30
|
+
"@abaplint/core": "^2.113.196",
|
|
31
|
+
"@abaplint/transpiler": "^2.11.73",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^24.3.1",
|
|
34
34
|
"@types/progress": "^2.0.7",
|