@abaplint/cli 2.105.9 → 2.105.11

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 +11 -10
  2. package/package.json +4 -4
package/build/cli.js CHANGED
@@ -7374,13 +7374,14 @@ class Select extends combi_1.Expression {
7374
7374
  const offset = (0, combi_1.ver)(version_1.Version.v751, (0, combi_1.seq)("OFFSET", _1.SQLSource));
7375
7375
  const bypass = (0, combi_1.str)("BYPASSING BUFFER");
7376
7376
  const fields = (0, combi_1.ver)(version_1.Version.v750, _1.SQLFields);
7377
- const perm = (0, combi_1.per)(_1.SQLFrom, into, _1.SQLForAllEntries, where, _1.SQLOrderBy, sql_up_to_1.SQLUpTo, offset, _1.SQLClient, _1.SQLHaving, bypass, sql_group_by_1.SQLGroupBy, fields, _1.DatabaseConnection);
7378
- const permSingle = (0, combi_1.per)(_1.SQLFrom, (0, combi_1.altPrio)(sql_into_structure_1.SQLIntoStructure, _1.SQLIntoList), where, _1.SQLClient, bypass, fields, _1.DatabaseConnection);
7377
+ // todo, HINTS cannot be anywhere, need an expression dedicated for strict sql
7378
+ const perm = (0, combi_1.per)(_1.SQLFrom, into, _1.SQLForAllEntries, where, _1.SQLOrderBy, sql_up_to_1.SQLUpTo, offset, _1.SQLClient, _1.SQLHaving, bypass, sql_group_by_1.SQLGroupBy, fields, _1.DatabaseConnection, _1.SQLHints);
7379
+ const permSingle = (0, combi_1.per)(_1.SQLFrom, (0, combi_1.altPrio)(sql_into_structure_1.SQLIntoStructure, _1.SQLIntoList), where, _1.SQLClient, bypass, fields, _1.DatabaseConnection, _1.SQLHints);
7379
7380
  const paren = (0, combi_1.seq)((0, combi_1.tok)(tokens_1.WParenLeftW), sql_field_name_1.SQLFieldName, (0, combi_1.tok)(tokens_1.WParenRightW));
7380
7381
  const fieldList = (0, combi_1.optPrio)((0, combi_1.altPrio)(_1.SQLFieldList, paren));
7381
7382
  const single = (0, combi_1.seq)("SINGLE", (0, combi_1.optPrio)("FOR UPDATE"), fieldList, permSingle);
7382
7383
  const other = (0, combi_1.seq)((0, combi_1.optPrio)("DISTINCT"), fieldList, perm);
7383
- const ret = (0, combi_1.seq)("SELECT", (0, combi_1.altPrio)(single, other), (0, combi_1.optPrio)(_1.SQLHints));
7384
+ const ret = (0, combi_1.seq)("SELECT", (0, combi_1.altPrio)(single, other));
7384
7385
  return ret;
7385
7386
  }
7386
7387
  }
@@ -8484,7 +8485,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
8484
8485
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
8485
8486
  class SQLJoin extends combi_1.Expression {
8486
8487
  getRunnable() {
8487
- const joinType = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("INNER", "LEFT OUTER", "LEFT")), "JOIN");
8488
+ const joinType = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("INNER", "LEFT OUTER", "LEFT", "RIGHT OUTER", "RIGHT")), "JOIN");
8488
8489
  const join = (0, combi_1.seq)(joinType, _1.SQLFromSource, "ON", _1.SQLCond);
8489
8490
  return join;
8490
8491
  }
@@ -51125,7 +51126,7 @@ class Registry {
51125
51126
  }
51126
51127
  static abaplintVersion() {
51127
51128
  // magic, see build script "version.sh"
51128
- return "2.105.9";
51129
+ return "2.105.11";
51129
51130
  }
51130
51131
  getDDICReferences() {
51131
51132
  return this.ddicReferences;
@@ -74813,9 +74814,9 @@ const xmlNode = __webpack_require__(/*! ./xmlNode */ "./node_modules/fast-xml-pa
74813
74814
  const readDocType = __webpack_require__(/*! ./DocTypeReader */ "./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js");
74814
74815
  const toNumber = __webpack_require__(/*! strnum */ "./node_modules/strnum/strnum.js");
74815
74816
 
74816
- const regx =
74817
- '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
74818
- .replace(/NAME/g, util.nameRegexp);
74817
+ // const regx =
74818
+ // '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
74819
+ // .replace(/NAME/g, util.nameRegexp);
74819
74820
 
74820
74821
  //const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g");
74821
74822
  //const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g");
@@ -75308,8 +75309,8 @@ function readTagExp(xmlData,i, removeNSPrefix, closingChar = ">"){
75308
75309
  let tagName = tagExp;
75309
75310
  let attrExpPresent = true;
75310
75311
  if(separatorIndex !== -1){//separate tag name and attributes expression
75311
- tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, '');
75312
- tagExp = tagExp.substr(separatorIndex + 1);
75312
+ tagName = tagExp.substring(0, separatorIndex);
75313
+ tagExp = tagExp.substring(separatorIndex + 1).trimStart();
75313
75314
  }
75314
75315
 
75315
75316
  const rawTagName = tagName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/cli",
3
- "version": "2.105.9",
3
+ "version": "2.105.11",
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.9",
41
+ "@abaplint/core": "^2.105.11",
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.7",
46
+ "@types/node": "^20.11.5",
47
47
  "@types/progress": "^2.0.7",
48
- "chai": "^4.3.10",
48
+ "chai": "^4.4.1",
49
49
  "chalk": "^5.3.0",
50
50
  "eslint": "^8.56.0",
51
51
  "glob": "^7.2.3",