@abaplint/transpiler-cli 2.5.63 → 2.5.65
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.
- package/build/bundle.js +39 -1
- package/package.json +4 -4
package/build/bundle.js
CHANGED
|
@@ -68317,6 +68317,7 @@ __exportStar(__webpack_require__(/*! ./sql_from_source */ "./node_modules/@abapl
|
|
|
68317
68317
|
__exportStar(__webpack_require__(/*! ./sql_from */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_from.js"), exports);
|
|
68318
68318
|
__exportStar(__webpack_require__(/*! ./sql_join */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_join.js"), exports);
|
|
68319
68319
|
__exportStar(__webpack_require__(/*! ./sql_source_simple */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_source_simple.js"), exports);
|
|
68320
|
+
__exportStar(__webpack_require__(/*! ./sql_into_structure */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_into_structure.js"), exports);
|
|
68320
68321
|
__exportStar(__webpack_require__(/*! ./sql_source */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_source.js"), exports);
|
|
68321
68322
|
__exportStar(__webpack_require__(/*! ./sql_target */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_target.js"), exports);
|
|
68322
68323
|
__exportStar(__webpack_require__(/*! ./string_template_source */ "./node_modules/@abaplint/transpiler/build/src/expressions/string_template_source.js"), exports);
|
|
@@ -69412,6 +69413,39 @@ exports.SQLFromSourceTranspiler = SQLFromSourceTranspiler;
|
|
|
69412
69413
|
|
|
69413
69414
|
/***/ }),
|
|
69414
69415
|
|
|
69416
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_into_structure.js":
|
|
69417
|
+
/*!***************************************************************************************!*\
|
|
69418
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_into_structure.js ***!
|
|
69419
|
+
\***************************************************************************************/
|
|
69420
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
69421
|
+
|
|
69422
|
+
"use strict";
|
|
69423
|
+
|
|
69424
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
69425
|
+
exports.SQLIntoStructureTranspiler = void 0;
|
|
69426
|
+
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
69427
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
69428
|
+
class SQLIntoStructureTranspiler {
|
|
69429
|
+
transpile(node, traversal) {
|
|
69430
|
+
const targets = node.findDirectExpressions(abaplint.Expressions.SQLTarget);
|
|
69431
|
+
const transpiled = targets.map(t => traversal.traverse(t));
|
|
69432
|
+
if (targets.length === 1) {
|
|
69433
|
+
return transpiled[0];
|
|
69434
|
+
}
|
|
69435
|
+
else {
|
|
69436
|
+
const chunk = new chunk_1.Chunk();
|
|
69437
|
+
chunk.appendString("[");
|
|
69438
|
+
chunk.appendString(transpiled.map(t => t.getCode()).join(","));
|
|
69439
|
+
chunk.appendString("]");
|
|
69440
|
+
return chunk;
|
|
69441
|
+
}
|
|
69442
|
+
}
|
|
69443
|
+
}
|
|
69444
|
+
exports.SQLIntoStructureTranspiler = SQLIntoStructureTranspiler;
|
|
69445
|
+
//# sourceMappingURL=sql_into_structure.js.map
|
|
69446
|
+
|
|
69447
|
+
/***/ }),
|
|
69448
|
+
|
|
69415
69449
|
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_join.js":
|
|
69416
69450
|
/*!*****************************************************************************!*\
|
|
69417
69451
|
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_join.js ***!
|
|
@@ -74815,6 +74849,7 @@ const sql_from_1 = __webpack_require__(/*! ../expressions/sql_from */ "./node_mo
|
|
|
74815
74849
|
function escapeRegExp(string) {
|
|
74816
74850
|
return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // $& means the whole matched string
|
|
74817
74851
|
}
|
|
74852
|
+
// TODO: currently SELECT into are always handled as CORRESPONDING
|
|
74818
74853
|
class SelectTranspiler {
|
|
74819
74854
|
transpile(node, traversal, targetOverride) {
|
|
74820
74855
|
var _a;
|
|
@@ -74822,9 +74857,12 @@ class SelectTranspiler {
|
|
|
74822
74857
|
if (targetOverride) {
|
|
74823
74858
|
target = targetOverride;
|
|
74824
74859
|
}
|
|
74825
|
-
else if (node.findFirstExpression(abaplint.Expressions.
|
|
74860
|
+
else if (node.findFirstExpression(abaplint.Expressions.SQLIntoTable)) {
|
|
74826
74861
|
target = traversal.traverse(node.findFirstExpression(abaplint.Expressions.Target)).getCode();
|
|
74827
74862
|
}
|
|
74863
|
+
else if (node.findFirstExpression(abaplint.Expressions.SQLIntoStructure)) {
|
|
74864
|
+
target = traversal.traverse(node.findFirstExpression(abaplint.Expressions.SQLIntoStructure)).getCode();
|
|
74865
|
+
}
|
|
74828
74866
|
let select = "SELECT ";
|
|
74829
74867
|
const fieldList = node.findFirstExpression(abaplint.Expressions.SQLFieldList)
|
|
74830
74868
|
|| node.findFirstExpression(abaplint.Expressions.SQLFieldListLoop);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.65",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.5.
|
|
28
|
+
"@abaplint/transpiler": "^2.5.65",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|
|
32
|
-
"@types/node": "^18.15.
|
|
32
|
+
"@types/node": "^18.15.11",
|
|
33
33
|
"@abaplint/core": "^2.95.50",
|
|
34
34
|
"progress": "^2.0.3",
|
|
35
|
-
"webpack": "^5.
|
|
35
|
+
"webpack": "^5.77.0",
|
|
36
36
|
"webpack-cli": "^5.0.1",
|
|
37
37
|
"typescript": "^5.0.2"
|
|
38
38
|
}
|