Socket
Socket
Sign inDemoInstall

request-json

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-json - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

13

main.js

@@ -55,2 +55,15 @@ // Generated by CoffeeScript 1.3.3

JsonClient.prototype.sendFile = function(path, filePath, callback) {
var form, req;
req = request.post("" + this.host + path, callback);
form = req.form();
return form.append('file', fs.createReadStream(filePath));
};
JsonClient.prototype.saveFile = function(path, filePath, callback) {
var stream;
stream = client.getFile(path, callback);
return stream.pipe(fs.createWriteStream(filePath));
};
return JsonClient;

@@ -57,0 +70,0 @@

2

package.json

@@ -16,3 +16,3 @@ {

],
"version": "0.2.2",
"version": "0.2.3",
"homepage": "https://github.com/mycozycloud/request-json/",

@@ -19,0 +19,0 @@ "bugs": {

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