pawa-ssr 1.3.13 → 1.3.15

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 CHANGED
@@ -375,13 +375,7 @@ const component=async (el,stream)=>{
375
375
  }
376
376
  })
377
377
  const children=el._componentChildren
378
- const hydrate={
379
- children:children,
380
- props:{
381
- ...el._hydrateProps,
382
- },
383
- slots:{...slotHydrates},
384
- }
378
+
385
379
 
386
380
  const id=pawaGenerateId(10)
387
381
  const encodeJSON = (obj) => Buffer.from(JSON.stringify(obj)).toString('base64').replace(/\+/g, '-');
@@ -450,7 +444,13 @@ appContext.component._prop={children,...el._props,...slots}
450
444
  if (appContext?.insert){
451
445
  Object.assign(el._context,appContext.insert)
452
446
  }
453
-
447
+ const hydrate={
448
+ children:children,
449
+ props:{
450
+ ...el._hydrateProps,
451
+ },
452
+ slots:{...slotHydrates},
453
+ }
454
454
  if(typeof compo !== 'boolean' && typeof compo === 'string'){
455
455
  div.innerHTML=compo
456
456
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pawa-ssr",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
4
4
  "type":"module",
5
5
  "description": "pawajs ssr libary",
6
6
  "main": "index.js",
package/pawaElement.js CHANGED
@@ -195,6 +195,7 @@ class PawaElement {
195
195
  }else{
196
196
  name=attr.name
197
197
  }
198
+ this._hydrateProps[name]=attr.value
198
199
  const setProps=()=>{
199
200
  delete this._restProps[name]
200
201
  let hydatename
@@ -205,7 +206,6 @@ class PawaElement {
205
206
  }else{
206
207
  hydatename=':'+name
207
208
  }
208
- this._hydrateProps[name]=attr.value
209
209
  let value=attr.value
210
210
  if (value.includes('@{')) {
211
211
  const regex = /@{([^}]*)}/g;