Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

request

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request - npm Package Compare versions

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc