@abaplint/transpiler-cli 2.7.17 → 2.7.18
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 +69 -5
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -70003,12 +70003,15 @@ __exportStar(__webpack_require__(/*! ./source_field_symbol */ "./node_modules/@a
|
|
|
70003
70003
|
__exportStar(__webpack_require__(/*! ./source_field */ "./node_modules/@abaplint/transpiler/build/src/expressions/source_field.js"), exports);
|
|
70004
70004
|
__exportStar(__webpack_require__(/*! ./source */ "./node_modules/@abaplint/transpiler/build/src/expressions/source.js"), exports);
|
|
70005
70005
|
__exportStar(__webpack_require__(/*! ./sql_cond */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_cond.js"), exports);
|
|
70006
|
+
__exportStar(__webpack_require__(/*! ./sql_field_and_value */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_and_value.js"), exports);
|
|
70006
70007
|
__exportStar(__webpack_require__(/*! ./sql_field */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field.js"), exports);
|
|
70008
|
+
__exportStar(__webpack_require__(/*! ./sql_field_name */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js"), exports);
|
|
70009
|
+
__exportStar(__webpack_require__(/*! ./sql_arithmetic_operator */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_arithmetic_operator.js"), exports);
|
|
70007
70010
|
__exportStar(__webpack_require__(/*! ./sql_from_source */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_from_source.js"), exports);
|
|
70008
70011
|
__exportStar(__webpack_require__(/*! ./sql_from */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_from.js"), exports);
|
|
70012
|
+
__exportStar(__webpack_require__(/*! ./sql_into_structure */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_into_structure.js"), exports);
|
|
70009
70013
|
__exportStar(__webpack_require__(/*! ./sql_join */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_join.js"), exports);
|
|
70010
70014
|
__exportStar(__webpack_require__(/*! ./sql_source_simple */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_source_simple.js"), exports);
|
|
70011
|
-
__exportStar(__webpack_require__(/*! ./sql_into_structure */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_into_structure.js"), exports);
|
|
70012
70015
|
__exportStar(__webpack_require__(/*! ./sql_source */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_source.js"), exports);
|
|
70013
70016
|
__exportStar(__webpack_require__(/*! ./sql_target */ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_target.js"), exports);
|
|
70014
70017
|
__exportStar(__webpack_require__(/*! ./string_template_source */ "./node_modules/@abaplint/transpiler/build/src/expressions/string_template_source.js"), exports);
|
|
@@ -70822,6 +70825,30 @@ exports.SourceFieldSymbolTranspiler = SourceFieldSymbolTranspiler;
|
|
|
70822
70825
|
|
|
70823
70826
|
/***/ }),
|
|
70824
70827
|
|
|
70828
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_arithmetic_operator.js":
|
|
70829
|
+
/*!********************************************************************************************!*\
|
|
70830
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_arithmetic_operator.js ***!
|
|
70831
|
+
\********************************************************************************************/
|
|
70832
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
70833
|
+
|
|
70834
|
+
"use strict";
|
|
70835
|
+
|
|
70836
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70837
|
+
exports.SQLArithmeticOperatorTranspiler = void 0;
|
|
70838
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
70839
|
+
class SQLArithmeticOperatorTranspiler {
|
|
70840
|
+
transpile(node, _traversal) {
|
|
70841
|
+
const chunk = new chunk_1.Chunk();
|
|
70842
|
+
const concat = node.concatTokens();
|
|
70843
|
+
chunk.appendString(concat);
|
|
70844
|
+
return chunk;
|
|
70845
|
+
}
|
|
70846
|
+
}
|
|
70847
|
+
exports.SQLArithmeticOperatorTranspiler = SQLArithmeticOperatorTranspiler;
|
|
70848
|
+
//# sourceMappingURL=sql_arithmetic_operator.js.map
|
|
70849
|
+
|
|
70850
|
+
/***/ }),
|
|
70851
|
+
|
|
70825
70852
|
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_cond.js":
|
|
70826
70853
|
/*!*****************************************************************************!*\
|
|
70827
70854
|
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_cond.js ***!
|
|
@@ -71019,6 +71046,46 @@ exports.SQLFieldTranspiler = SQLFieldTranspiler;
|
|
|
71019
71046
|
|
|
71020
71047
|
/***/ }),
|
|
71021
71048
|
|
|
71049
|
+
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_and_value.js":
|
|
71050
|
+
/*!****************************************************************************************!*\
|
|
71051
|
+
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_and_value.js ***!
|
|
71052
|
+
\****************************************************************************************/
|
|
71053
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
71054
|
+
|
|
71055
|
+
"use strict";
|
|
71056
|
+
|
|
71057
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
71058
|
+
exports.SQLFieldAndValueTranspiler = void 0;
|
|
71059
|
+
const abaplint = __webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js");
|
|
71060
|
+
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
71061
|
+
class SQLFieldAndValueTranspiler {
|
|
71062
|
+
transpile(node, traversal) {
|
|
71063
|
+
const chunk = new chunk_1.Chunk();
|
|
71064
|
+
chunk.appendString("\"");
|
|
71065
|
+
for (const n of node.getChildren()) {
|
|
71066
|
+
const concat = n.concatTokens();
|
|
71067
|
+
if (concat === "=") {
|
|
71068
|
+
chunk.appendString(" = ");
|
|
71069
|
+
}
|
|
71070
|
+
else if (n.get() instanceof abaplint.Expressions.SQLSource) {
|
|
71071
|
+
const source = traversal.traverse(n);
|
|
71072
|
+
// todo: value conversion? abap vs db, traversal.isSQLConversion
|
|
71073
|
+
// todo: integers?
|
|
71074
|
+
chunk.appendString("'\" + " + source.getCode() + ".get() + \"'");
|
|
71075
|
+
}
|
|
71076
|
+
else {
|
|
71077
|
+
chunk.appendString(traversal.traverse(n).getCode() + " ");
|
|
71078
|
+
}
|
|
71079
|
+
}
|
|
71080
|
+
chunk.appendString("\"");
|
|
71081
|
+
return chunk;
|
|
71082
|
+
}
|
|
71083
|
+
}
|
|
71084
|
+
exports.SQLFieldAndValueTranspiler = SQLFieldAndValueTranspiler;
|
|
71085
|
+
//# sourceMappingURL=sql_field_and_value.js.map
|
|
71086
|
+
|
|
71087
|
+
/***/ }),
|
|
71088
|
+
|
|
71022
71089
|
/***/ "./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js":
|
|
71023
71090
|
/*!***********************************************************************************!*\
|
|
71024
71091
|
!*** ./node_modules/@abaplint/transpiler/build/src/expressions/sql_field_name.js ***!
|
|
@@ -77548,7 +77615,6 @@ const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/tr
|
|
|
77548
77615
|
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
|
|
77549
77616
|
class UpdateDatabaseTranspiler {
|
|
77550
77617
|
transpile(node, traversal) {
|
|
77551
|
-
var _a;
|
|
77552
77618
|
const dbtab = node.findFirstExpression(abaplint.Expressions.DatabaseTable);
|
|
77553
77619
|
if (dbtab === undefined) {
|
|
77554
77620
|
throw new Error("internal error, UpdateDatabaseTranspiler");
|
|
@@ -77564,9 +77630,7 @@ class UpdateDatabaseTranspiler {
|
|
|
77564
77630
|
if (sets.length > 0) {
|
|
77565
77631
|
const s = [];
|
|
77566
77632
|
for (const set of sets) {
|
|
77567
|
-
|
|
77568
|
-
const source = traversal.traverse(set.findDirectExpression(abaplint.Expressions.SQLSource));
|
|
77569
|
-
s.push("\"\\\"" + name + "\\\" = '\" + " + source.getCode() + ".get() + \"'\"");
|
|
77633
|
+
s.push(new expressions_1.SQLFieldAndValueTranspiler().transpile(set, traversal).getCode());
|
|
77570
77634
|
}
|
|
77571
77635
|
options.push(`"set": [${s.join(",")}]`);
|
|
77572
77636
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.18",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"author": "abaplint",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@abaplint/transpiler": "^2.7.
|
|
29
|
+
"@abaplint/transpiler": "^2.7.18",
|
|
30
30
|
"@types/glob": "^7.2.0",
|
|
31
31
|
"glob": "=7.2.0",
|
|
32
32
|
"@types/progress": "^2.0.5",
|