Comparing version 3.2.4 to 3.2.5
@@ -10,3 +10,4 @@ "use strict"; | ||
EventEmitter = events.EventEmitter, | ||
assured = require("assured"); | ||
assured = require("assured"), | ||
noop = require("noop6"); | ||
@@ -104,5 +105,8 @@ /** | ||
request.end(); | ||
str.then = opt_callback._.then.bind(opt_callback._); | ||
str.then = function (fn) { | ||
callback = callback || noop; | ||
return opt_callback._.then(fn); | ||
}; | ||
str.catch = opt_callback._.catch.bind(opt_callback._); | ||
return str; | ||
}; |
{ | ||
"name": "tinyreq", | ||
"version": "3.2.4", | ||
"version": "3.2.5", | ||
"description": "Tiny library for making http(s) requests.", | ||
@@ -32,2 +32,3 @@ "main": "lib/index.js", | ||
"follow-redirects": "^0.2.0", | ||
"noop6": "^1.0.6", | ||
"ul": "^5.0.0" | ||
@@ -34,0 +35,0 @@ }, |
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
117792
1678
4
+ Addednoop6@^1.0.6