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

node-rest-client

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-rest-client - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

.npmignore

10

lib/node-rest-client.js

@@ -198,4 +198,4 @@ var http = require('http'),

var ConnectManager = {
"xmlctype":["application/xml"],
"jsonctype":["application/json"],
"xmlctype":["application/xml","application/xml;charset=utf-8"],
"jsonctype":["application/json","application/json;charset=utf-8"],
"isXML":function(content){

@@ -290,2 +290,5 @@ var result = false;

debug("typeof data es ", typeof data);
debug("content-type es", content);
// XML data need to be parsed as JS object

@@ -296,4 +299,3 @@ if (self.isXML(content)){

});
}else if (self.isJSON(content)){
debug("typeof data es ", typeof data);
}else if (self.isJSON(content)){
callback(JSON.parse(data), res);

@@ -300,0 +302,0 @@ }else{

2

package.json

@@ -5,3 +5,3 @@ {

"description": "node API REST client",
"version": "0.0.3",
"version": "0.0.4",
"repository": {

@@ -8,0 +8,0 @@ "type":"git",

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