Comparing version 0.0.6 to 0.0.7
{ | ||
"name": "p-promise", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A simple Promises/A+ library.", | ||
@@ -5,0 +5,0 @@ "author": "Robert Katić <robert.katic@gmail.com> (https://github.com/rkatic)", |
@@ -14,8 +14,8 @@ [![Build Status](https://secure.travis-ci.org/rkatic/p.png)](http://travis-ci.org/rkatic/p) | ||
P implements a subset of the [Q](https://github.com/kriskowal/q) API. | ||
P implements a subset of the [Q](https://github.com/kriskowal/q) API with few **differences**. | ||
- `P(val)` | ||
- `P.defer()` | ||
- `P.all(promises)` | ||
- `P.allResolved(promises)` | ||
- `P.all(promises)` (array **or object** of promises) | ||
- `P.allResolved(promises)` (array **or object** of promises) | ||
- `P.onerror` | ||
@@ -30,3 +30,3 @@ - `P.nextTick(callback)` | ||
- `promise.spread(onFulfilled, onRejected)` | ||
- `promise.state` ("pending", "fulfilled, or "rejected") | ||
- `promise.value` (resolved value/exception) | ||
- **`promise.state` ("pending", "fulfilled, or "rejected")** | ||
- **`promise.value` (resolved value/exception)** |
10521