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.0 to 0.2.1

12

main.js

@@ -20,7 +20,11 @@ // Generated by CoffeeScript 1.3.3

uri: this.host + path
}, function(error, response, data) {
if (typeof data === "string") {
data = JSON.parse(data);
}, function(error, response, body) {
try {
if (typeof data === "string") {
body = JSON.parse(body);
}
return callback(error, response, body);
} catch (err) {
return callback(error, response, body);
}
return callback(error, response, data);
});

@@ -27,0 +31,0 @@ };

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

],
"version": "0.2.0",
"version": "0.2.1",
"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