pawa-ssr 1.3.24 → 1.3.25

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/pawaElement.js +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawa-ssr",
3
- "version": "1.3.24",
3
+ "version": "1.3.25",
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.4.39"
28
+ "pawajs": "^1.4.40"
29
29
  }
30
30
  }
package/pawaElement.js CHANGED
@@ -87,7 +87,7 @@ class PawaElement {
87
87
  setResumeAttr(name){
88
88
  if(name.startsWith(':')) return
89
89
  this._resumeAttr+=`${name};`
90
- this._el.setAttribute('p:C',this._resumeAttr)
90
+ this._el.setAttribute('p:c',this._resumeAttr)
91
91
  }
92
92
  pawaAttribute(){
93
93
  const componentAllowedAttribute=['if','else-if','for-each','switch','case','key','s-default','else']
@@ -104,7 +104,6 @@ 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._componentName && !componentAllowedAttribute.includes(value.name)) return
108
107
  if(this._resumeAttr.includes(value.name) || value.name === 'p:c')return
109
108
  if (value.name.startsWith(':')) return
110
109
  this._resumeAttr+=`${value.name};`