Socket
Socket
Sign inDemoInstall

agent-base

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agent-base - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

4

dist/src/index.d.ts

@@ -45,2 +45,3 @@ /// <reference types="node" />

maxFreeSockets: number;
maxTotalSockets: number;
maxSockets: number;

@@ -50,2 +51,5 @@ sockets: {

};
freeSockets: {
[key: string]: net.Socket[];
};
requests: {

@@ -52,0 +56,0 @@ [key: string]: http.IncomingMessage[];

4

dist/src/index.js

@@ -16,3 +16,3 @@ "use strict";

return false;
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1);
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);
}

@@ -49,3 +49,5 @@ function createAgent(callback, opts) {

this.maxSockets = 1;
this.maxTotalSockets = Infinity;
this.sockets = {};
this.freeSockets = {};
this.requests = {};

@@ -52,0 +54,0 @@ this.options = {};

{
"name": "agent-base",
"version": "6.0.1",
"version": "6.0.2",
"description": "Turn a function into an `http.Agent` instance",

@@ -41,3 +41,3 @@ "main": "dist/src/index",

"@types/mocha": "^5.2.7",
"@types/node": "^12.12.17",
"@types/node": "^14.0.20",
"@types/semver": "^7.1.0",

@@ -44,0 +44,0 @@ "@types/ws": "^6.0.3",

@@ -18,3 +18,3 @@ agent-base

* [`pac-proxy-agent`][pac-proxy-agent]: A PAC file proxy `http.Agent` implementation for HTTP and HTTPS
* [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS (v4a) proxy `http.Agent` implementation for HTTP and HTTPS
* [`socks-proxy-agent`][socks-proxy-agent]: A SOCKS proxy `http.Agent` implementation for HTTP and HTTPS

@@ -21,0 +21,0 @@

@@ -18,3 +18,3 @@ import net from 'net';

if (typeof stack !== 'string') return false;
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1);
return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1 || l.indexOf('node:https:') !== -1);
}

@@ -95,2 +95,3 @@

public maxFreeSockets: number;
public maxTotalSockets: number;
public maxSockets: number;

@@ -100,2 +101,5 @@ public sockets: {

};
public freeSockets: {
[key: string]: net.Socket[];
};
public requests: {

@@ -132,3 +136,5 @@ [key: string]: http.IncomingMessage[];

this.maxSockets = 1;
this.maxTotalSockets = Infinity;
this.sockets = {};
this.freeSockets = {};
this.requests = {};

@@ -135,0 +141,0 @@ this.options = {};

Sorry, the diff of this file is not supported yet

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