@abaplint/transpiler-cli 2.13.84 → 2.13.85
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 +0 -5
- package/package.json +2 -2
package/build/bundle.js
CHANGED
|
@@ -120485,7 +120485,6 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
120485
120485
|
exports.WaitTranspiler = void 0;
|
|
120486
120486
|
const abaplint = __importStar(__webpack_require__(/*! @abaplint/core */ "./node_modules/@abaplint/core/build/src/index.js"));
|
|
120487
120487
|
const chunk_1 = __webpack_require__(/*! ../chunk */ "./node_modules/@abaplint/transpiler/build/src/chunk.js");
|
|
120488
|
-
const expressions_1 = __webpack_require__(/*! ../expressions */ "./node_modules/@abaplint/transpiler/build/src/expressions/index.js");
|
|
120489
120488
|
class WaitTranspiler {
|
|
120490
120489
|
transpile(node, traversal) {
|
|
120491
120490
|
const options = [];
|
|
@@ -120494,10 +120493,6 @@ class WaitTranspiler {
|
|
|
120494
120493
|
options.push("seconds: " + traversal.traverse(seconds).getCode());
|
|
120495
120494
|
}
|
|
120496
120495
|
const concat = node.concatTokens().toUpperCase();
|
|
120497
|
-
if (concat.includes(" UNTIL ") === false && seconds) {
|
|
120498
|
-
const sec = new expressions_1.SourceTranspiler(true).transpile(seconds, traversal).getCode();
|
|
120499
|
-
return new chunk_1.Chunk().appendString(`await new Promise(r => setTimeout(r, ${sec} * 1000));`);
|
|
120500
|
-
}
|
|
120501
120496
|
const cond = node.findFirstExpression(abaplint.Expressions.Cond);
|
|
120502
120497
|
if (cond) {
|
|
120503
120498
|
options.push("cond: () => {return " + traversal.traverse(cond).getCode() + ";}");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler-cli",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.85",
|
|
4
4
|
"description": "Transpiler - Command Line Interface",
|
|
5
5
|
"funding": "https://github.com/sponsors/larshp",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"@abaplint/core": "^2.120.48",
|
|
31
|
-
"@abaplint/transpiler": "^2.13.
|
|
31
|
+
"@abaplint/transpiler": "^2.13.85",
|
|
32
32
|
"@types/glob": "^9.0.0",
|
|
33
33
|
"@types/node": "^26.4.1",
|
|
34
34
|
"@types/progress": "^2.0.7",
|