@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.
Files changed (2) hide show
  1. package/build/bundle.js +16 -19
  2. 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
- import "./_top.mjs";\n`;
80867
+ import "./_top.mjs";\n`;
80868
80868
  }
80869
80869
  else {
80870
80870
  ret = `/* eslint-disable import/newline-after-import */
80871
- import runtime from "@abaplint/runtime";
80872
- globalThis.abap = new runtime.ABAP();\n`;
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
- export async function initializeABAP() {\n`;
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
- if (obj instanceof abaplint.Objects.FunctionGroup) {
80935
- list.push(imp(`${escapeNamespaceFilename(obj.getName().toLowerCase())}.fugr`));
80936
- }
80937
- else if (obj instanceof abaplint.Objects.Class) {
80938
- if (obj.getName().toUpperCase() !== "CL_ABAP_CHAR_UTILITIES"
80939
- && this.hasClassConstructor(reg, obj)) {
80940
- // this will not solve all problems with class constors 100%, but probably good enough
80941
- late.push(imp(`${escapeNamespaceFilename(obj.getName().toLowerCase())}.${obj.getType().toLowerCase()}`));
80942
- }
80943
- else {
80944
- list.push(imp(`${escapeNamespaceFilename(obj.getName().toLowerCase())}.${obj.getType().toLowerCase()}`));
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.51",
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.51",
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",