Socket
Socket
Sign inDemoInstall

got

Package Overview
Dependencies
Maintainers
2
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 2.7.0 to 2.7.1

11

index.js

@@ -20,3 +20,3 @@ 'use strict';

NestedError.call(this, message, nested);
objectAssign(this, nested);
objectAssign(this, nested, {nested: this.nested});
}

@@ -112,2 +112,11 @@

err.code = statusCode;
if (data && json) {
try {
data = JSON.parse(data);
} catch (e) {
err = new GotError('Parsing ' + url + ' response failed', new GotError(e.message, err));
}
}
cb(err, data, response);

@@ -114,0 +123,0 @@ });

2

package.json
{
"name": "got",
"version": "2.7.0",
"version": "2.7.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