Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
wraithgar committed Dec 12, 2024
1 parent 52bcaf6 commit a598b7b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 14 deletions.
1 change: 0 additions & 1 deletion DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ graph LR;
## all dependencies
```mermaid
graph LR;
agent-base-->debug;
bin-links-->cmd-shim;
bin-links-->npm-normalize-package-bin;
bin-links-->proc-log;
Expand Down
9 changes: 7 additions & 2 deletions node_modules/agent-base/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,13 @@ class Agent extends http.Agent {
.then((socket) => {
this.decrementSockets(name, fakeSocket);
if (socket instanceof http.Agent) {
// @ts-expect-error `addRequest()` isn't defined in `@types/node`
return socket.addRequest(req, connectOpts);
try {
// @ts-expect-error `addRequest()` isn't defined in `@types/node`
return socket.addRequest(req, connectOpts);
}
catch (err) {
return cb(err);
}
}
this[INTERNAL].currentSocket = socket;
// @ts-expect-error `createSocket()` isn't defined in `@types/node`
Expand Down
7 changes: 2 additions & 5 deletions node_modules/agent-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "agent-base",
"version": "7.1.1",
"version": "7.1.3",
"description": "Turn a function into an `http.Agent` instance",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -21,9 +21,6 @@
],
"author": "Nathan Rajlich <[email protected]> (http://n8.io/)",
"license": "MIT",
"dependencies": {
"debug": "^4.3.4"
},
"devDependencies": {
"@types/debug": "^4.1.7",
"@types/jest": "^29.5.1",
Expand All @@ -34,7 +31,7 @@
"jest": "^29.5.0",
"ts-jest": "^29.1.0",
"typescript": "^5.0.4",
"ws": "^3.3.3",
"ws": "^5.2.4",
"tsconfig": "0.0.0"
},
"engines": {
Expand Down
9 changes: 3 additions & 6 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -5018,14 +5018,11 @@
}
},
"node_modules/agent-base": {
"version": "7.1.1",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1.tgz",
"integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA==",
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3.tgz",
"integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==",
"inBundle": true,
"license": "MIT",
"dependencies": {
"debug": "^4.3.4"
},
"engines": {
"node": ">= 14"
}
Expand Down

0 comments on commit a598b7b

Please sign in to comment.