pawa-ssr 1.3.13 → 1.3.14
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 +8 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -375,13 +375,7 @@ const component=async (el,stream)=>{
|
|
|
375
375
|
}
|
|
376
376
|
})
|
|
377
377
|
const children=el._componentChildren
|
|
378
|
-
|
|
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
|
}
|