@abaplint/transpiler-cli 2.1.41 → 2.1.42
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 +1 -1
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -13282,7 +13282,7 @@ eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\n
|
|
|
13282
13282
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
13283
13283
|
|
|
13284
13284
|
"use strict";
|
|
13285
|
-
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.ComponentCondSubTranspiler = void 0;\r\nconst abaplint = __webpack_require__(/*! @abaplint/core */ \"./node_modules/@abaplint/core/build/src/index.js\");\r\nconst chunk_1 = __webpack_require__(/*! ../chunk */ \"./node_modules/@abaplint/transpiler/build/src/chunk.js\");\r\nclass ComponentCondSubTranspiler {\r\n transpile(node, traversal) {\r\n let ret = \"\";\r\n for (const c of node.getChildren()) {\r\n if (c instanceof abaplint.Nodes.ExpressionNode) {\r\n let cond = traversal.traverse(c).getCode();\r\n cond = cond.replace(/^\\(i\\) => \\{return /, \"\");\r\n cond = cond.replace(/;\\}$/, \"\");\r\n ret += cond;\r\n }\r\n else if (c instanceof abaplint.Nodes.TokenNode) {\r\n switch (c.get().getStr().toUpperCase()) {\r\n case \"(\":\r\n ret += \"(\";\r\n break;\r\n case \")\":\r\n ret += \")\";\r\n break;\r\n default:\r\n throw new Error(\"ComponentCondSubTranspiler, unexpected\");\r\n }\r\n }\r\n }\r\n ret = `(i) => {return ${ret};}`;\r\n return new chunk_1.Chunk(ret);\r\n }\r\n}\r\nexports.ComponentCondSubTranspiler = ComponentCondSubTranspiler;\r\n//# sourceMappingURL=component_cond_sub.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/expressions/component_cond_sub.js?");
|
|
13285
|
+
eval("\r\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\r\nexports.ComponentCondSubTranspiler = void 0;\r\nconst abaplint = __webpack_require__(/*! @abaplint/core */ \"./node_modules/@abaplint/core/build/src/index.js\");\r\nconst chunk_1 = __webpack_require__(/*! ../chunk */ \"./node_modules/@abaplint/transpiler/build/src/chunk.js\");\r\nclass ComponentCondSubTranspiler {\r\n transpile(node, traversal) {\r\n let ret = \"\";\r\n for (const c of node.getChildren()) {\r\n if (c instanceof abaplint.Nodes.ExpressionNode) {\r\n let cond = traversal.traverse(c).getCode();\r\n cond = cond.replace(/^\\(i\\) => \\{return /, \"\");\r\n cond = cond.replace(/;\\}$/, \"\");\r\n ret += cond;\r\n }\r\n else if (c instanceof abaplint.Nodes.TokenNode) {\r\n switch (c.get().getStr().toUpperCase()) {\r\n case \"(\":\r\n ret += \"(\";\r\n break;\r\n case \")\":\r\n ret += \")\";\r\n break;\r\n case \"NOT\":\r\n ret += \"!\";\r\n break;\r\n default:\r\n throw new Error(\"ComponentCondSubTranspiler, unexpected: \" + node.concatTokens());\r\n }\r\n }\r\n }\r\n ret = `(i) => {return ${ret};}`;\r\n return new chunk_1.Chunk(ret);\r\n }\r\n}\r\nexports.ComponentCondSubTranspiler = ComponentCondSubTranspiler;\r\n//# sourceMappingURL=component_cond_sub.js.map\n\n//# sourceURL=webpack://@abaplint/transpiler-cli/./node_modules/@abaplint/transpiler/build/src/expressions/component_cond_sub.js?");
|
|
13286
13286
|
|
|
13287
13287
|
/***/ }),
|
|
13288
13288
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.42",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"bin": {
|
|
6
6
|
"abap_transpile": "./abap_transpile"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"author": "abaplint",
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@abaplint/transpiler": "^2.1.
|
|
28
|
+
"@abaplint/transpiler": "^2.1.42",
|
|
29
29
|
"@types/glob": "^7.2.0",
|
|
30
30
|
"glob": "=7.2.0",
|
|
31
31
|
"@types/progress": "^2.0.5",
|