s3-blob-store
Advanced tools
Comparing version 1.1.1 to 1.2.1
@@ -19,2 +19,3 @@ | ||
S3BlobStore.prototype.createReadStream = function(opts) { | ||
if (typeof opts === 'string') opts = {key: opts} | ||
var config = { client: this.s3, params: this.downloadParams(opts) }; | ||
@@ -60,2 +61,3 @@ var stream = downloader(config); | ||
} | ||
if (typeof opts === 'string') opts = {key: opts} | ||
var params = this.uploadParams(opts) | ||
@@ -86,2 +88,3 @@ var proxy = through(); | ||
S3BlobStore.prototype.exists = function(opts, done) { | ||
if (typeof opts === 'string') opts = {key: opts} | ||
this.s3.headObject({ Bucket: this.bucket, Key: opts.key }, function(err, res){ | ||
@@ -88,0 +91,0 @@ if (err && err.statusCode === 404) return done(null, false); |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "1.1.1", | ||
"version": "1.2.1", | ||
"repository": { | ||
@@ -13,0 +13,0 @@ "type": "git", |
7831
112