@abaplint/transpiler 1.8.3 → 1.8.7
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.
|
@@ -11,8 +11,18 @@ class HandleDataElement {
|
|
|
11
11
|
return [];
|
|
12
12
|
}
|
|
13
13
|
const type = obj.parseType(reg);
|
|
14
|
+
let fixedValues = undefined;
|
|
15
|
+
if (obj.getDomainName()) {
|
|
16
|
+
const doma = reg.getObject("DOMA", obj.getDomainName());
|
|
17
|
+
if (doma) {
|
|
18
|
+
fixedValues = doma.getFixedValues();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
14
21
|
const chunk = new chunk_1.Chunk().appendString(`abap.DDIC["${obj.getName().toUpperCase()}"] = {
|
|
22
|
+
"objectType": "DTEL",
|
|
15
23
|
"type": ${new transpile_types_1.TranspileTypes().toType(type)},
|
|
24
|
+
"domain": ${JSON.stringify(obj.getDomainName())},
|
|
25
|
+
"fixedValues": ${JSON.stringify(fixedValues)},
|
|
16
26
|
};`);
|
|
17
27
|
const output = {
|
|
18
28
|
object: {
|
|
@@ -13,6 +13,7 @@ class HandleTable {
|
|
|
13
13
|
}
|
|
14
14
|
const type = obj.parseType(reg);
|
|
15
15
|
const chunk = new chunk_1.Chunk().appendString(`abap.DDIC["${obj.getName().toUpperCase()}"] = {
|
|
16
|
+
"objectType": "TABL",
|
|
16
17
|
"type": ${new transpile_types_1.TranspileTypes().toType(type)},
|
|
17
18
|
"keyFields": ${JSON.stringify(obj.listKeys())},
|
|
18
19
|
};`);
|
|
@@ -12,6 +12,7 @@ class HandleTableType {
|
|
|
12
12
|
}
|
|
13
13
|
const type = obj.parseType(reg);
|
|
14
14
|
const chunk = new chunk_1.Chunk().appendString(`abap.DDIC["${obj.getName().toUpperCase()}"] = {
|
|
15
|
+
"objectType": "TTYP",
|
|
15
16
|
"type": ${new transpile_types_1.TranspileTypes().toType(type)},
|
|
16
17
|
};`);
|
|
17
18
|
const output = {
|
package/build/src/validation.js
CHANGED
|
@@ -28,7 +28,7 @@ exports.config = {
|
|
|
28
28
|
},
|
|
29
29
|
"parser_error": true,
|
|
30
30
|
"allowed_object_types": {
|
|
31
|
-
"allowed": ["INTF", "CLAS", "PROG", "DEVC", "TABL", "XSLT", "SICF", "TYPE", "DTEL", "DOMA", "TTYP", "MSAG", "FUGR"],
|
|
31
|
+
"allowed": ["INTF", "CLAS", "PROG", "DEVC", "TABL", "XSLT", "SICF", "NROB", "TYPE", "DTEL", "DOMA", "TTYP", "MSAG", "FUGR"],
|
|
32
32
|
},
|
|
33
33
|
"exit_or_check": {
|
|
34
34
|
"allowCheck": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.7",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"author": "abaplint",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@abaplint/core": "^2.85.
|
|
30
|
+
"@abaplint/core": "^2.85.18",
|
|
31
31
|
"source-map": "^0.7.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|