async-handlers
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -6,2 +6,8 @@ // Generated by CoffeeScript 1.9.3 | ||
extract = function(fn, callback) { | ||
if (typeof fn !== 'function') { | ||
throw Error('fn is not a function'); | ||
} | ||
if (typeof callback !== 'function') { | ||
throw Error('callback is not a function'); | ||
} | ||
return function(err, result) { | ||
@@ -8,0 +14,0 @@ if (err) { |
{ | ||
"name": "async-handlers", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Function factories for performing synchronous operations after asynchronous operations", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
3220
56