🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cloudinary

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudinary - npm Package Compare versions

Comparing version

to
1.1.0

lib/upload_stream.coffee

2

package.json

@@ -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