@abaplint/transpiler 2.13.83 → 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.
|
@@ -36,7 +36,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36
36
|
exports.WaitTranspiler = void 0;
|
|
37
37
|
const abaplint = __importStar(require("@abaplint/core"));
|
|
38
38
|
const chunk_1 = require("../chunk");
|
|
39
|
-
const expressions_1 = require("../expressions");
|
|
40
39
|
class WaitTranspiler {
|
|
41
40
|
transpile(node, traversal) {
|
|
42
41
|
const options = [];
|
|
@@ -45,10 +44,6 @@ class WaitTranspiler {
|
|
|
45
44
|
options.push("seconds: " + traversal.traverse(seconds).getCode());
|
|
46
45
|
}
|
|
47
46
|
const concat = node.concatTokens().toUpperCase();
|
|
48
|
-
if (concat.includes(" UNTIL ") === false && seconds) {
|
|
49
|
-
const sec = new expressions_1.SourceTranspiler(true).transpile(seconds, traversal).getCode();
|
|
50
|
-
return new chunk_1.Chunk().appendString(`await new Promise(r => setTimeout(r, ${sec} * 1000));`);
|
|
51
|
-
}
|
|
52
47
|
const cond = node.findFirstExpression(abaplint.Expressions.Cond);
|
|
53
48
|
if (cond) {
|
|
54
49
|
options.push("cond: () => {return " + traversal.traverse(cond).getCode() + ";}");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abaplint/transpiler",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.85",
|
|
4
4
|
"description": "Transpiler",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"author": "abaplint",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@abaplint/core": "^2.120.
|
|
32
|
+
"@abaplint/core": "^2.120.48",
|
|
33
33
|
"source-map": "^0.8.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|