@abaplint/transpiler-cli 2.4.14 → 2.4.15

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 +13 -4
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -6436,8 +6436,9 @@ const _1 = __webpack_require__(/*! . */ "./node_modules/@abaplint/core/build/src
6436
6436
  const version_1 = __webpack_require__(/*! ../../../version */ "./node_modules/@abaplint/core/build/src/version.js");
6437
6437
  class SQLFieldList extends combi_1.Expression {
6438
6438
  getRunnable() {
6439
- const comma = (0, combi_1.optPrio)((0, combi_1.ver)(version_1.Version.v740sp05, ","));
6440
- return (0, combi_1.altPrio)("*", _1.Dynamic, (0, combi_1.plusPrio)((0, combi_1.seq)(_1.SQLField, comma)));
6439
+ const nev = (0, combi_1.ver)(version_1.Version.v740sp05, (0, combi_1.starPrio)((0, combi_1.seq)(",", _1.SQLField)));
6440
+ const old = (0, combi_1.starPrio)(_1.SQLField);
6441
+ return (0, combi_1.altPrio)("*", _1.Dynamic, (0, combi_1.seq)(_1.SQLField, (0, combi_1.alt)(nev, old)));
6441
6442
  }
6442
6443
  }
6443
6444
  exports.SQLFieldList = SQLFieldList;
@@ -26216,10 +26217,13 @@ class CreateObject {
26216
26217
  if (found instanceof basic_1.VoidType) {
26217
26218
  continue;
26218
26219
  }
26220
+ else if (found instanceof basic_1.UnknownType) {
26221
+ throw new Error("Target type unknown, " + t.concatTokens());
26222
+ }
26219
26223
  else if (!(found instanceof basic_1.ObjectReferenceType)
26220
26224
  && !(found instanceof basic_1.AnyType)
26221
26225
  && !(found instanceof basic_1.GenericObjectReferenceType)) {
26222
- throw new Error("Target must be an object reference");
26226
+ throw new Error("Target must be an object reference, " + t.concatTokens());
26223
26227
  }
26224
26228
  else if (found instanceof basic_1.GenericObjectReferenceType && type === undefined) {
26225
26229
  throw new Error("Generic type, cannot be instantiated");
@@ -45855,7 +45859,7 @@ class Registry {
45855
45859
  }
45856
45860
  static abaplintVersion() {
45857
45861
  // magic, see build script "version.sh"
45858
- return "2.95.14";
45862
+ return "2.95.15";
45859
45863
  }
45860
45864
  getDDICReferences() {
45861
45865
  return this.references;
@@ -73955,6 +73959,8 @@ class SelectTranspiler {
73955
73959
  for await (const ${unique} of abap.statements.loop(${faeTranspiled})) {
73956
73960
  await abap.statements.select(${target}, {select: "${select.trim()}"${extra}}, {appending: true});
73957
73961
  }
73962
+ abap.statements.sort(${target});
73963
+ await abap.statements.deleteInternal(${target}, {adjacent: true});
73958
73964
  abap.builtin.sy.get().dbcnt.set(${target}.array().length);
73959
73965
  }`;
73960
73966
  return new chunk_1.Chunk().append(code, node, traversal);
@@ -78471,6 +78477,7 @@ function buildAttributesMap(attrStr, jPath) {
78471
78477
  if (this.options.transformAttributeName) {
78472
78478
  aName = this.options.transformAttributeName(aName);
78473
78479
  }
78480
+ if(aName === "__proto__") aName = "#__proto__";
78474
78481
  if (oldVal !== undefined) {
78475
78482
  if (this.options.trimValues) {
78476
78483
  oldVal = oldVal.trim();
@@ -79096,9 +79103,11 @@ class XmlNode{
79096
79103
  }
79097
79104
  add(key,val){
79098
79105
  // this.child.push( {name : key, val: val, isCdata: isCdata });
79106
+ if(key === "__proto__") key = "#__proto__";
79099
79107
  this.child.push( {[key]: val });
79100
79108
  }
79101
79109
  addChild(node) {
79110
+ if(node.tagname === "__proto__") node.tagname = "#__proto__";
79102
79111
  if(node[":@"] && Object.keys(node[":@"]).length > 0){
79103
79112
  this.child.push( { [node.tagname]: node.child, [":@"]: node[":@"] });
79104
79113
  }else{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.4.14",
3
+ "version": "2.4.15",
4
4
  "description": "Transpiler - Command Line Interface",
5
5
  "bin": {
6
6
  "abap_transpile": "./abap_transpile"
@@ -25,11 +25,11 @@
25
25
  "author": "abaplint",
26
26
  "license": "MIT",
27
27
  "devDependencies": {
28
- "@abaplint/transpiler": "^2.4.14",
28
+ "@abaplint/transpiler": "^2.4.15",
29
29
  "@types/glob": "^7.2.0",
30
30
  "glob": "=7.2.0",
31
31
  "@types/progress": "^2.0.5",
32
- "@abaplint/core": "^2.95.14",
32
+ "@abaplint/core": "^2.95.15",
33
33
  "progress": "^2.0.3",
34
34
  "webpack": "^5.75.0",
35
35
  "webpack-cli": "^5.0.1",