Socket
Socket
Sign inDemoInstall

got

Package Overview
Dependencies
Maintainers
3
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 5.4.0 to 5.4.1

6

index.js

@@ -264,2 +264,4 @@ 'use strict';

opts.method = opts.method.toUpperCase();
if (opts.hostname === 'unix') {

@@ -324,3 +326,3 @@ var matches = /(.+)\:(.+)/.exec(opts.path);

return got(url, objectAssign({}, opts, {method: el.toUpperCase()}), cb);
return got(url, objectAssign({}, opts, {method: el}), cb);
};

@@ -344,3 +346,3 @@ });

return got.stream(url, objectAssign({}, opts, {method: el.toUpperCase()}), cb);
return got.stream(url, objectAssign({}, opts, {method: el}), cb);
};

@@ -347,0 +349,0 @@ });

{
"name": "got",
"version": "5.4.0",
"version": "5.4.1",
"description": "Simplified HTTP/HTTPS requests",

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

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