Comparing version 0.2.8 to 0.2.9
/* | ||
Yaku v0.2.8 | ||
Yaku v0.2.9 | ||
(c) 2015 Yad Smood. http://ysmood.org | ||
License MIT | ||
*/ | ||
(function(root) { | ||
(function() { | ||
var Yaku; | ||
return Yaku = (function() { | ||
'use strict'; | ||
var $circularChain, $fromPrevious, $invalid_argument, $nil, $noop, $pending, $promiseTrace, $rejected, $resolved, $settlerTrace, $tryCatchFn, $tryErr, addHandler, assertIterable, callHanler, genScheduler, genSettler, genStackInfo, genTraceInfo, genTryCatcher, genTypeError, getThen, isFunction, isLongStackTrace, isObject, newEmptyYaku, release, root, scheduleHandler, scheduleUnhandledRejection, settlePromise, settleWithX, settleXthen, tryCatcher; | ||
root = typeof global === 'object' ? global : window; | ||
/** | ||
@@ -29,3 +33,2 @@ * This class follows the [Promises/A+](https://promisesaplus.com) and | ||
*/ | ||
var $circularChain, $fromPrevious, $invalid_argument, $nil, $noop, $pending, $promiseTrace, $rejected, $resolved, $settlerTrace, $tryCatchFn, $tryErr, addHandler, assertIterable, callHanler, genScheduler, genSettler, genStackInfo, genTraceInfo, genTryCatcher, genTypeError, getThen, isFunction, isLongStackTrace, isObject, newEmptyYaku, release, scheduleHandler, scheduleUnhandledRejection, settlePromise, settleWithX, settleXthen, tryCatcher; | ||
@@ -650,2 +653,5 @@ function Yaku(executor) { | ||
} | ||
if (!isLongStackTrace) { | ||
p._pre = $nil; | ||
} | ||
i = 0; | ||
@@ -750,2 +756,2 @@ len = p._pCount; | ||
})(); | ||
})(this || window); | ||
})(); |
{ | ||
"name": "yaku", | ||
"version": "0.2.8", | ||
"version": "0.2.9", | ||
"description": "An ES6 Promise/A+ implementation that doesn't hurt.", | ||
@@ -31,7 +31,7 @@ "main": "lib/yaku.js", | ||
"devDependencies": { | ||
"bluebird": "2.9.30", | ||
"bluebird": "2.9.33", | ||
"coffee-script": "1.9.3", | ||
"coffeelint": "1.10.1", | ||
"es6-promise": "2.3.0", | ||
"nokit": "0.8.3", | ||
"nokit": "0.9.1", | ||
"promises-aplus-tests": "*", | ||
@@ -38,0 +38,0 @@ "q": "1.4.1", |
@@ -21,3 +21,3 @@ <a href="http://promisesaplus.com/"> | ||
- The minified file is only 3.7KB ([Bluebird][] / 73KB, [ES6-promise][] / 18KB) | ||
- The minified file is only 3.8KB ([Bluebird][] / 73KB, [ES6-promise][] / 18KB) | ||
- 100% compliant with Promise/A+ specs | ||
@@ -68,3 +68,3 @@ - Better performance than the native Promise | ||
| -------------------- | --------- | -------------- | --------- | ------- | --------- | | ||
| Yaku | 872/872 | 283ms | 68ms | ++ | 3.7KB | | ||
| Yaku | 872/872 | 283ms | 68ms | ++ | 3.8KB | | ||
| [Bluebird][] v2.9 | 872/872 | 272ms | 164ms | +++++++ | 73KB | | ||
@@ -107,3 +107,3 @@ | [ES6-promise][] v2.1 | 872/872 | 459ms | 110ms | + | 18KB | | ||
- ### **[constructor(executor)](src/yaku.coffee?source#L24)** | ||
- ### **[constructor(executor)](src/yaku.coffee?source#L29)** | ||
@@ -132,3 +132,3 @@ This class follows the [Promises/A+](https://promisesaplus.com) and | ||
- ### **[then(onFulfilled, onRejected)](src/yaku.coffee?source#L54)** | ||
- ### **[then(onFulfilled, onRejected)](src/yaku.coffee?source#L59)** | ||
@@ -161,3 +161,3 @@ Appends fulfillment and rejection handlers to the promise, | ||
- ### **[catch(onRejected)](src/yaku.coffee?source#L72)** | ||
- ### **[catch(onRejected)](src/yaku.coffee?source#L77)** | ||
@@ -186,3 +186,3 @@ The `catch()` method returns a Promise and deals with rejected cases only. | ||
- ### **[@resolve(value)](src/yaku.coffee?source#L88)** | ||
- ### **[@resolve(value)](src/yaku.coffee?source#L93)** | ||
@@ -207,3 +207,3 @@ The `Promise.resolve(value)` method returns a Promise object that is resolved with the given value. | ||
- ### **[@reject(reason)](src/yaku.coffee?source#L102)** | ||
- ### **[@reject(reason)](src/yaku.coffee?source#L107)** | ||
@@ -225,3 +225,3 @@ The `Promise.reject(reason)` method returns a Promise object that is rejected with the given reason. | ||
- ### **[@race(iterable)](src/yaku.coffee?source#L124)** | ||
- ### **[@race(iterable)](src/yaku.coffee?source#L129)** | ||
@@ -254,3 +254,3 @@ The `Promise.race(iterable)` method returns a promise that resolves or rejects | ||
- ### **[@all(iterable)](src/yaku.coffee?source#L161)** | ||
- ### **[@all(iterable)](src/yaku.coffee?source#L166)** | ||
@@ -284,3 +284,3 @@ The `Promise.all(iterable)` method returns a promise that resolves when | ||
- ### **[@onUnhandledRejection(reason)](src/yaku.coffee?source#L211)** | ||
- ### **[@onUnhandledRejection(reason)](src/yaku.coffee?source#L216)** | ||
@@ -309,3 +309,3 @@ Catch all possibly unhandled rejections. If you want to use specific | ||
- ### **[@enableLongStackTrace](src/yaku.coffee?source#L231)** | ||
- ### **[@enableLongStackTrace](src/yaku.coffee?source#L236)** | ||
@@ -312,0 +312,0 @@ It is used to enable the long stack trace. |
49257
1037