Comparing version 0.0.3 to 0.0.4
@@ -19,5 +19,9 @@ var knox = require('knox') | ||
Client.prototype.upload = function(localFile, remoteFile) { | ||
Client.prototype.upload = function(localFile, remoteFile, headers) { | ||
if (typeof headers != 'object') | ||
headers = { }; | ||
var uploader = new EventEmitter(); | ||
var knoxUpload = this.knox.putFile(localFile, remoteFile, function (err, resp) { | ||
var knoxUpload = this.knox.putFile(localFile, remoteFile, headers, function (err, resp) { | ||
if (err) { | ||
@@ -24,0 +28,0 @@ uploader.emit('error', err); |
{ | ||
"name": "s3", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"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
4255
73