@abaplint/transpiler 2.12.20 → 2.12.22

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.
@@ -113,6 +113,10 @@ class PopulateTables {
113
113
  for (const [key, value] of Object.entries(obj.getParameters())) {
114
114
  ret.push(`INSERT INTO "wwwparams" ("relid", "objid", "name", "value") VALUES ('MI', '${name}', '${this.escape(key)}', '${this.escape(value)}');`);
115
115
  }
116
+ const value = obj.getDataFile()?.getRaw().length.toString() || "0";
117
+ ret.push(`INSERT INTO "wwwparams" ("relid", "objid", "name", "value") VALUES ('MI', '${name}', 'filesize', '${this.escape(value)}');`);
118
+ const desc = obj.getDescription() || "";
119
+ ret.push(`INSERT INTO "wwwparams" ("relid", "objid", "name", "value") VALUES ('MI', '${name}', 'description', '${this.escape(desc)}');`);
116
120
  return ret;
117
121
  }
118
122
  escape(value) {
@@ -7,7 +7,7 @@ const handle_fugr_1 = require("./handlers/handle_fugr");
7
7
  function escapeNamespaceFilename(filename) {
8
8
  // ES modules are resolved and cached as URLs. This means that special characters must be
9
9
  // percent-encoded, such as # with %23 and ? with %3F.
10
- return filename.replace(/\//g, "%23");
10
+ return filename.replace(/\//g, "%23").replace(/\./g, "%2e");
11
11
  }
12
12
  class Initialization {
13
13
  script(reg, dbSetup, options, useImport) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler",
3
- "version": "2.12.20",
3
+ "version": "2.12.22",
4
4
  "description": "Transpiler",
5
5
  "main": "build/src/index.js",
6
6
  "typings": "build/src/index.d.ts",