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.8 to 0.2.9

12

main.js

@@ -67,6 +67,14 @@ // Generated by CoffeeScript 1.3.3

JsonClient.prototype.sendFile = function(path, filePath, callback) {
var form, req;
JsonClient.prototype.sendFile = function(path, filePath, data, callback) {
var att, form, req;
if (typeof data === "function") {
callback = data;
}
req = request.post("" + this.host + path, callback);
form = req.form();
if (typeof data !== "function") {
for (att in data) {
form.append(att, data[att]);
}
}
return form.append('file', fs.createReadStream(filePath));

@@ -73,0 +81,0 @@ };

2

package.json

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

],
"version": "0.2.8",
"version": "0.2.9",
"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