@abaplint/transpiler-cli 2.7.141 → 2.7.142

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 +10 -8
  2. package/package.json +4 -4
package/build/bundle.js CHANGED
@@ -7433,7 +7433,7 @@ const combi_1 = __webpack_require__(/*! ../combi */ "./node_modules/@abaplint/co
7433
7433
  const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src/abap/2_statements/expressions/index.js");
7434
7434
  class SQLJoin extends combi_1.Expression {
7435
7435
  getRunnable() {
7436
- const joinType = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("INNER", "LEFT OUTER", "LEFT")), "JOIN");
7436
+ const joinType = (0, combi_1.seq)((0, combi_1.optPrio)((0, combi_1.altPrio)("INNER", "LEFT OUTER", "LEFT", "RIGHT OUTER", "RIGHT")), "JOIN");
7437
7437
  const join = (0, combi_1.seq)(joinType, _1.SQLFromSource, "ON", _1.SQLCond);
7438
7438
  return join;
7439
7439
  }
@@ -50074,7 +50074,7 @@ class Registry {
50074
50074
  }
50075
50075
  static abaplintVersion() {
50076
50076
  // magic, see build script "version.sh"
50077
- return "2.105.9";
50077
+ return "2.105.10";
50078
50078
  }
50079
50079
  getDDICReferences() {
50080
50080
  return this.ddicReferences;
@@ -74965,6 +74965,7 @@ const simple_source3_1 = __webpack_require__(/*! ./simple_source3 */ "./node_mod
74965
74965
  const field_chain_1 = __webpack_require__(/*! ./field_chain */ "./node_modules/@abaplint/transpiler/build/src/expressions/field_chain.js");
74966
74966
  const sql_field_name_1 = __webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js");
74967
74967
  const transpile_types_1 = __webpack_require__(/*! ../transpile_types */ "./node_modules/@abaplint/transpiler/build/src/transpile_types.js");
74968
+ const source_1 = __webpack_require__(/*! ./source */ "./node_modules/@abaplint/transpiler/build/src/expressions/source.js");
74968
74969
  class SQLCondTranspiler {
74969
74970
  transpile(node, traversal, table) {
74970
74971
  var _a;
@@ -75014,7 +75015,8 @@ class SQLCondTranspiler {
75014
75015
  pre = "NOT ";
75015
75016
  }
75016
75017
  if (sqlin.getChildren().length === 2) {
75017
- return `${pre}" + abap.expandIN("${fieldName.concatTokens()}", ${source.concatTokens()}) + "`;
75018
+ const s = new source_1.SourceTranspiler().transpile(source, traversal).getCode();
75019
+ return `${pre}" + abap.expandIN("${fieldName.concatTokens()}", ${s}) + "`;
75018
75020
  }
75019
75021
  else {
75020
75022
  const cond = [];
@@ -86593,9 +86595,9 @@ const xmlNode = __webpack_require__(/*! ./xmlNode */ "./node_modules/fast-xml-pa
86593
86595
  const readDocType = __webpack_require__(/*! ./DocTypeReader */ "./node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js");
86594
86596
  const toNumber = __webpack_require__(/*! strnum */ "./node_modules/strnum/strnum.js");
86595
86597
 
86596
- const regx =
86597
- '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
86598
- .replace(/NAME/g, util.nameRegexp);
86598
+ // const regx =
86599
+ // '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)'
86600
+ // .replace(/NAME/g, util.nameRegexp);
86599
86601
 
86600
86602
  //const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g");
86601
86603
  //const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g");
@@ -87088,8 +87090,8 @@ function readTagExp(xmlData,i, removeNSPrefix, closingChar = ">"){
87088
87090
  let tagName = tagExp;
87089
87091
  let attrExpPresent = true;
87090
87092
  if(separatorIndex !== -1){//separate tag name and attributes expression
87091
- tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, '');
87092
- tagExp = tagExp.substr(separatorIndex + 1);
87093
+ tagName = tagExp.substring(0, separatorIndex);
87094
+ tagExp = tagExp.substring(separatorIndex + 1).trimStart();
87093
87095
  }
87094
87096
 
87095
87097
  const rawTagName = tagName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.7.141",
3
+ "version": "2.7.142",
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.141",
29
+ "@abaplint/transpiler": "^2.7.142",
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.8",
34
- "@abaplint/core": "^2.105.9",
33
+ "@types/node": "^20.11.0",
34
+ "@abaplint/core": "^2.105.10",
35
35
  "progress": "^2.0.3",
36
36
  "webpack": "^5.89.0",
37
37
  "webpack-cli": "^5.1.4",