marko 5.33.17 → 5.33.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -597,7 +597,12 @@ var proto = AsyncStream.prototype = {
597
597
  var str =
598
598
  "<" +
599
599
  tagName +
600
- markoAttr(this, componentDef, props, key) +
600
+ markoAttr(
601
+ this,
602
+ componentDef,
603
+ props,
604
+ key && key[0] === "@" ? key : undefined
605
+ ) +
601
606
  attrsHelper(elementAttrs);
602
607
 
603
608
  if (selfClosingTags.voidElements.indexOf(tagName) !== -1) {
@@ -23,7 +23,7 @@ module.exports = function dataMarko(out, componentDef, props, key) {
23
23
  }
24
24
  }
25
25
 
26
- if (key && key[0] === "@") {
26
+ if (key) {
27
27
  result +=
28
28
  ' data-marko-key="' +
29
29
  escapeDoubleQuotes(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "marko",
3
- "version": "5.33.17",
3
+ "version": "5.33.18",
4
4
  "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.",
5
5
  "keywords": [
6
6
  "front-end",
@@ -64,8 +64,8 @@
64
64
  "build": "babel ./src --out-dir ./dist --extensions .js --copy-files --config-file ../../babel.config.js --env-name=production"
65
65
  },
66
66
  "dependencies": {
67
- "@marko/compiler": "^5.35.12",
68
- "@marko/translator-default": "^5.32.14",
67
+ "@marko/compiler": "^5.35.13",
68
+ "@marko/translator-default": "^5.32.15",
69
69
  "app-module-path": "^2.2.0",
70
70
  "argly": "^1.2.0",
71
71
  "browser-refresh-client": "1.1.4",
@@ -597,7 +597,12 @@ var proto = (AsyncStream.prototype = {
597
597
  var str =
598
598
  "<" +
599
599
  tagName +
600
- markoAttr(this, componentDef, props, key) +
600
+ markoAttr(
601
+ this,
602
+ componentDef,
603
+ props,
604
+ key && key[0] === "@" ? key : undefined,
605
+ ) +
601
606
  attrsHelper(elementAttrs);
602
607
 
603
608
  if (selfClosingTags.voidElements.indexOf(tagName) !== -1) {
@@ -23,7 +23,7 @@ module.exports = function dataMarko(out, componentDef, props, key) {
23
23
  }
24
24
  }
25
25
 
26
- if (key && key[0] === "@") {
26
+ if (key) {
27
27
  result +=
28
28
  ' data-marko-key="' +
29
29
  escapeDoubleQuotes(