@abaplint/transpiler-cli 2.10.54 → 2.10.55
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 +9 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -81913,10 +81913,18 @@ class CallTranspiler {
|
|
|
81913
81913
|
const id = scope?.getParent()?.getParent()?.getIdentifier();
|
|
81914
81914
|
if (id?.stype === abaplint.ScopeType.ClassImplementation
|
|
81915
81915
|
&& m.def.getClassName().toUpperCase() === id.sname.toUpperCase()) {
|
|
81916
|
+
ms = ms.replace("await this.me.get().", "await this.");
|
|
81916
81917
|
ms = ms.replace("await this.", "await this.#");
|
|
81917
81918
|
}
|
|
81918
81919
|
else {
|
|
81919
|
-
|
|
81920
|
+
if (ms.includes(".get().")) {
|
|
81921
|
+
let last = ms.split(".");
|
|
81922
|
+
last = last[last.length - 1];
|
|
81923
|
+
ms = ms.replace(".get()." + last, ".get().FRIENDS_ACCESS['" + last + "']");
|
|
81924
|
+
}
|
|
81925
|
+
else {
|
|
81926
|
+
throw new Error("CallTranspiler, todo, refactor CALL");
|
|
81927
|
+
}
|
|
81920
81928
|
}
|
|
81921
81929
|
}
|
|
81922
81930
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.55",
|
|
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.117",
|
|
31
|
-
"@abaplint/transpiler": "^2.10.
|
|
31
|
+
"@abaplint/transpiler": "^2.10.55",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^22.15.19",
|
|
34
34
|
"@types/progress": "^2.0.7",
|