@abaplint/transpiler-cli 2.12.19 → 2.12.21

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 +8 -0
  2. package/package.json +2 -2
package/build/bundle.js CHANGED
@@ -78291,6 +78291,10 @@ class DatabaseSetup {
78291
78291
  if (obj instanceof abaplint.Objects.MessageClass) {
78292
78292
  insert.push(...populateTables.insertT100(obj));
78293
78293
  }
78294
+ else if (options?.populateTables?.wwwparams !== false
78295
+ && obj instanceof abaplint.Objects.WebMIME) {
78296
+ insert.push(...populateTables.insertWWWPARAMS(obj));
78297
+ }
78294
78298
  else if (obj instanceof abaplint.Objects.Class
78295
78299
  || obj instanceof abaplint.Objects.Interface) {
78296
78300
  if (options?.populateTables?.reposrc !== false) {
@@ -78438,6 +78442,10 @@ class PopulateTables {
78438
78442
  for (const [key, value] of Object.entries(obj.getParameters())) {
78439
78443
  ret.push(`INSERT INTO "wwwparams" ("relid", "objid", "name", "value") VALUES ('MI', '${name}', '${this.escape(key)}', '${this.escape(value)}');`);
78440
78444
  }
78445
+ const value = obj.getDataFile()?.getRaw().length.toString() || "0";
78446
+ ret.push(`INSERT INTO "wwwparams" ("relid", "objid", "name", "value") VALUES ('MI', '${name}', 'filesize', '${this.escape(value)}');`);
78447
+ const desc = obj.getDescription() || "";
78448
+ ret.push(`INSERT INTO "wwwparams" ("relid", "objid", "name", "value") VALUES ('MI', '${name}', 'description', '${this.escape(desc)}');`);
78441
78449
  return ret;
78442
78450
  }
78443
78451
  escape(value) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.12.19",
3
+ "version": "2.12.21",
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.114.10",
31
- "@abaplint/transpiler": "^2.12.19",
31
+ "@abaplint/transpiler": "^2.12.21",
32
32
  "@types/glob": "^8.1.0",
33
33
  "@types/node": "^24.10.3",
34
34
  "@types/progress": "^2.0.7",