gulp-azure-storage
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -7,2 +7,3 @@ var azure = require('azure-storage'); | ||
var createReadStream = require('streamifier').createReadStream; | ||
var mime = require('mime'); | ||
@@ -23,7 +24,7 @@ module.exports = function (opts) { | ||
var that = this; | ||
if (file.isDirectory()) { | ||
return; | ||
} | ||
q.push(function(cb) { | ||
@@ -34,6 +35,6 @@ var istream = file.isBuffer() ? createReadStream(file.contents) : file.contents; | ||
prefix + file.relative, | ||
{ metadata: { fsmode: file.stat.mode } }, | ||
{ metadata: { fsmode: file.stat.mode }, contentType: mime.lookup(file.relative) }, | ||
function(err) { | ||
if (err) { return cb(err); } | ||
that.push(file); | ||
@@ -43,3 +44,3 @@ cb(); | ||
); | ||
istream.pipe(ostream); | ||
@@ -68,4 +69,4 @@ }); | ||
}); | ||
return stream; | ||
}; | ||
}; |
{ | ||
"name": "gulp-azure-storage", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Gulp plugin to download and upload files to/from the Azure blob storage", | ||
@@ -25,2 +25,3 @@ "main": "index.js", | ||
"event-stream": "^3.1.7", | ||
"mime": "^1.3.4", | ||
"optimist": "^0.6.1", | ||
@@ -27,0 +28,0 @@ "progress": "^1.1.8", |
7459
170
10
+ Addedmime@^1.3.4
+ Addedmime@1.6.0(transitive)