@marko/compiler 5.39.18 → 5.39.20
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.
|
@@ -282,7 +282,14 @@ function expressionCouldHaveUnenclosedWhitespace(node) {
|
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
+
/**
|
|
286
|
+
* @param {import("@marko/compiler").types.Expression} node
|
|
287
|
+
*/
|
|
285
288
|
function statementCouldHaveUnenclosedNewline(node) {
|
|
289
|
+
if (node.leadingComments?.length || node.trailingComments?.length) {
|
|
290
|
+
return true;
|
|
291
|
+
}
|
|
292
|
+
|
|
286
293
|
switch (node.type) {
|
|
287
294
|
case "VariableDeclaration":
|
|
288
295
|
return node.declarations.length > 1;
|
|
@@ -131,8 +131,8 @@ function find(dirname, registeredTaglibs, tagDiscoveryDirs) {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
for (
|
|
135
|
-
helper.addTaglib(
|
|
134
|
+
for (let i = registeredTaglibs.length; i--;) {
|
|
135
|
+
helper.addTaglib(registeredTaglibs[i]);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
findCache[dirname] = found;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
|
-
"version": "5.39.
|
|
3
|
+
"version": "5.39.20",
|
|
4
4
|
"description": "Marko template to JS compiler.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"babel",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"source-map-support": "^0.5.21"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
|
-
"marko": "^5.37.
|
|
90
|
+
"marko": "^5.37.31"
|
|
91
91
|
},
|
|
92
92
|
"engines": {
|
|
93
93
|
"node": "18 || 20 || >=22"
|