@marko/translator-default 6.0.5 → 6.0.6
Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js
CHANGED
@@ -497,6 +497,7 @@ function getRuntimeEntryFiles(output, optimize) {
|
|
497
497
|
`${base}runtime/components/attach-detach.js`,
|
498
498
|
`${base}runtime/helpers/assign.js`,
|
499
499
|
`${base}runtime/helpers/class-value.js`,
|
500
|
+
`${base}runtime/helpers/of-fallback.js`,
|
500
501
|
`${base}runtime/helpers/dynamic-tag.js`,
|
501
502
|
`${base}runtime/helpers/attr-tag.js`,
|
502
503
|
`${base}runtime/helpers/merge.js`,
|
@@ -44,10 +44,13 @@ function exit(path) {
|
|
44
44
|
block
|
45
45
|
);
|
46
46
|
} else if (ofAttr) {
|
47
|
-
let ofAttrValue = _compiler.types.
|
48
|
-
|
49
|
-
|
50
|
-
|
47
|
+
let ofAttrValue = _compiler.types.callExpression(
|
48
|
+
(0, _babelUtils.importDefault)(
|
49
|
+
path.hub.file,
|
50
|
+
"marko/src/runtime/helpers/of-fallback.js",
|
51
|
+
"of_fallback"
|
52
|
+
),
|
53
|
+
[ofAttr.value]
|
51
54
|
);
|
52
55
|
allowedAttributes.push("of");
|
53
56
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@marko/translator-default",
|
3
|
-
"version": "6.0.
|
3
|
+
"version": "6.0.6",
|
4
4
|
"description": "Translates Marko templates to the default Marko runtime.",
|
5
5
|
"keywords": [
|
6
6
|
"babel",
|
@@ -35,7 +35,7 @@
|
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
37
|
"@marko/compiler": "^5.37.4",
|
38
|
-
"marko": "^5.35.
|
38
|
+
"marko": "^5.35.7"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"@marko/compiler": "^5.16.1",
|