Comparing version 4.8.3 to 4.8.4
@@ -33,3 +33,3 @@ import Promise from './promise'; | ||
}); | ||
```` | ||
``` | ||
@@ -62,3 +62,3 @@ If any of the `promises` given to `hash` are rejected, the first promise | ||
```javascript | ||
import { hash, resovle } from 'rsvp'; | ||
import { hash, resolve } from 'rsvp'; | ||
function MyConstructor(){ | ||
@@ -65,0 +65,0 @@ this.example = resolve('Example'); |
@@ -231,4 +231,8 @@ import { config } from './config'; | ||
return promise.then(value => constructor.resolve(callback()).then(() => value), | ||
reason => constructor.resolve(callback()).then(() => { throw reason; }), label); | ||
if (typeof callback === 'function') { | ||
return promise.then(value => constructor.resolve(callback()).then(() => value), | ||
reason => constructor.resolve(callback()).then(() => { throw reason; })); | ||
} | ||
return promise.then(callback, callback); | ||
} | ||
@@ -235,0 +239,0 @@ } |
{ | ||
"name": "rsvp", | ||
"namespace": "RSVP", | ||
"version": "4.8.3", | ||
"version": "4.8.4", | ||
"description": "A lightweight library that provides tools for organizing asynchronous code", | ||
@@ -6,0 +6,0 @@ "main": "dist/rsvp.js", |
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
763813
8307