pawa-ssr 1.3.29 → 1.3.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawa-ssr",
3
- "version": "1.3.29",
3
+ "version": "1.3.30",
4
4
  "type": "module",
5
5
  "description": "pawajs ssr libary",
6
6
  "main": "index.js",
@@ -25,6 +25,6 @@
25
25
  "homepage": "https://github.com/Allisboy/pawajs-ssr#readme",
26
26
  "dependencies": {
27
27
  "linkedom": "^0.18.11",
28
- "pawajs": "^1.5.1"
28
+ "pawajs": "^1.5.2"
29
29
  }
30
30
  }
package/power.js CHANGED
@@ -316,8 +316,7 @@ export const For=async(el,attr,stream)=>{
316
316
  stream(`<!--${endComment.data}-->`)
317
317
  }else{
318
318
  template.setAttribute('pawa-render',true)
319
- stream(`<template pawa-render="true">${el.outerHTML}</template>`)
320
- template.appendChild(el)
319
+ stream(template.outerHTML)
321
320
  comment.replaceWith(template)
322
321
  endComment.remove()
323
322
  }
package/test/index.js CHANGED
@@ -12,6 +12,9 @@ const app=`
12
12
  <check></check>
13
13
  <check-2></check-2>
14
14
  </app>
15
+ <div state-array="['astro']">
16
+ <span for-each="item,i in array.value" for-key="{{item}}">@{item}</span>
17
+ </div>
15
18
  </div>
16
19
  `
17
20
  const {toString}=await startApp(app)