Comparing version 2.3.9 to 2.3.10
2.3.10 / 2015-08-12 | ||
================== | ||
* fix: add alias urllib.curl() | ||
* chore: add decodeBodyByCharset error debug log | ||
2.3.9 / 2015-07-23 | ||
@@ -3,0 +9,0 @@ ================== |
@@ -137,2 +137,5 @@ /**! | ||
// alias to curl | ||
exports.curl = exports.request; | ||
function makeCallback(resolve, reject) { | ||
@@ -560,3 +563,4 @@ return function (err, data, res) { | ||
data = decodeBodyByCharset(data, res); | ||
} catch (_) { | ||
} catch (e) { | ||
debug('decodeBodyByCharset error: %s', e); | ||
// if error, dont touch it | ||
@@ -563,0 +567,0 @@ return done(null, data, res); |
{ | ||
"name": "urllib", | ||
"version": "2.3.9", | ||
"version": "2.3.10", | ||
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more.", | ||
@@ -25,5 +25,5 @@ "keywords": [ | ||
"scripts": { | ||
"test": "node_modules/.bin/mocha -R spec -t 20000 -r should -r should-http test/*.test.js", | ||
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -t 20000 -r should -r should-http test/*.test.js", | ||
"test-travis": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -t 20000 -r should -r should-http test/*.test.js", | ||
"test": "node_modules/.bin/mocha -R spec -t 30000 -r should -r should-http test/*.test.js", | ||
"test-cov": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha -- -t 30000 -r should -r should-http test/*.test.js", | ||
"test-travis": "node --harmony node_modules/.bin/istanbul cover node_modules/.bin/_mocha --report lcovonly -- -t 30000 -r should -r should-http test/*.test.js", | ||
"jshint": "jshint .", | ||
@@ -30,0 +30,0 @@ "autod": "autod -w --prefix '~' -t test -e examples", |
45510
679