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

got

Package Overview
Dependencies
Maintainers
3
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

got - npm Package Compare versions

Comparing version 3.1.0 to 3.2.0

4

index.js

@@ -58,2 +58,6 @@ 'use strict';

if (json) {
opts.headers.accept = opts.headers.accept || 'application/json';
}
if (body) {

@@ -60,0 +64,0 @@ opts.method = opts.method || 'POST';

2

package.json
{
"name": "got",
"version": "3.1.0",
"version": "3.2.0",
"description": "Simplified HTTP/HTTPS requests",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -79,3 +79,3 @@ # got [![Build Status](https://travis-ci.org/sindresorhus/got.svg?branch=master)](https://travis-ci.org/sindresorhus/got)

If enabled, response body will be parsed with `JSON.parse`.
If enabled, response body will be parsed with `JSON.parse` and `accept` header will be set to `application/json` by default.

@@ -82,0 +82,0 @@ ###### query

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