Comparing version 0.3.0 to 0.3.1
@@ -9,3 +9,3 @@ /** | ||
* | ||
* @version 0.3.0 | ||
* @version 0.3.1 | ||
*/ | ||
@@ -500,2 +500,7 @@ | ||
} | ||
else if(typeof modules === 'object') { | ||
modules.define('vow', function(provide) { | ||
provide(Vow); | ||
}); | ||
} | ||
else if(typeof define === 'function') { | ||
@@ -502,0 +507,0 @@ define(function(require, exports, module) { |
{ | ||
"name" : "vow", | ||
"version" : "0.3.0", | ||
"version" : "0.3.1", | ||
"description" : "Promises/A+ proposal compatible promises library", | ||
"homepage" : "https://github.com/dfilatov/jspromise", | ||
"keywords" : ["promise", "a+"], | ||
"keywords" : ["nodejs", "browser", "async", "promise", "a+"], | ||
"author" : "Dmitry Filatov <dfilatov@yandex-team.ru>", | ||
@@ -8,0 +8,0 @@ "contributors" : [{ |
@@ -29,2 +29,3 @@ <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> | ||
* [reject](#rejectreason) | ||
* [notify](#notifyvalue) | ||
* [isFulfilled](#isfulfilled) | ||
@@ -34,5 +35,6 @@ * [isRejected](#isrejected) | ||
* [valueOf](#valueof) | ||
* [then](#thenonfulfilled-onrejected) | ||
* [then](#thenonfulfilled-onrejected-onprogress) | ||
* [fail](#failonrejected) | ||
* [always](#alwaysonresolved) | ||
* [progress](#progressonprogress) | ||
* [spread](#spreadonfulfilled-onrejected) | ||
@@ -45,5 +47,6 @@ * [done](#done) | ||
* [isPromise](#ispromisevalue) | ||
* [when](#whenvalue-onfulfilled-onrejected) | ||
* [when](#whenvalue-onfulfilled-onrejected-onprogress) | ||
* [fail](#failvalue-onrejected) | ||
* [always](#alwaysvalue-onresolved) | ||
* [progress](#progressvalue-onprogress) | ||
* [spread](#spreadvalue-onfulfilled-onrejected) | ||
@@ -84,2 +87,5 @@ * [done](#donevalue) | ||
```` | ||
####notify(value)#### | ||
Notify promise for progress with given ````value```` | ||
####isFulfilled()#### | ||
@@ -118,6 +124,7 @@ Returns whether the promise is fulfilled | ||
####then([onFulfilled], [onRejected])#### | ||
####then([onFulfilled], [onRejected], [onProgress])#### | ||
Arranges for: | ||
* ````onFulfilled```` to be called with the value after promise is fulfilled, | ||
* ````onRejected```` to be called with the rejection reason after promise is rejected. | ||
* ````onProgress```` to be called with the value when promise is notified for progress. | ||
@@ -129,3 +136,4 @@ Returns a new promise. See [Promises/A+ specification](https://github.com/promises-aplus/promises-spec) for details. | ||
function() { }, // to be called after promise is fulfilled | ||
function() { }); // to be called after promise is rejected | ||
function() { }, // to be called after promise is rejected | ||
function() { } // to be called when promise is notified); | ||
```` | ||
@@ -153,2 +161,5 @@ | ||
####progress(onProgress)#### | ||
Shortcut for ````then(null, null, onProgress)````. | ||
####spread([onFulfilled], [onRejected])#### | ||
@@ -222,4 +233,4 @@ Like "then", but "spreads" the array into a variadic value handler. | ||
####when(value, [onFulfilled], [onRejected])#### | ||
Static equivalent for [promise.then](#thenonfulfilled-onrejected). If given ````value```` is not a promise, ````value```` is equivalent to fulfilled promise. | ||
####when(value, [onFulfilled], [onRejected], [onProgress])#### | ||
Static equivalent for [promise.then](#thenonfulfilled-onrejected-onprogress). If given ````value```` is not a promise, ````value```` is equivalent to fulfilled promise. | ||
@@ -232,2 +243,5 @@ ####fail(value, onRejected)#### | ||
####progress(value, onProgress)#### | ||
Static equivalent for [promise.progress](#progressonprogress). If given ````value```` is not a promise, ````value```` is equivalent to fulfilled promise. | ||
####spread(value, [onFulfilled], [onRejected])#### | ||
@@ -234,0 +248,0 @@ Static equivalent for [promise.spread](#spreadonfulfilled-onrejected). |
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
1212279
17241
341