async-future
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -144,2 +144,3 @@ /* Copyright (c) 2013 Billy Tetrud - Free to use for any purpose: MIT License*/ | ||
resolve(this, 'error', e) | ||
return this | ||
} | ||
@@ -146,0 +147,0 @@ |
@@ -145,2 +145,3 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.asyncFuture=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
resolve(this, 'error', e) | ||
return this | ||
} | ||
@@ -147,0 +148,0 @@ |
{"name":"async-future", | ||
"description": "A powerful and yet simple futures library for javascript in node.js and in-browser.", | ||
"keywords": ["future", "promise", "deferred", "async", "parallel", "thread", "concurrency"], | ||
"version":"1.0.5", | ||
"version":"1.0.6", | ||
"main": "asyncFuture.js", | ||
@@ -6,0 +6,0 @@ "author": "Billy Tetrud <bitetrudpublic@gmail.com> (https://github.com/fresheneesz/)", |
@@ -208,2 +208,3 @@ `async-future` | ||
* 1.0.6 - `Future.throw` now returns the future, so you can chain and/or return using it ( https://github.com/fresheneesz/asyncFuture/issues/2 ) | ||
* 1.0.5 - adding the `wrapSingleParameter` function | ||
@@ -210,0 +211,0 @@ * 1.0.4 |
@@ -41,3 +41,3 @@ | ||
t.test("exceptions", function(t) { | ||
this.count(8) | ||
this.count(9) | ||
@@ -58,3 +58,4 @@ f3 = new Future() | ||
}).done() | ||
f4.throw(Error("test2")) | ||
var throwReturnValue = f4.throw(Error("test2")) | ||
this.ok(throwReturnValue === f4) | ||
@@ -295,5 +296,5 @@ var f4 = new Future() | ||
if(type === 'node') | ||
var lineNumber = '309' | ||
var lineNumber = '310' | ||
else | ||
var lineNumber = '8999' | ||
var lineNumber = '9001' | ||
@@ -300,0 +301,0 @@ Future.debug=false // make sure long traces don't happen when debug is false |
Sorry, the diff of this file is too big to display
353592
9062
255