Socket
Socket
Sign inDemoInstall

got

Package Overview
Dependencies
Maintainers
4
Versions
176
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 8.1.0 to 8.2.0

7

index.js

@@ -488,6 +488,9 @@ 'use strict';

opts.headers = Object.assign({
'user-agent': `${pkg.name}/${pkg.version} (https://github.com/sindresorhus/got)`,
'accept-encoding': 'gzip,deflate'
'user-agent': `${pkg.name}/${pkg.version} (https://github.com/sindresorhus/got)`
}, headers);
if (opts.decompress) {
opts.headers['accept-encoding'] = 'gzip,deflate';
}
const query = opts.query;

@@ -494,0 +497,0 @@

{
"name": "got",
"version": "8.1.0",
"version": "8.2.0",
"description": "Simplified HTTP requests",

@@ -73,3 +73,3 @@ "license": "MIT",

"devDependencies": {
"ava": "^0.24.0",
"ava": "^0.25.0",
"coveralls": "^3.0.0",

@@ -86,3 +86,3 @@ "form-data": "^2.1.1",

"universal-url": "1.0.0-alpha",
"xo": "^0.18.0"
"xo": "^0.20.0"
},

@@ -89,0 +89,0 @@ "ava": {

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