cloudinary
Advanced tools
Comparing version 1.0.13 to 1.1.0
@@ -5,3 +5,3 @@ { | ||
"description": "Cloudinary NPM for node.js integration", | ||
"version": "1.0.13", | ||
"version": "1.1.0", | ||
"homepage": "http://cloudinary.com", | ||
@@ -8,0 +8,0 @@ "repository": { |
@@ -136,2 +136,12 @@ Cloudinary | ||
#### Version 1.1 upload_stream change notes | ||
The `upload_stream` method was modified to return a `Transform` stream object, we advise to change the `on('data')` and `on('end')` to pipe API: | ||
var file_reader = fs.createReadStream('my_picture.jpg').pipe(stream); | ||
if you still need to use event chanining, you can wrap `stream.write` and `stream.end` with wrapper functions | ||
var file_reader = fs.createReadStream('my_picture.jpg', {encoding: 'binary'}). | ||
on('data', function(data){stream.write(data)}).on('end', function(){stream.end()}); | ||
### cloudinary.image | ||
@@ -138,0 +148,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
415171
55
186