Socket
Socket
Sign inDemoInstall

agent-base

Package Overview
Dependencies
1
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.1.1 to 4.1.2

6

History.md
4.1.2 / 2017-11-20
==================
* test Node 9 on Travis
* ensure that `https.get()` uses the patched `https.request()`
4.1.1 / 2017-07-20

@@ -3,0 +9,0 @@ ==================

2

package.json
{
"name": "agent-base",
"version": "4.1.1",
"version": "4.1.2",
"description": "Turn a function into an `http.Agent` instance",

@@ -5,0 +5,0 @@ "main": "./index.js",

@@ -27,1 +27,13 @@ 'use strict';

})(https.request);
/**
* This is needed for Node.js >= 9.0.0 to make sure `https.get()` uses the
* patched `https.request()`.
*
* Ref: https://github.com/nodejs/node/commit/5118f31
*/
https.get = function(options, cb) {
const req = https.request(options, cb);
req.end();
return req;
};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc