@abaplint/transpiler-cli 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.
Files changed (2) hide show
  1. package/build/bundle.js +55 -1
  2. package/package.json +4 -4
package/build/bundle.js CHANGED
@@ -47058,6 +47058,7 @@ exports.NumberRange = NumberRange;
47058
47058
 
47059
47059
  Object.defineProperty(exports, "__esModule", ({ value: true }));
47060
47060
  exports.Oauth2Profile = void 0;
47061
+ const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
47061
47062
  const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
47062
47063
  class Oauth2Profile extends _abstract_object_1.AbstractObject {
47063
47064
  getType() {
@@ -47073,6 +47074,15 @@ class Oauth2Profile extends _abstract_object_1.AbstractObject {
47073
47074
  // todo
47074
47075
  return undefined;
47075
47076
  }
47077
+ listScopes() {
47078
+ var _a, _b, _c;
47079
+ const ret = [];
47080
+ const parsed = super.parseRaw2();
47081
+ for (const t of (0, xml_utils_1.xmlToArray)((_c = (_b = (_a = parsed.abapGit["asx:abap"]["asx:values"]) === null || _a === void 0 ? void 0 : _a.PROFILE) === null || _b === void 0 ? void 0 : _b.T_SCOPES) === null || _c === void 0 ? void 0 : _c.OA2P_SCOPES)) {
47082
+ ret.push(t.SCOPE);
47083
+ }
47084
+ return ret;
47085
+ }
47076
47086
  }
47077
47087
  exports.Oauth2Profile = Oauth2Profile;
47078
47088
  //# sourceMappingURL=oauth2_profile.js.map
@@ -50064,7 +50074,7 @@ class Registry {
50064
50074
  }
50065
50075
  static abaplintVersion() {
50066
50076
  // magic, see build script "version.sh"
50067
- return "2.105.8";
50077
+ return "2.105.9";
50068
50078
  }
50069
50079
  getDDICReferences() {
50070
50080
  return this.ddicReferences;
@@ -76046,6 +76056,45 @@ exports.HandleMSAG = HandleMSAG;
76046
76056
 
76047
76057
  /***/ }),
76048
76058
 
76059
+ /***/ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_oa2p.js":
76060
+ /*!*****************************************************************************!*\
76061
+ !*** ./node_modules/@abaplint/transpiler/build/src/handlers/handle_oa2p.js ***!
76062
+ \*****************************************************************************/
76063
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
76064
+
76065
+ "use strict";
76066
+
76067
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
76068
+ exports.HandleOA2P = void 0;
76069
+ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
76070
+ class HandleOA2P {
76071
+ runObject(obj, _reg) {
76072
+ var _a;
76073
+ const filename = (_a = obj.getXMLFile()) === null || _a === void 0 ? void 0 : _a.getFilename().replace(".xml", ".mjs").toLowerCase();
76074
+ if (filename === undefined) {
76075
+ return [];
76076
+ }
76077
+ const chunk = new chunk_1.Chunk().appendString(`abap.OA2P["${obj.getName().toUpperCase()}"] = {\n`);
76078
+ chunk.appendString(` "scopes": ${JSON.stringify(obj.listScopes())},\n`);
76079
+ chunk.appendString(`};`);
76080
+ const output = {
76081
+ object: {
76082
+ name: obj.getName(),
76083
+ type: obj.getType(),
76084
+ },
76085
+ filename: filename,
76086
+ chunk: chunk,
76087
+ requires: [],
76088
+ exports: [],
76089
+ };
76090
+ return [output];
76091
+ }
76092
+ }
76093
+ exports.HandleOA2P = HandleOA2P;
76094
+ //# sourceMappingURL=handle_oa2p.js.map
76095
+
76096
+ /***/ }),
76097
+
76049
76098
  /***/ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_smim.js":
76050
76099
  /*!*****************************************************************************!*\
76051
76100
  !*** ./node_modules/@abaplint/transpiler/build/src/handlers/handle_smim.js ***!
@@ -76367,6 +76416,7 @@ const handle_type_pool_1 = __webpack_require__(/*! ./handlers/handle_type_pool *
76367
76416
  const handle_w3mi_1 = __webpack_require__(/*! ./handlers/handle_w3mi */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_w3mi.js");
76368
76417
  const handle_smim_1 = __webpack_require__(/*! ./handlers/handle_smim */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_smim.js");
76369
76418
  const handle_msag_1 = __webpack_require__(/*! ./handlers/handle_msag */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_msag.js");
76419
+ const handle_oa2p_1 = __webpack_require__(/*! ./handlers/handle_oa2p */ "./node_modules/@abaplint/transpiler/build/src/handlers/handle_oa2p.js");
76370
76420
  class Transpiler {
76371
76421
  constructor(options) {
76372
76422
  this.options = options;
@@ -76407,6 +76457,9 @@ class Transpiler {
76407
76457
  else if (obj instanceof abaplint.Objects.TypePool) {
76408
76458
  output.objects.push(...new handle_type_pool_1.HandleTypePool().runObject(obj, reg));
76409
76459
  }
76460
+ else if (obj instanceof abaplint.Objects.Oauth2Profile) {
76461
+ output.objects.push(...new handle_oa2p_1.HandleOA2P().runObject(obj, reg));
76462
+ }
76410
76463
  else if (obj instanceof abaplint.Objects.Table) {
76411
76464
  output.objects.push(...new handle_table_1.HandleTable().runObject(obj, reg));
76412
76465
  }
@@ -84935,6 +84988,7 @@ exports.config = {
84935
84988
  "MSAG",
84936
84989
  "NROB",
84937
84990
  "NSPC",
84991
+ "OA2P",
84938
84992
  "PARA",
84939
84993
  "PROG",
84940
84994
  "SHLP",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.140",
3
+ "version": "2.7.141",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -26,12 +26,12 @@
26
26
  "author": "abaplint",
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@abaplint/transpiler": "^2.7.140",
29
+ "@abaplint/transpiler": "^2.7.141",
30
30
  "@types/glob": "^7.2.0",
31
31
  "glob": "=7.2.0",
32
32
  "@types/progress": "^2.0.7",
33
- "@types/node": "^20.10.6",
34
- "@abaplint/core": "^2.105.8",
33
+ "@types/node": "^20.10.8",
34
+ "@abaplint/core": "^2.105.9",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.89.0",
37
37
  "webpack-cli": "^5.1.4",