mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +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",
|
||||
"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.",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -84,7 +84,7 @@ export function renderToString(callback: RenderToStringCallback, applicationBase
|
||||
|
||||
// Actually perform the rendering
|
||||
bootFuncPromiseWithTimeout.then(successResult => {
|
||||
callback(null, { html: successResult.html, globals: successResult.globals });
|
||||
callback(null, successResult);
|
||||
}, error => {
|
||||
callback(error, null);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user