@abaplint/transpiler 2.7.140 → 2.7.141
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.
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HandleOA2P = void 0;
|
|
4
|
+
const chunk_1 = require("../chunk");
|
|
5
|
+
class HandleOA2P {
|
|
6
|
+
runObject(obj, _reg) {
|
|
7
|
+
var _a;
|
|
8
|
+
const filename = (_a = obj.getXMLFile()) === null || _a === void 0 ? void 0 : _a.getFilename().replace(".xml", ".mjs").toLowerCase();
|
|
9
|
+
if (filename === undefined) {
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
12
|
+
const chunk = new chunk_1.Chunk().appendString(`abap.OA2P["${obj.getName().toUpperCase()}"] = {\n`);
|
|
13
|
+
chunk.appendString(` "scopes": ${JSON.stringify(obj.listScopes())},\n`);
|
|
14
|
+
chunk.appendString(`};`);
|
|
15
|
+
const output = {
|
|
16
|
+
object: {
|
|
17
|
+
name: obj.getName(),
|
|
18
|
+
type: obj.getType(),
|
|
19
|
+
},
|
|
20
|
+
filename: filename,
|
|
21
|
+
chunk: chunk,
|
|
22
|
+
requires: [],
|
|
23
|
+
exports: [],
|
|
24
|
+
};
|
|
25
|
+
return [output];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.HandleOA2P = HandleOA2P;
|
|
29
|
+
//# sourceMappingURL=handle_oa2p.js.map
|
package/build/src/index.js
CHANGED
|
@@ -19,6 +19,7 @@ const handle_type_pool_1 = require("./handlers/handle_type_pool");
|
|
|
19
19
|
const handle_w3mi_1 = require("./handlers/handle_w3mi");
|
|
20
20
|
const handle_smim_1 = require("./handlers/handle_smim");
|
|
21
21
|
const handle_msag_1 = require("./handlers/handle_msag");
|
|
22
|
+
const handle_oa2p_1 = require("./handlers/handle_oa2p");
|
|
22
23
|
class Transpiler {
|
|
23
24
|
constructor(options) {
|
|
24
25
|
this.options = options;
|
|
@@ -59,6 +60,9 @@ class Transpiler {
|
|
|
59
60
|
else if (obj instanceof abaplint.Objects.TypePool) {
|
|
60
61
|
output.objects.push(...new handle_type_pool_1.HandleTypePool().runObject(obj, reg));
|
|
61
62
|
}
|
|
63
|
+
else if (obj instanceof abaplint.Objects.Oauth2Profile) {
|
|
64
|
+
output.objects.push(...new handle_oa2p_1.HandleOA2P().runObject(obj, reg));
|
|
65
|
+
}
|
|
62
66
|
else if (obj instanceof abaplint.Objects.Table) {
|
|
63
67
|
output.objects.push(...new handle_table_1.HandleTable().runObject(obj, reg));
|
|
64
68
|
}
|
package/build/src/validation.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.141",
|
|
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.105.
|
|
32
|
+
"@abaplint/core": "^2.105.9",
|
|
33
33
|
"source-map": "^0.7.4"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|