New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cloudinary

Package Overview
Dependencies
Maintainers
1
Versions
116
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 1.0.13 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc