ember-fastboot-server
Advanced tools
Comparing version 0.6.0 to 0.6.1
@@ -89,2 +89,9 @@ var fs = require('fs'); | ||
}) | ||
.then(function(instance) { | ||
var fastbootInfo = instance.lookup('info:-fastboot'); | ||
return fastbootInfo.deferredPromise.then(function() { | ||
return instance; | ||
}); | ||
}) | ||
.then(serializeHTML(doc, rootElement)); | ||
@@ -91,0 +98,0 @@ }; |
@@ -0,1 +1,2 @@ | ||
var RSVP = require('rsvp'); | ||
var FastBootRequest = require('./fastboot-request'); | ||
@@ -10,5 +11,12 @@ | ||
this.response = response; | ||
this.deferredPromise = RSVP.resolve(); | ||
this.request = new FastBootRequest(request, hostWhitelist); | ||
} | ||
FastBootInfo.prototype.deferRendering = function(promise) { | ||
this.deferredPromise = this.deferredPromise.then(function() { | ||
return promise; | ||
}); | ||
} | ||
/* | ||
@@ -15,0 +23,0 @@ * Registers this FastBootInfo instance in the registry of an Ember |
{ | ||
"name": "ember-fastboot-server", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"description": "Production server for running Ember applications using FastBoot", | ||
@@ -5,0 +5,0 @@ "main": "./lib/server", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17896924
48
213686