@abaplint/transpiler 2.3.17 → 2.3.18

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.
@@ -48,7 +48,8 @@ class FunctionModuleTranspiler {
48
48
  else if (direction === "exporting") {
49
49
  direction = "importing";
50
50
  }
51
- ret += `let ${p.name.toLowerCase()} = INPUT.${direction}.${p.name.toLowerCase()};\n`;
51
+ // note: all directions are optional
52
+ ret += `let ${p.name.toLowerCase()} = INPUT.${direction}?.${p.name.toLowerCase()};\n`;
52
53
  }
53
54
  return ret;
54
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.3.17",
3
+ "version": "2.3.18",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",