pawa-ssr 1.3.27 → 1.3.29
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/index.js +1 -1
- package/package.json +2 -2
- package/pawaElement.js +9 -2
package/index.js
CHANGED
|
@@ -478,7 +478,7 @@ appContext.component._prop={children,...el._props,...slots}
|
|
|
478
478
|
let name=key
|
|
479
479
|
name=name.replace(/-([a-z])/g, (g) => g[1].toUpperCase());
|
|
480
480
|
if (appContext.restProps[name]) {
|
|
481
|
-
restProps[key]={
|
|
481
|
+
restProps[key]={...props[key]}
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
484
|
}else{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pawa-ssr",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.29",
|
|
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.
|
|
28
|
+
"pawajs": "^1.5.1"
|
|
29
29
|
}
|
|
30
30
|
}
|
package/pawaElement.js
CHANGED
|
@@ -104,7 +104,14 @@ class PawaElement {
|
|
|
104
104
|
if (this._el.hasAttribute('p:c')) {
|
|
105
105
|
this._resumeAttr=this._el.getAttribute('p:c')
|
|
106
106
|
this._el.attributes.forEach((value, index, array) => {
|
|
107
|
-
if(this._resumeAttr.includes(value.name) || value.name === 'p:c')
|
|
107
|
+
if(this._resumeAttr.includes(value.name) || value.name === 'p:c'){
|
|
108
|
+
if(value.name === 'p:c' || value.name.startsWith('c-')){
|
|
109
|
+
return
|
|
110
|
+
}else{
|
|
111
|
+
const attrName = value.name;
|
|
112
|
+
this._resumeAttr = this._resumeAttr.replace(`${attrName};`, '');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
108
115
|
if (value.name.startsWith(':')) return
|
|
109
116
|
this._resumeAttr+=`${value.name};`
|
|
110
117
|
})
|
|
@@ -194,7 +201,7 @@ class PawaElement {
|
|
|
194
201
|
return
|
|
195
202
|
}
|
|
196
203
|
if ( !attr.name.startsWith(':')) {
|
|
197
|
-
|
|
204
|
+
if( attr.name.startsWith('c-')||attr.name.startsWith('pawa-') || attr.name.startsWith('p:c') || attr.name.startsWith('state-')) return
|
|
198
205
|
let name=''
|
|
199
206
|
if (attr.name.startsWith('-')) {
|
|
200
207
|
name=attr.name.slice(1)
|