Comparing version 0.1.0 to 0.2.0
@@ -36,3 +36,3 @@ /*global define*/ | ||
const isFuture = x => x && typeof x.fork === 'function' && x.fork.length === 2; | ||
const isFuture = x => x && typeof x.fork === 'function'; | ||
@@ -240,2 +240,5 @@ //Assert that throws TypeError. | ||
//Create a Future which rejects witth the given value. | ||
Future.reject = x => Future(rej => rej(x)); | ||
//Create a Future which resolves after the given time with the given value. | ||
@@ -242,0 +245,0 @@ Future.after = uncurry(2, n => x => Future(function Future$after$fork(rej, res){ |
{ | ||
"name": "fluture", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "A complete Fantasy Land compatible Future library", | ||
@@ -17,3 +17,3 @@ "main": "src/index.js", | ||
"test": "npm run check-version && npm run clean && npm run lint && npm run test:unit", | ||
"test:unit": "echo \"No tests yet\"" | ||
"test:unit": "mocha --ui bdd --reporter spec --check-leaks --full-trace" | ||
}, | ||
@@ -28,3 +28,2 @@ "author": "Aldwin Vlasblom <aldwin.vlasblom@gmail.com> (https://github.com/Avaq)", | ||
"eslint": "^2.2.0", | ||
"glob": "^7.0.0", | ||
"isparta": "^4.0.0", | ||
@@ -31,0 +30,0 @@ "mocha": "^2.3.3", |
@@ -16,9 +16,11 @@ # Fluture | ||
[ ] Write tests | ||
[ ] Write benchmarks | ||
[ ] Implement Traversable | ||
[ ] Implement Future.cache | ||
[ ] Implement Future.and | ||
[ ] Implement Future.or | ||
[ ] Implement Future.race | ||
* [x] Implement Future Monad | ||
* [x] Write tests | ||
* [ ] Write benchmarks | ||
* [ ] Implement Traversable | ||
* [ ] Implement Future.cache | ||
* [ ] Implement Future.and | ||
* [ ] Implement Future.or | ||
* [ ] Implement Future.race | ||
* [ ] Add test coverage | ||
@@ -25,0 +27,0 @@ ## The name |
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
9136
6
227
30