@abaplint/transpiler 1.8.16 → 1.8.19

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.
@@ -27,7 +27,7 @@ class FieldChainTranspiler {
27
27
  }
28
28
  else if (c.get() instanceof core_1.Expressions.AttributeName) {
29
29
  const interfaceName = traversal.isInterfaceAttribute(c.getFirstToken());
30
- let name = c.getFirstToken().getStr().replace("~", "$");
30
+ let name = c.getFirstToken().getStr().replace("~", "$").toLowerCase();
31
31
  if (prefix && interfaceName && name.startsWith(interfaceName) === false) {
32
32
  name = interfaceName + "$" + name;
33
33
  }
@@ -273,11 +273,11 @@ class Traversal {
273
273
  }
274
274
  // handle aliases after initialization of carrier variables
275
275
  for (const a of def.getAliases().getAll()) {
276
- ret += "this." + a.getName() + " = this." + a.getComponent().replace("~", "$") + ";\n";
276
+ ret += "this." + a.getName().toLowerCase() + " = this." + a.getComponent().replace("~", "$").toLowerCase() + ";\n";
277
277
  }
278
278
  // constants can be accessed both statically and via reference
279
279
  for (const c of def.getAttributes().getConstants()) {
280
- ret += "this." + c.getName() + " = " + def.getName() + "." + c.getName() + ";\n";
280
+ ret += "this." + c.getName().toLowerCase() + " = " + def.getName().toLowerCase() + "." + c.getName().toLowerCase() + ";\n";
281
281
  }
282
282
  return ret;
283
283
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "1.8.16",
3
+ "version": "1.8.19",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "author": "abaplint",
28
28
  "license": "MIT",
29
29
  "dependencies": {
30
- "@abaplint/core": "^2.85.43",
30
+ "@abaplint/core": "^2.85.46",
31
31
  "source-map": "^0.7.3"
32
32
  },
33
33
  "devDependencies": {