Comparing version 0.3.4 to 0.3.5
0.3.5 / 2013-07-10 | ||
================== | ||
* fixed writeSteam receive incomplete bug | ||
* update makefile | ||
* add coveralls | ||
* remove 0.11 from travis | ||
* add patch for node 0.6 | ||
* fixed https request timeout tests | ||
* use blanket instead of jscover | ||
0.3.4 / 2013-03-06 | ||
@@ -3,0 +14,0 @@ ================== |
@@ -10,4 +10,7 @@ /** | ||
var qs = require('querystring'); | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../', 'package.json'))); | ||
var USER_AGENT = exports.USER_AGENT = 'node-urllib/1.0'; | ||
var USER_AGENT = exports.USER_AGENT = 'node-urllib/' + pkg.version; | ||
var TIME_OUT = exports.TIME_OUT = 60000; // 60 seconds | ||
@@ -49,2 +52,3 @@ | ||
* If you use this, callback's data should be null. | ||
* We will just `pipe(ws, {end: true})`. | ||
* - {String} [type]: optional, could be GET | POST | DELETE | PUT, default is GET | ||
@@ -83,4 +87,5 @@ * - {String} [dataType]: optional, `text` or `json`, default is text | ||
} | ||
var host = info.hostname || info.host || 'localhost'; | ||
var options = { | ||
host: info.hostname || info.host || 'localhost', | ||
host: host, | ||
path: info.path || '/', | ||
@@ -143,6 +148,7 @@ method: method, | ||
if (writeStream) { | ||
res.on('end', callback.bind(null, null, null, res)); | ||
return res.pipe(writeStream); | ||
writeStream.on('close', done.bind(null, null, null, res)); | ||
return res.pipe(writeStream, {end: true}); | ||
} | ||
var chunks = [], size = 0; | ||
var chunks = []; | ||
var size = 0; | ||
res.on('data', function (chunk) { | ||
@@ -149,0 +155,0 @@ size += chunk.length; |
{ | ||
"name": "urllib", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more.", | ||
@@ -14,3 +14,5 @@ "keywords": [ "urllib", "http", "urlopen", "curl", "wget" ], | ||
"scripts": { | ||
"test": "make test" | ||
"test": "make test-all", | ||
"blanket": { "pattern": "urllib/lib" }, | ||
"travis-cov": { "threshold": 98 } | ||
}, | ||
@@ -23,5 +25,9 @@ "dependencies": { | ||
"pedding": "*", | ||
"jscover": "*", | ||
"blanket": "*", | ||
"travis-cov": "*", | ||
"coveralls": "*", | ||
"mocha-lcov-reporter": "*", | ||
"formstream": "*", | ||
"agentkeepalive": "*", | ||
"node-patch": "*", | ||
"mocha": ">=0.14.1" | ||
@@ -28,0 +34,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
# urllib [![Build Status](https://secure.travis-ci.org/TBEDP/urllib.png?branch=master)](http://travis-ci.org/TBEDP/urllib) | ||
# urllib [![Build Status](https://secure.travis-ci.org/TBEDP/urllib.png?branch=master)](http://travis-ci.org/TBEDP/urllib) [![Coverage Status](https://coveralls.io/repos/TBEDP/urllib/badge.png)](https://coveralls.io/r/TBEDP/urllib) | ||
@@ -7,3 +7,3 @@ ![logo](https://raw.github.com/TBEDP/urllib/master/logo.png) | ||
* jscoverage: [98%](http://fengmk2.github.com/coverage/urllib.html) | ||
* jscoverage: [99%](http://fengmk2.github.com/coverage/urllib.html) | ||
@@ -10,0 +10,0 @@ ## Install |
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
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
13080
185
10
1
1