mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 10:08:57 +00:00
In preparation for supporting redirections, aspnet-prerendering now passes through all boot func resolution props to .NET code
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "aspnet-prerendering",
|
"name": "aspnet-prerendering",
|
||||||
"version": "1.0.5",
|
"version": "1.0.6",
|
||||||
"description": "Helpers for server-side rendering of JavaScript applications in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
|
"description": "Helpers for server-side rendering of JavaScript applications in ASP.NET Core projects. Works in conjunction with the Microsoft.AspNetCore.SpaServices NuGet package.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ export function renderToString(callback: RenderToStringCallback, applicationBase
|
|||||||
|
|
||||||
// Actually perform the rendering
|
// Actually perform the rendering
|
||||||
bootFuncPromiseWithTimeout.then(successResult => {
|
bootFuncPromiseWithTimeout.then(successResult => {
|
||||||
callback(null, { html: successResult.html, globals: successResult.globals });
|
callback(null, successResult);
|
||||||
}, error => {
|
}, error => {
|
||||||
callback(error, null);
|
callback(error, null);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user