pawa-ssr 1.3.28 → 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 +2 -2
- package/pawaElement.js +1 -1
- package/power.js +1 -2
- package/test/index.js +3 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pawa-ssr",
|
|
3
|
-
"version": "1.3.
|
|
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.
|
|
28
|
+
"pawajs": "^1.5.2"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/pawaElement.js
CHANGED
|
@@ -201,7 +201,7 @@ class PawaElement {
|
|
|
201
201
|
return
|
|
202
202
|
}
|
|
203
203
|
if ( !attr.name.startsWith(':')) {
|
|
204
|
-
if( attr.name.startsWith('c-')||attr.name.startsWith('pawa-')
|
|
204
|
+
if( attr.name.startsWith('c-')||attr.name.startsWith('pawa-') || attr.name.startsWith('p:c') || attr.name.startsWith('state-')) return
|
|
205
205
|
let name=''
|
|
206
206
|
if (attr.name.startsWith('-')) {
|
|
207
207
|
name=attr.name.slice(1)
|
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
|
-
|
|
320
|
-
template.appendChild(el)
|
|
319
|
+
stream(template.outerHTML)
|
|
321
320
|
comment.replaceWith(template)
|
|
322
321
|
endComment.remove()
|
|
323
322
|
}
|
package/test/index.js
CHANGED