coffeehaml 0.7.2 → 0.7.3
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/dist/prettier/printer.js +4 -4
- package/package.json +2 -2
package/dist/prettier/printer.js
CHANGED
|
@@ -293,7 +293,7 @@ printElement = function(path, o, printFn) {
|
|
|
293
293
|
}
|
|
294
294
|
childDocs = (ref3 = path.map(printFn, 'children')) != null ? ref3 : [];
|
|
295
295
|
joined = joinChildrenWithBlanks(children, childDocs, o);
|
|
296
|
-
return
|
|
296
|
+
return [header, indent([hardline, joined])];
|
|
297
297
|
};
|
|
298
298
|
|
|
299
299
|
// ─── ImplicitDiv ───────────────────────────────────────────
|
|
@@ -317,7 +317,7 @@ printImplicitDiv = function(path, o, printFn) {
|
|
|
317
317
|
}
|
|
318
318
|
childDocs = (ref3 = path.map(printFn, 'children')) != null ? ref3 : [];
|
|
319
319
|
joined = joinChildrenWithBlanks(children, childDocs, o);
|
|
320
|
-
return
|
|
320
|
+
return [header, indent([hardline, joined])];
|
|
321
321
|
};
|
|
322
322
|
|
|
323
323
|
// ─── Output ────────────────────────────────────────────────
|
|
@@ -335,7 +335,7 @@ printOutput = function(path, o, printFn) {
|
|
|
335
335
|
}
|
|
336
336
|
childDocs = (ref2 = path.map(printFn, 'children')) != null ? ref2 : [];
|
|
337
337
|
joined = joinChildrenWithBlanks(children, childDocs, o);
|
|
338
|
-
return
|
|
338
|
+
return [`${marker} ${expr}`, indent([hardline, joined])];
|
|
339
339
|
};
|
|
340
340
|
|
|
341
341
|
// ─── Control Flow ──────────────────────────────────────────
|
|
@@ -403,7 +403,7 @@ printFlow = function(path, o, printFn) {
|
|
|
403
403
|
});
|
|
404
404
|
return join(hardline, ['-', childLines.join('\n')]);
|
|
405
405
|
}
|
|
406
|
-
return
|
|
406
|
+
return [header, indent([hardline, join(hardline, (ref2 = path.map(printFn, 'children')) != null ? ref2 : [])])];
|
|
407
407
|
};
|
|
408
408
|
|
|
409
409
|
printMergedFlow = function(path, o, printFn) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coffeehaml",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "Haml structure. CoffeeScript semantics. React runtime. Zero runtime. Vite-native.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -91,4 +91,4 @@
|
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"source-map": "^0.7.4"
|
|
93
93
|
}
|
|
94
|
-
}
|
|
94
|
+
}
|