Comparing version 0.0.6 to 0.0.7
0.0.7 / 2012-11-26 | ||
================== | ||
* try to find callback in arguments | ||
* fixed CERT_HAS_EXPIRED with `rejectUnauthorized = false` | ||
0.0.6 / 2012-11-21 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -40,3 +40,14 @@ /*! | ||
muk(mod, method, function () { | ||
var callback = arguments[arguments.length - 1]; | ||
var index = arguments.length - 1; | ||
var callback = arguments[index]; | ||
while (typeof callback !== 'function') { | ||
index--; | ||
if (index < 0) { | ||
break; | ||
} | ||
callback = arguments[index]; | ||
} | ||
if (!callback) { | ||
throw new TypeError('Can\'t find callback function'); | ||
} | ||
setTimeout(function () { | ||
@@ -43,0 +54,0 @@ callback(error); |
{ | ||
"name": "mm", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "mock mate, mock http request, fs access and so on.", | ||
@@ -5,0 +5,0 @@ "main": "index.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
12620
20884
230