@abaplint/transpiler-cli 2.10.32 → 2.10.33
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 -5
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -89096,16 +89096,20 @@ async function run() {
|
|
|
89096
89096
|
ret += ` meth.skip();\n`;
|
|
89097
89097
|
continue;
|
|
89098
89098
|
}
|
|
89099
|
+
const callSpecial = (name) => {
|
|
89100
|
+
let ret = "";
|
|
89101
|
+
ret += ` if (test.${name}) await test.${name}();\n`;
|
|
89102
|
+
ret += ` if (test.FRIENDS_ACCESS_INSTANCE.${name}) await test.FRIENDS_ACCESS_INSTANCE.${name}();\n`;
|
|
89103
|
+
ret += ` if (test.FRIENDS_ACCESS_INSTANCE.SUPER && test.FRIENDS_ACCESS_INSTANCE.SUPER.${name}) await test.FRIENDS_ACCESS_INSTANCE.SUPER.${name}();\n`;
|
|
89104
|
+
return ret;
|
|
89105
|
+
};
|
|
89099
89106
|
ret += ` {\n const test = await (new ${lc}()).constructor_();\n`;
|
|
89100
|
-
|
|
89101
|
-
ret += ` if (test.setup) await test.setup();\n`;
|
|
89102
|
-
ret += ` if (test.FRIENDS_ACCESS_INSTANCE.setup) await test.FRIENDS_ACCESS_INSTANCE.setup();\n`;
|
|
89103
|
-
ret += ` if (test.FRIENDS_ACCESS_INSTANCE.SUPER && test.FRIENDS_ACCESS_INSTANCE.SUPER.setup) await test.FRIENDS_ACCESS_INSTANCE.SUPER.setup();\n`;
|
|
89107
|
+
ret += callSpecial("setup");
|
|
89104
89108
|
ret += ` console.log("${st.obj.getName()}: running ${lc}->${m}");\n`;
|
|
89105
89109
|
ret += ` meth = locl.addMethod("${m}");\n`;
|
|
89106
89110
|
ret += ` await test.FRIENDS_ACCESS_INSTANCE.${m}();\n`;
|
|
89107
89111
|
ret += ` meth.pass();\n`;
|
|
89108
|
-
ret +=
|
|
89112
|
+
ret += callSpecial("teardown");
|
|
89109
89113
|
ret += ` }\n`;
|
|
89110
89114
|
}
|
|
89111
89115
|
ret += ` if (${lc}.class_teardown) await ${lc}.class_teardown();\n`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.33",
|
|
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.108",
|
|
31
|
-
"@abaplint/transpiler": "^2.10.
|
|
31
|
+
"@abaplint/transpiler": "^2.10.33",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^22.13.13",
|
|
34
34
|
"@types/progress": "^2.0.7",
|