@abaplint/transpiler-cli 2.5.2 → 2.5.3

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 +31 -4
  2. package/package.json +3 -3
package/build/bundle.js CHANGED
@@ -35622,7 +35622,7 @@ const __1 = __webpack_require__(/*! ../.. */ "./node_modules/@abaplint/core/buil
35622
35622
  const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
35623
35623
  class CDSDefineProjection extends combi_1.Expression {
35624
35624
  getRunnable() {
35625
- return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, (0, combi_1.opt)((0, combi_1.seq)("PROVIDER CONTRACT", _1.CDSName)), "AS PROJECTION ON", _1.CDSName, (0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
35625
+ return (0, combi_1.seq)((0, combi_1.star)(_1.CDSAnnotation), "DEFINE", (0, combi_1.opt)("ROOT"), "VIEW", (0, combi_1.ver)(__1.Version.v755, (0, combi_1.opt)("ENTITY")), _1.CDSName, (0, combi_1.opt)(_1.CDSProviderContract), "AS PROJECTION ON", _1.CDSName, (0, combi_1.opt)(_1.CDSAs), (0, combi_1.str)("{"), (0, combi_1.plus)(_1.CDSElement), (0, combi_1.star)((0, combi_1.seq)(",", _1.CDSElement)), (0, combi_1.str)("}"), (0, combi_1.opt)(";"));
35626
35626
  }
35627
35627
  }
35628
35628
  exports.CDSDefineProjection = CDSDefineProjection;
@@ -35672,7 +35672,7 @@ const cds_as_1 = __webpack_require__(/*! ./cds_as */ "./node_modules/@abaplint/c
35672
35672
  const cds_cast_1 = __webpack_require__(/*! ./cds_cast */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_cast.js");
35673
35673
  class CDSElement extends combi_1.Expression {
35674
35674
  getRunnable() {
35675
- return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSFunction, _1.CDSArithmetics, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters)))), (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
35675
+ return (0, combi_1.seq)((0, combi_1.starPrio)(_1.CDSAnnotation), (0, combi_1.optPrio)("KEY"), (0, combi_1.altPrio)(_1.CDSAggregate, _1.CDSString, _1.CDSFunction, _1.CDSArithmetics, cds_cast_1.CDSCast, _1.CDSCase, (0, combi_1.seq)(_1.CDSName, ": REDIRECTED TO", (0, combi_1.opt)((0, combi_1.alt)("PARENT", "COMPOSITION CHILD")), _1.CDSName), (0, combi_1.seq)(_1.CDSName, (0, combi_1.opt)(_1.CDSParameters), (0, combi_1.star)((0, combi_1.seq)(".", _1.CDSName, (0, combi_1.opt)(_1.CDSParameters)))), (0, combi_1.regex)(/^\d+$/)), (0, combi_1.opt)(cds_as_1.CDSAs));
35676
35676
  }
35677
35677
  }
35678
35678
  exports.CDSElement = CDSElement;
@@ -35862,6 +35862,27 @@ exports.CDSParametersSelect = CDSParametersSelect;
35862
35862
 
35863
35863
  /***/ }),
35864
35864
 
35865
+ /***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js":
35866
+ /*!****************************************************************************************!*\
35867
+ !*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js ***!
35868
+ \****************************************************************************************/
35869
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
35870
+
35871
+ "use strict";
35872
+
35873
+ Object.defineProperty(exports, "__esModule", ({ value: true }));
35874
+ exports.CDSProviderContract = void 0;
35875
+ const combi_1 = __webpack_require__(/*! ../../abap/2_statements/combi */ "./node_modules/@abaplint/core/build/src/abap/2_statements/combi.js");
35876
+ class CDSProviderContract extends combi_1.Expression {
35877
+ getRunnable() {
35878
+ return (0, combi_1.seq)("PROVIDER CONTRACT", (0, combi_1.alt)("TRANSACTIONAL_QUERY", "TRANSACTIONAL_INTERFACE", "ANALYTICAL_QUERY"));
35879
+ }
35880
+ }
35881
+ exports.CDSProviderContract = CDSProviderContract;
35882
+ //# sourceMappingURL=cds_provider_contract.js.map
35883
+
35884
+ /***/ }),
35885
+
35865
35886
  /***/ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_relation.js":
35866
35887
  /*!*******************************************************************************!*\
35867
35888
  !*** ./node_modules/@abaplint/core/build/src/cds/expressions/cds_relation.js ***!
@@ -36065,6 +36086,7 @@ __exportStar(__webpack_require__(/*! ./cds_define_view */ "./node_modules/@abapl
36065
36086
  __exportStar(__webpack_require__(/*! ./cds_element */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_element.js"), exports);
36066
36087
  __exportStar(__webpack_require__(/*! ./cds_function */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_function.js"), exports);
36067
36088
  __exportStar(__webpack_require__(/*! ./cds_group_by */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_group_by.js"), exports);
36089
+ __exportStar(__webpack_require__(/*! ./cds_provider_contract */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_provider_contract.js"), exports);
36068
36090
  __exportStar(__webpack_require__(/*! ./cds_integer */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_integer.js"), exports);
36069
36091
  __exportStar(__webpack_require__(/*! ./cds_join */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_join.js"), exports);
36070
36092
  __exportStar(__webpack_require__(/*! ./cds_name */ "./node_modules/@abaplint/core/build/src/cds/expressions/cds_name.js"), exports);
@@ -40977,7 +40999,12 @@ class DataDefinition extends _abstract_object_1.AbstractObject {
40977
40999
  let found = (_a = e.findDirectExpression(expressions_1.CDSAs)) === null || _a === void 0 ? void 0 : _a.findDirectExpression(expressions_1.CDSName);
40978
41000
  if (found === undefined) {
40979
41001
  const list = e.findDirectExpressions(expressions_1.CDSName);
40980
- found = list[list.length - 1];
41002
+ if (e.concatTokens().toUpperCase().includes(" REDIRECTED TO ")) {
41003
+ found = list[0];
41004
+ }
41005
+ else {
41006
+ found = list[list.length - 1];
41007
+ }
40981
41008
  }
40982
41009
  if (found === undefined) {
40983
41010
  continue;
@@ -45986,7 +46013,7 @@ class Registry {
45986
46013
  }
45987
46014
  static abaplintVersion() {
45988
46015
  // magic, see build script "version.sh"
45989
- return "2.95.19";
46016
+ return "2.95.22";
45990
46017
  }
45991
46018
  getDDICReferences() {
45992
46019
  return this.references;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abaplint/transpiler-cli",
3
- "version": "2.5.2",
3
+ "version": "2.5.3",
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.5.2",
28
+ "@abaplint/transpiler": "^2.5.3",
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.19",
32
+ "@abaplint/core": "^2.95.22",
33
33
  "progress": "^2.0.3",
34
34
  "webpack": "^5.75.0",
35
35
  "webpack-cli": "^5.0.1",