@marko/translator-default 6.1.0 → 6.1.1
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/tag/attribute-tag.js +1 -1
- package/dist/tag/util.js +2 -1
- package/package.json +3 -3
@@ -131,7 +131,7 @@ function translateAttributeTag(tag) {
|
|
131
131
|
}
|
132
132
|
|
133
133
|
function getAttrTagObject(tag) {
|
134
|
-
const attrs = (0, _util.getAttrs)(tag);
|
134
|
+
const attrs = (0, _util.getAttrs)(tag, false, true);
|
135
135
|
|
136
136
|
if (_compiler.types.isNullLiteral(attrs)) {
|
137
137
|
return _compiler.types.objectExpression([]);
|
package/dist/tag/util.js
CHANGED
@@ -3,7 +3,7 @@ var _compiler = require("@marko/compiler");
|
|
3
3
|
var _classValue = _interopRequireDefault(require("marko/src/runtime/helpers/class-value"));
|
4
4
|
var _styleValue = _interopRequireDefault(require("marko/src/runtime/helpers/style-value"));
|
5
5
|
|
6
|
-
function getAttrs(path, preserveNames) {
|
6
|
+
function getAttrs(path, preserveNames, isAttrTag) {
|
7
7
|
const { node } = path;
|
8
8
|
const {
|
9
9
|
extra,
|
@@ -109,6 +109,7 @@ function getAttrs(path, preserveNames) {
|
|
109
109
|
properties.length === 0 ?
|
110
110
|
_compiler.types.nullLiteral() :
|
111
111
|
!hasAttributeTags &&
|
112
|
+
!isAttrTag &&
|
112
113
|
properties.length === 1 &&
|
113
114
|
_compiler.types.isSpreadElement(properties[0]) ?
|
114
115
|
properties[0].argument :
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@marko/translator-default",
|
3
|
-
"version": "6.1.
|
3
|
+
"version": "6.1.1",
|
4
4
|
"description": "Translates Marko templates to the default Marko runtime.",
|
5
5
|
"keywords": [
|
6
6
|
"babel",
|
@@ -34,8 +34,8 @@
|
|
34
34
|
"self-closing-tags": "^1.0.1"
|
35
35
|
},
|
36
36
|
"devDependencies": {
|
37
|
-
"@marko/compiler": "^5.38.
|
38
|
-
"marko": "^5.36.
|
37
|
+
"@marko/compiler": "^5.38.2",
|
38
|
+
"marko": "^5.36.2"
|
39
39
|
},
|
40
40
|
"peerDependencies": {
|
41
41
|
"@marko/compiler": "^5.16.1",
|