Comparing version 0.1.0 to 0.1.1
@@ -42,2 +42,3 @@ var knox = require('knox') | ||
var downloader = new EventEmitter(); | ||
var headers; | ||
var amountDone = 0; | ||
@@ -51,2 +52,3 @@ var amountTotal; | ||
amountTotal = parseInt(resp.headers['content-length'], 10); | ||
headers = resp.headers; | ||
var writeStream = fs.createWriteStream(localFile); | ||
@@ -74,3 +76,3 @@ writeStream.on('error', onError); | ||
writeStream.end(); | ||
downloader.emit('end'); | ||
downloader.emit('end', { headers: headers }); | ||
} | ||
@@ -83,2 +85,2 @@ function onData(data) { | ||
return downloader; | ||
}; | ||
}; |
{ | ||
"name": "s3", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "high level amazon s3 client using knox as a backend", | ||
@@ -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
4321
74