Socket
Socket
Sign inDemoInstall

request

Package Overview
Dependencies
0
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.3 to 2.0.4

8

main.js

@@ -171,3 +171,8 @@ // Copyright 2010-2011 Mikeal Rogers

options.headers['content-type'] = 'application/json'
options.body = JSON.stringify(options.json)
if (typeof options.json === 'boolean') {
options.body = JSON.stringify(options.body)
} else {
options.body = JSON.stringify(options.json)
}
} else if (options.multipart) {

@@ -396,2 +401,3 @@ options.body = ''

var d = function (opts, callback) {
if (typeof opts === 'string') opts = {uri:opts}
for (i in options) {

@@ -398,0 +404,0 @@ if (opts[i] === undefined) opts[i] = options[i]

2

package.json
{ "name" : "request"
, "description" : "Simplified HTTP request client."
, "tags" : ["http", "simple", "util", "utility"]
, "version" : "2.0.3"
, "version" : "2.0.4"
, "author" : "Mikeal Rogers <mikeal.rogers@gmail.com>"

@@ -6,0 +6,0 @@ , "repository" :

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc