Comparing version 1.2.0 to 1.2.1
{ | ||
"name": "uhttp", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"main": "src/uhttp.js", | ||
@@ -5,0 +5,0 @@ "ignore": [ |
@@ -464,3 +464,3 @@ /** | ||
methods.then.call(methods, parsedResponse); | ||
}, 1); | ||
}, 0); | ||
return callbacks; | ||
@@ -502,6 +502,11 @@ } | ||
res.setEncoding('utf8'); | ||
res.on('data', function (data) { | ||
var transformedResponse = transformIntoFakeXHR(request, config, res, data); | ||
var str = ''; | ||
res.on('data', function(chunk) { | ||
str += chunk; | ||
}); | ||
res.on('end', function () { | ||
var transformedResponse = transformIntoFakeXHR(request, config, res, str); | ||
config.options.transformResponse(transformedResponse); | ||
@@ -508,0 +513,0 @@ |
{ | ||
"name": "uhttp", | ||
"description": "A micro ajax http library with a unified api for browsers and nodejs", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"repository": "https://github.com/Flux159/uhttp", | ||
@@ -6,0 +6,0 @@ "homepage": "http://flux159.github.io/uhttp/", |
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
105604
1882