Socket
Socket
Sign inDemoInstall

simple-get

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-get - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

5

index.js

@@ -35,3 +35,2 @@ module.exports = simpleGet

}
delete opts.body; delete opts.form

@@ -41,4 +40,6 @@ if (body) {

if (!isStream(body)) opts.headers['content-length'] = Buffer.byteLength(body)
if (opts.json) opts.headers['content-type'] = 'application/json'
if (opts.json && !opts.form) opts.headers['content-type'] = 'application/json'
}
delete opts.body; delete opts.form
if (opts.json) opts.headers.accept = 'application/json'

@@ -45,0 +46,0 @@ if (opts.method) opts.method = opts.method.toUpperCase()

2

package.json
{
"name": "simple-get",
"description": "Simplest way to make http get requests. Supports HTTPS, redirects, gzip/deflate, streams in < 100 lines.",
"version": "3.0.2",
"version": "3.0.3",
"author": {

@@ -6,0 +6,0 @@ "name": "Feross Aboukhadijeh",

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