Comparing version 0.1.0 to 1.0.0
# Change History | ||
## 1.0.0 ??? | ||
## 1.0.0 (2014-04-22) | ||
* First release |
@@ -90,2 +90,7 @@ module.exports = Application; | ||
// s => s or s.start() value if available | ||
function startOrNot(s) { | ||
return function() { return s.start ? s.start() : s; }; | ||
} | ||
// Start them (if we can) in order. If the service has a start() method, it | ||
@@ -95,11 +100,11 @@ // can return a promise to delay the rest of the services from getting | ||
// that returns a promise as well. | ||
var allStarted = this._running.reduce(function(seq, service) { | ||
return seq.then(function() { | ||
return service.start ? service.start() : service; | ||
}); | ||
}, Promise.resolve()); | ||
var seq = Promise.resolve(); | ||
for (var m = 0; m < this._running.length; m++) { | ||
var s = this._running[m]; | ||
seq = seq.then(startOrNot(s)); | ||
} | ||
// Resolve the final started promise | ||
var d = this._dStart; | ||
return allStarted.then(function() { | ||
return seq.then(function() { | ||
d.resolve(this); | ||
@@ -106,0 +111,0 @@ }, |
{ | ||
"name": "billy", | ||
"version": "0.1.0", | ||
"version": "1.0.0", | ||
"description": "A minimal application harness that stays out of your way and out of your code.", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -30,2 +30,11 @@ # billy | ||
## Features | ||
* Dependency injection | ||
* Generic configuration store | ||
* Asynchronous service bootup | ||
* Extremely minimal | ||
* Service-oriented design | ||
* Compatible in all browsers and NodeJS | ||
## Tern Support | ||
@@ -32,0 +41,0 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
18407
337
1
59
0