@abaplint/cli 2.105.8 → 2.105.10

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/cli.js +17 -7
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -8484,7 +8484,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
8484
8484
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
8485
8485
  class SQLJoin extends combi_1.Expression {
8486
8486
  getRunnable() {
8487
- const joinType = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("INNER", "LEFT OUTER", "LEFT")), "JOIN");
8487
+ const joinType = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("INNER", "LEFT OUTER", "LEFT", "RIGHT OUTER", "RIGHT")), "JOIN");
8488
8488
  const join = (0, combi_1.seq)(joinType, _1.SQLFromSource, "ON", _1.SQLCond);
8489
8489
  return join;
8490
8490
  }
@@ -48109,6 +48109,7 @@ exports.NumberRange = NumberRange;
48109
48109
 
48110
48110
  Object.defineProperty(exports, "__esModule", ({ value: true }));
48111
48111
  exports.Oauth2Profile = void 0;
48112
+ const xml_utils_1 = __webpack_require__(/*! ../xml_utils */ "./node_modules/@abaplint/core/build/src/xml_utils.js");
48112
48113
  const _abstract_object_1 = __webpack_require__(/*! ./_abstract_object */ "./node_modules/@abaplint/core/build/src/objects/_abstract_object.js");
48113
48114
  class Oauth2Profile extends _abstract_object_1.AbstractObject {
48114
48115
  getType() {
@@ -48124,6 +48125,15 @@ class Oauth2Profile extends _abstract_object_1.AbstractObject {
48124
48125
  // todo
48125
48126
  return undefined;
48126
48127
  }
48128
+ listScopes() {
48129
+ var _a, _b, _c;
48130
+ const ret = [];
48131
+ const parsed = super.parseRaw2();
48132
+ 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)) {
48133
+ ret.push(t.SCOPE);
48134
+ }
48135
+ return ret;
48136
+ }
48127
48137
  }
48128
48138
  exports.Oauth2Profile = Oauth2Profile;
48129
48139
  //# sourceMappingURL=oauth2_profile.js.map
@@ -51115,7 +51125,7 @@ class Registry {
51115
51125
  }
51116
51126
  static abaplintVersion() {
51117
51127
  // magic, see build script "version.sh"
51118
- return "2.105.8";
51128
+ return "2.105.10";
51119
51129
  }
51120
51130
  getDDICReferences() {
51121
51131
  return this.ddicReferences;
@@ -74803,9 +74813,9 @@ const xmlNode = __webpack_require__(/*! ./xmlNode */ "./node_modules/fast-xml-pa
74803
74813
  const readDocType = __webpack_require__(/*! ./DocTypeReader */ "./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js");
74804
74814
  const toNumber = __webpack_require__(/*! strnum */ "./node_modules/strnum/strnum.js");
74805
74815
 
74806
- const regx =
74807
- '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
74808
- .replace(/NAME/g, util.nameRegexp);
74816
+ // const regx =
74817
+ // '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
74818
+ // .replace(/NAME/g, util.nameRegexp);
74809
74819
 
74810
74820
  //const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g");
74811
74821
  //const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g");
@@ -75298,8 +75308,8 @@ function readTagExp(xmlData,i, removeNSPrefix, closingChar = ">"){
75298
75308
  let tagName = tagExp;
75299
75309
  let attrExpPresent = true;
75300
75310
  if(separatorIndex !== -1){//separate tag name and attributes expression
75301
- tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, '');
75302
- tagExp = tagExp.substr(separatorIndex + 1);
75311
+ tagName = tagExp.substring(0, separatorIndex);
75312
+ tagExp = tagExp.substring(separatorIndex + 1).trimStart();
75303
75313
  }
75304
75314
 
75305
75315
  const rawTagName = tagName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.8",
3
+ "version": "2.105.10",
4
4
  "description": "abaplint - Command Line Interface",
5
5
  "funding": "https://github.com/sponsors/larshp",
6
6
  "bin": {
@@ -38,14 +38,14 @@
38
38
  },
39
39
  "homepage": "https://abaplint.org",
40
40
  "devDependencies": {
41
- "@abaplint/core": "^2.105.8",
41
+ "@abaplint/core": "^2.105.10",
42
42
  "@types/chai": "^4.3.11",
43
43
  "@types/glob": "^7.2.0",
44
44
  "@types/minimist": "^1.2.5",
45
45
  "@types/mocha": "^10.0.6",
46
- "@types/node": "^20.10.6",
46
+ "@types/node": "^20.10.8",
47
47
  "@types/progress": "^2.0.7",
48
- "chai": "^4.3.10",
48
+ "chai": "^4.4.0",
49
49
  "chalk": "^5.3.0",
50
50
  "eslint": "^8.56.0",
51
51
  "glob": "^7.2.3",