@abaplint/transpiler-cli 2.10.51 → 2.10.52
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 +16 -19
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -80864,16 +80864,16 @@ class Initialization {
|
|
|
80864
80864
|
let ret = "";
|
|
80865
80865
|
if (useImport === true) {
|
|
80866
80866
|
ret = `/* eslint-disable import/newline-after-import */
|
|
80867
|
-
|
|
80867
|
+
import "./_top.mjs";\n`;
|
|
80868
80868
|
}
|
|
80869
80869
|
else {
|
|
80870
80870
|
ret = `/* eslint-disable import/newline-after-import */
|
|
80871
|
-
|
|
80872
|
-
|
|
80871
|
+
import runtime from "@abaplint/runtime";
|
|
80872
|
+
globalThis.abap = new runtime.ABAP();\n`;
|
|
80873
80873
|
}
|
|
80874
80874
|
ret += `${this.buildImports(reg, useImport)}
|
|
80875
80875
|
|
|
80876
|
-
|
|
80876
|
+
export async function initializeABAP() {\n`;
|
|
80877
80877
|
ret += ` const sqlite = [];\n`;
|
|
80878
80878
|
for (const i of dbSetup.schemas.sqlite) {
|
|
80879
80879
|
ret += ` sqlite.push(\`${i}\`);\n`;
|
|
@@ -80931,21 +80931,18 @@ class Initialization {
|
|
|
80931
80931
|
}
|
|
80932
80932
|
}
|
|
80933
80933
|
for (const obj of reg.getObjects()) {
|
|
80934
|
-
|
|
80935
|
-
|
|
80936
|
-
|
|
80937
|
-
|
|
80938
|
-
|
|
80939
|
-
|
|
80940
|
-
|
|
80941
|
-
|
|
80942
|
-
|
|
80943
|
-
|
|
80944
|
-
|
|
80945
|
-
|
|
80946
|
-
}
|
|
80947
|
-
else if (obj instanceof abaplint.Objects.Interface) {
|
|
80948
|
-
list.push(imp(`${escapeNamespaceFilename(obj.getName().toLowerCase())}.${obj.getType().toLowerCase()}`));
|
|
80934
|
+
const name = imp(`${escapeNamespaceFilename(obj.getName().toLowerCase())}.${obj.getType().toLowerCase()}`);
|
|
80935
|
+
if (obj instanceof abaplint.Objects.Class
|
|
80936
|
+
&& obj.getName().toUpperCase() !== "CL_ABAP_CHAR_UTILITIES"
|
|
80937
|
+
&& this.hasClassConstructor(reg, obj)) {
|
|
80938
|
+
// this will not solve all problems with class constructors 100%, but probably good enough
|
|
80939
|
+
late.push(name);
|
|
80940
|
+
}
|
|
80941
|
+
else if (obj instanceof abaplint.Objects.Interface
|
|
80942
|
+
|| obj instanceof abaplint.Objects.FunctionGroup
|
|
80943
|
+
|| obj instanceof abaplint.Objects.Program
|
|
80944
|
+
|| obj instanceof abaplint.Objects.Class) {
|
|
80945
|
+
list.push(name);
|
|
80949
80946
|
}
|
|
80950
80947
|
}
|
|
80951
80948
|
return [...list.sort(), ...late].join("\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.52",
|
|
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.114",
|
|
31
|
-
"@abaplint/transpiler": "^2.10.
|
|
31
|
+
"@abaplint/transpiler": "^2.10.52",
|
|
32
32
|
"@types/glob": "^8.1.0",
|
|
33
33
|
"@types/node": "^22.15.18",
|
|
34
34
|
"@types/progress": "^2.0.7",
|