@abaplint/transpiler-cli 2.5.33 → 2.5.34

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 +6 -9
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -76237,15 +76237,12 @@ class FunctionModuleTranspiler {
76237
76237
  name += "_";
76238
76238
  }
76239
76239
  ret += `let ${name} = INPUT.${direction}?.${name};\n`;
76240
- if (direction === "exporting" || direction === "importing" || direction === "changing") {
76241
- const type = (_c = scope === null || scope === void 0 ? void 0 : scope.findVariable(name)) === null || _c === void 0 ? void 0 : _c.getType();
76242
- if (type !== undefined) {
76243
- // todo, set DEFAULT value
76244
- // todo, check for OPTIONALness and raise exceptions and stuff
76245
- ret += `if (${name} === undefined) {
76246
- ${name} = ${new transpile_types_1.TranspileTypes().toType(type)};
76247
- }\n`;
76248
- }
76240
+ const type = (_c = scope === null || scope === void 0 ? void 0 : scope.findVariable(name)) === null || _c === void 0 ? void 0 : _c.getType();
76241
+ if (type !== undefined && p.optional === true) {
76242
+ // todo, set DEFAULT value
76243
+ ret += `if (${name} === undefined) {
76244
+ ${name} = ${new transpile_types_1.TranspileTypes().toType(type)};
76245
+ }\n`;
76249
76246
  }
76250
76247
  }
76251
76248
  return ret;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.5.33",
3
+ "version": "2.5.34",
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.33",
28
+ "@abaplint/transpiler": "^2.5.34",
29
29
  "@types/glob": "^7.2.0",
30
30
  "glob": "=7.2.0",
31
31
  "@types/progress": "^2.0.5",