@abaplint/transpiler 2.12.18 → 2.12.19
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.
|
@@ -6,6 +6,7 @@ export declare class PopulateTables {
|
|
|
6
6
|
private readonly hasSEOSUBCOTX;
|
|
7
7
|
private readonly hasT000;
|
|
8
8
|
private readonly hasT100;
|
|
9
|
+
private readonly hasWWWPARAMS;
|
|
9
10
|
constructor(reg: abaplint.IRegistry);
|
|
10
11
|
insertREPOSRC(obj: abaplint.Objects.Class | abaplint.Objects.Interface): string;
|
|
11
12
|
insertT100(msag: abaplint.Objects.MessageClass): string[];
|
|
@@ -13,5 +14,6 @@ export declare class PopulateTables {
|
|
|
13
14
|
insertSEOSUBCODF(obj: abaplint.Objects.Class | abaplint.Objects.Interface): string[];
|
|
14
15
|
insertSEOSUBCOTX(obj: abaplint.Objects.Class | abaplint.Objects.Interface): string[];
|
|
15
16
|
insertT000(): string;
|
|
17
|
+
insertWWWPARAMS(obj: abaplint.Objects.WebMIME): string[];
|
|
16
18
|
private escape;
|
|
17
19
|
}
|
|
@@ -8,6 +8,7 @@ class PopulateTables {
|
|
|
8
8
|
hasSEOSUBCOTX;
|
|
9
9
|
hasT000;
|
|
10
10
|
hasT100;
|
|
11
|
+
hasWWWPARAMS;
|
|
11
12
|
constructor(reg) {
|
|
12
13
|
this.hasREPOSRC = reg.getObject("TABL", "REPOSRC") !== undefined;
|
|
13
14
|
this.hasSEOSUBCO = reg.getObject("TABL", "SEOSUBCO") !== undefined;
|
|
@@ -15,6 +16,7 @@ class PopulateTables {
|
|
|
15
16
|
this.hasSEOSUBCOTX = reg.getObject("TABL", "SEOSUBCOTX") !== undefined;
|
|
16
17
|
this.hasT000 = reg.getObject("TABL", "T000") !== undefined;
|
|
17
18
|
this.hasT100 = reg.getObject("TABL", "T100") !== undefined;
|
|
19
|
+
this.hasWWWPARAMS = reg.getObject("TABL", "WWWPARAMS") !== undefined;
|
|
18
20
|
}
|
|
19
21
|
insertREPOSRC(obj) {
|
|
20
22
|
if (!this.hasREPOSRC) {
|
|
@@ -102,6 +104,17 @@ class PopulateTables {
|
|
|
102
104
|
// todo, this should take the client number from the json abap_transpile.json settings
|
|
103
105
|
return `INSERT INTO t000 ("mandt", "cccategory", "ccnocliind") VALUES ('123', '', '');`;
|
|
104
106
|
}
|
|
107
|
+
insertWWWPARAMS(obj) {
|
|
108
|
+
if (!this.hasWWWPARAMS) {
|
|
109
|
+
return [];
|
|
110
|
+
}
|
|
111
|
+
const ret = [];
|
|
112
|
+
const name = obj.getName().toUpperCase();
|
|
113
|
+
for (const [key, value] of Object.entries(obj.getParameters())) {
|
|
114
|
+
ret.push(`INSERT INTO "wwwparams" ("relid", "objid", "name", "value") VALUES ('MI', '${name}', '${this.escape(key)}', '${this.escape(value)}');`);
|
|
115
|
+
}
|
|
116
|
+
return ret;
|
|
117
|
+
}
|
|
105
118
|
escape(value) {
|
|
106
119
|
let ret = value.replace(/\'/g, "''");
|
|
107
120
|
// statements are inside a javascript string stemplate
|
package/build/src/types.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export interface ITranspilerOptions {
|
|
|
69
69
|
seosubcodf?: boolean;
|
|
70
70
|
/** insert into SEOSUBCOTX, skips if equals false */
|
|
71
71
|
seosubcotx?: boolean;
|
|
72
|
+
/** insert into SEOSUBCOTX, skips if equals false */
|
|
73
|
+
wwwparams?: boolean;
|
|
72
74
|
};
|
|
73
75
|
/** ignore source map */
|
|
74
76
|
ignoreSourceMap?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.19",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@abaplint/core": "^2.114.
|
|
32
|
+
"@abaplint/core": "^2.114.10",
|
|
33
33
|
"source-map": "^0.7.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|