In preparation for supporting redirections, aspnet-prerendering now passes through all boot func resolution props to .NET code

This commit is contained in:
SteveSandersonMS
2016-09-09 11:06:36 +01:00
parent 874575ba92
commit c2c45b04df
2 changed files with 2 additions and 2 deletions

View File

@@ -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": {

View File

@@ -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);
}); });