@abaplint/transpiler-cli 2.11.72 → 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.
Files changed (2) hide show
  1. package/build/bundle.js +5 -1
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -84117,10 +84117,14 @@ if (e.classic) {
84117
84117
  for (const e of node.findAllExpressions(abaplint.Expressions.ParameterException)) {
84118
84118
  const name = e.getFirstToken().getStr().toUpperCase();
84119
84119
  // todo, also handle SimpleChain,
84120
- const value = e.findFirstExpression(abaplint.Expressions.Integer)?.getFirstToken().getStr().toUpperCase();
84120
+ let value = e.findFirstExpression(abaplint.Expressions.Integer)?.getFirstToken().getStr().toUpperCase();
84121
84121
  if (value === undefined) {
84122
84122
  continue;
84123
84123
  }
84124
+ while (value.substring(0, 1) === "0" && value.length > 1) {
84125
+ // remove leading zeros
84126
+ value = value.substring(1);
84127
+ }
84124
84128
  if (name === "OTHERS") {
84125
84129
  post += `default: abap.builtin.sy.get().subrc.set(${value}); break;\n`;
84126
84130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.11.72",
3
+ "version": "2.11.73",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  "license": "MIT",
29
29
  "devDependencies": {
30
30
  "@abaplint/core": "^2.113.196",
31
- "@abaplint/transpiler": "^2.11.72",
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",