Comparing version 6.0.1 to 6.1.0
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -25,3 +25,6 @@ 'use strict'; | ||
}) | ||
fn.apply(self, args) | ||
var res = fn.apply(self, args) | ||
if (res && (typeof res === 'object' || typeof res === 'function') && typeof res.then === 'function') { | ||
resolve(res) | ||
} | ||
}) | ||
@@ -28,0 +31,0 @@ } |
{ | ||
"name": "promise", | ||
"version": "6.0.1", | ||
"version": "6.1.0", | ||
"description": "Bare bones Promises/A+ implementation", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ // should work in any browser without browserify |
@@ -0,0 +0,0 @@ // not "use strict" so we can declare global "Promise" |
@@ -1,2 +0,2 @@ | ||
<a href="http://promises-aplus.github.com/promises-spec"><img src="http://promises-aplus.github.com/promises-spec/assets/logo-small.png" align="right" /></a> | ||
<a href="https://promisesaplus.com/"><img src="https://promisesaplus.com/assets/logo-small.png" align="right" /></a> | ||
# promise | ||
@@ -23,3 +23,3 @@ | ||
```html | ||
<script src="https://www.promisejs.org/polyfills/promise-4.0.0.js"></script> | ||
<script src="https://www.promisejs.org/polyfills/promise-6.1.0.js"></script> | ||
``` | ||
@@ -78,3 +78,3 @@ | ||
```js | ||
Promise.all([Promise.from('a'), 'b', Promise.from('c')]) | ||
Promise.all([Promise.resolve('a'), 'b', Promise.resolve('c')]) | ||
.then(function (res) { | ||
@@ -86,3 +86,3 @@ assert(res[0] === 'a') | ||
Promise.all(Promise.from('a'), 'b', Promise.from('c')) | ||
Promise.all(Promise.resolve('a'), 'b', Promise.resolve('c')) | ||
.then(function (res) { | ||
@@ -144,2 +144,6 @@ assert(res[0] === 'a') | ||
#### Promise#catch(onRejected) | ||
Sugar for `Promise#then(null, onRejected)`, to mirror `catch` in synchronous code. | ||
#### Promise#done(onFulfilled, onRejected) | ||
@@ -146,0 +150,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
277
222
18520