Skip to content

Commit

Permalink
deps: agentkeepalive@4.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Feb 26, 2024
1 parent edc7e23 commit aeb28c4
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 808 deletions.
2 changes: 0 additions & 2 deletions DEPENDENCIES.md
Expand Up @@ -261,8 +261,6 @@ graph LR;
```mermaid
graph LR;
agent-base-->debug;
agentkeepalive-->debug;
agentkeepalive-->depd;
agentkeepalive-->humanize-ms;
aggregate-error-->clean-stack;
aggregate-error-->indent-string;
Expand Down
1 change: 0 additions & 1 deletion node_modules/.gitignore
Expand Up @@ -95,7 +95,6 @@
!/debug/node_modules/ms
!/defaults
!/delegates
!/depd
!/diff
!/eastasianwidth
!/emoji-regex
Expand Down
12 changes: 12 additions & 0 deletions node_modules/agentkeepalive/History.md
@@ -1,4 +1,16 @@

4.5.0 / 2023-08-06
==================

**others**
* [[`1e5e312`](http://github.com/node-modules/agentkeepalive/commit/1e5e312f36491243372dbfee0dd47607e7b3d94a)] - deps: remove debug and depd (#114) (fengmk2 <<fengmk2@gmail.com>>)

4.4.0 / 2023-08-05
==================

**features**
* [[`c7c1e93`](http://github.com/node-modules/agentkeepalive/commit/c7c1e93beba7310d7c2cc9647dd211a686d21cac)] - feat: return socket from createConnection (#113) (Nabeel Bukhari <<nabeel.bukhari@hotmail.com>>)

4.3.0 / 2023-03-06
==================

Expand Down
8 changes: 6 additions & 2 deletions node_modules/agentkeepalive/lib/agent.js
Expand Up @@ -2,8 +2,7 @@

const OriginalAgent = require('http').Agent;
const ms = require('humanize-ms');
const debug = require('debug')('agentkeepalive');
const deprecate = require('depd')('agentkeepalive');
const debug = require('util').debuglog('agentkeepalive');
const {
INIT_SOCKET,
CURRENT_ID,
Expand All @@ -27,6 +26,10 @@ if (majorVersion >= 11 && majorVersion <= 12) {
defaultTimeoutListenerCount = 3;
}

function deprecate(message) {
console.log('[agentkeepalive:deprecated] %s', message);
}

class Agent extends OriginalAgent {
constructor(options) {
options = options || {};
Expand Down Expand Up @@ -230,6 +233,7 @@ class Agent extends OriginalAgent {

const newSocket = super.createConnection(options, onNewCreate);
if (newSocket) onNewCreate(null, newSocket);
return newSocket;
}

get statusChanged() {
Expand Down
4 changes: 2 additions & 2 deletions node_modules/agentkeepalive/lib/https_agent.js
Expand Up @@ -25,8 +25,8 @@ class HttpsAgent extends HttpAgent {
};
}

createConnection(options) {
const socket = this[CREATE_HTTPS_CONNECTION](options);
createConnection(options, oncreate) {
const socket = this[CREATE_HTTPS_CONNECTION](options, oncreate);
this[INIT_SOCKET](socket, options);
return socket;
}
Expand Down
6 changes: 2 additions & 4 deletions node_modules/agentkeepalive/package.json
@@ -1,6 +1,6 @@
{
"name": "agentkeepalive",
"version": "4.3.0",
"version": "4.5.0",
"description": "Missing keepalive http.Agent",
"main": "index.js",
"browser": "browser.js",
Expand All @@ -14,7 +14,7 @@
"contributor": "git-contributor",
"test": "npm run lint && egg-bin test --full-trace",
"test-local": "egg-bin test --full-trace",
"cov": "cross-env DEBUG=agentkeepalive egg-bin cov --full-trace",
"cov": "cross-env NODE_DEBUG=agentkeepalive egg-bin cov --full-trace",
"ci": "npm run lint && npm run cov",
"lint": "eslint lib test index.js"
},
Expand All @@ -35,8 +35,6 @@
"HttpsAgent"
],
"dependencies": {
"debug": "^4.1.0",
"depd": "^2.0.0",
"humanize-ms": "^1.2.1"
},
"devDependencies": {
Expand Down
103 changes: 0 additions & 103 deletions node_modules/depd/History.md

This file was deleted.

22 changes: 0 additions & 22 deletions node_modules/depd/LICENSE

This file was deleted.

0 comments on commit aeb28c4

Please sign in to comment.