Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atat

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atat - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

25

lib/compiler.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc