@marko/compiler 5.22.0 → 5.22.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.
|
@@ -267,9 +267,9 @@ function parseMarko(file) {
|
|
|
267
267
|
onTagVar(part) {
|
|
268
268
|
currentTag.node.var = (0, _babelUtils.parseExpression)(
|
|
269
269
|
file,
|
|
270
|
-
|
|
271
|
-
part.value.start).
|
|
272
|
-
|
|
270
|
+
`(${parser.read(part.value)})=>{}`,
|
|
271
|
+
part.value.start - 1).
|
|
272
|
+
params[0];
|
|
273
273
|
},
|
|
274
274
|
|
|
275
275
|
onTagParams(part) {
|
|
@@ -337,7 +337,7 @@ function parseMarko(file) {
|
|
|
337
337
|
(0, _babelUtils.parseExpression)(
|
|
338
338
|
file,
|
|
339
339
|
`()=>${parser.read(part.body)}`,
|
|
340
|
-
part.
|
|
340
|
+
part.body.start - 4).
|
|
341
341
|
body),
|
|
342
342
|
|
|
343
343
|
part);
|
|
@@ -171,6 +171,10 @@ Object.assign(_printer.default.prototype, {
|
|
|
171
171
|
if (node.var) {
|
|
172
172
|
this.token("/");
|
|
173
173
|
this.print(node.var, node);
|
|
174
|
+
|
|
175
|
+
if (node.var.typeAnnotation) {
|
|
176
|
+
this.print(node.var.typeAnnotation, node.var);
|
|
177
|
+
}
|
|
174
178
|
}
|
|
175
179
|
|
|
176
180
|
if (node.arguments && node.arguments.length) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/compiler",
|
|
3
3
|
"description": "Marko template to JS compiler.",
|
|
4
|
-
"version": "5.22.
|
|
4
|
+
"version": "5.22.3",
|
|
5
5
|
"author": "Dylan Piercey <dpiercey@ebay.com>",
|
|
6
6
|
"bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
|
|
7
7
|
"dependencies": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"@marko/babel-utils": "^5.21.1",
|
|
19
19
|
"complain": "^1.6.0",
|
|
20
20
|
"he": "^1.2.0",
|
|
21
|
-
"htmljs-parser": "^5.
|
|
21
|
+
"htmljs-parser": "^5.1.1",
|
|
22
22
|
"jsesc": "^3.0.2",
|
|
23
23
|
"lasso-package-root": "^1.0.1",
|
|
24
24
|
"property-handlers": "^1.1.1",
|