Comparing version 1.2.3 to 1.2.4
@@ -97,3 +97,3 @@ "use strict"; | ||
} | ||
return [4 /*yield*/, compileInline(block.value, ctx)]; | ||
return [4 /*yield*/, compileInline(block.value.trim(), ctx)]; | ||
case 1: return [2 /*return*/, _a.sent()]; | ||
@@ -159,3 +159,3 @@ case 2: | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, inside.value.trim()]; | ||
return [2 /*return*/, inside.value]; | ||
}); | ||
@@ -173,6 +173,6 @@ }); | ||
_a = utils_1.matchRecursive(code, /\{/g, /\}/g), value1 = _a[0].value, value2 = _a[1].value; | ||
out = value1; | ||
out = value1.trim(); | ||
out += '{'; | ||
_b = out; | ||
return [4 /*yield*/, compile(value2, ctx)]; | ||
return [4 /*yield*/, compile(value2.trim(), ctx)]; | ||
case 1: | ||
@@ -192,3 +192,3 @@ out = _b + _c.sent(); | ||
left = inside.left.value.trim().substring(1); | ||
return [2 /*return*/, "" + left + inside.value.trim() + "}"]; | ||
return [2 /*return*/, "" + left + inside.value + "}"]; | ||
}); | ||
@@ -207,3 +207,3 @@ }); | ||
blocks = utils_1.matchRecursive(code, /\{/g, /\}/g); | ||
return [4 /*yield*/, utils_1.loopAsync(blocks, function (block) { return __awaiter(_this, void 0, void 0, function () { | ||
return [4 /*yield*/, utils_1.loopAsync(blocks, function (block, i) { return __awaiter(_this, void 0, void 0, function () { | ||
var result; | ||
@@ -214,5 +214,8 @@ return __generator(this, function (_a) { | ||
if (block.name === types_1.MuchResultTypes.OUTSIDE) { | ||
return [2 /*return*/, block.value]; | ||
if (i === 0) { | ||
return [2 /*return*/, block.value + '{']; | ||
} | ||
return [2 /*return*/, '}' + block.value + '{']; | ||
} | ||
return [4 /*yield*/, compile(block.value, ctx)]; | ||
return [4 /*yield*/, compile(block.value.trim(), ctx)]; | ||
case 1: | ||
@@ -226,3 +229,3 @@ result = _a.sent(); | ||
results = _a.sent(); | ||
return [2 /*return*/, results.join('')]; | ||
return [2 /*return*/, results.join('') + '}']; | ||
} | ||
@@ -269,6 +272,6 @@ }); | ||
_a = utils_1.matchRecursive(code, /\{/g, /\}/g), value1 = _a[0].value, value2 = _a[1].value; | ||
out = value1; | ||
out = value1.trim(); | ||
out += '{'; | ||
_b = out; | ||
return [4 /*yield*/, compile(value2, ctx)]; | ||
return [4 /*yield*/, compile(value2.trim(), ctx)]; | ||
case 1: | ||
@@ -275,0 +278,0 @@ out = _b + _c.sent(); |
{ | ||
"name": "atat", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"author": "Sergey Golub", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
63876
1181