File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,7 +259,6 @@ graph LR;
259259## all dependencies
260260``` mermaid
261261graph LR;
262- agent-base-->debug;
263262 aggregate-error-->clean-stack;
264263 aggregate-error-->indent-string;
265264 bin-links-->cmd-shim;
Original file line number Diff line number Diff line change @@ -133,8 +133,13 @@ class Agent extends http.Agent {
133133 . then ( ( socket ) => {
134134 this . decrementSockets ( name , fakeSocket ) ;
135135 if ( socket instanceof http . Agent ) {
136- // @ts -expect-error `addRequest()` isn't defined in `@types/node`
137- return socket . addRequest ( req , connectOpts ) ;
136+ try {
137+ // @ts -expect-error `addRequest()` isn't defined in `@types/node`
138+ return socket . addRequest ( req , connectOpts ) ;
139+ }
140+ catch ( err ) {
141+ return cb ( err ) ;
142+ }
138143 }
139144 this [ INTERNAL ] . currentSocket = socket ;
140145 // @ts -expect-error `createSocket()` isn't defined in `@types/node`
Original file line number Diff line number Diff line change 11{
22 "name" : " agent-base" ,
3- "version" : " 7.1.1 " ,
3+ "version" : " 7.1.3 " ,
44 "description" : " Turn a function into an `http.Agent` instance" ,
55 "main" : " ./dist/index.js" ,
66 "types" : " ./dist/index.d.ts" ,
2121 ],
2222 "author" :
" Nathan Rajlich <[email protected] > (http://n8.io/)" ,
2323 "license" : " MIT" ,
24- "dependencies" : {
25- "debug" : " ^4.3.4"
26- },
2724 "devDependencies" : {
2825 "@types/debug" : " ^4.1.7" ,
2926 "@types/jest" : " ^29.5.1" ,
3431 "jest" : " ^29.5.0" ,
3532 "ts-jest" : " ^29.1.0" ,
3633 "typescript" : " ^5.0.4" ,
37- "ws" : " ^3.3.3 " ,
34+ "ws" : " ^5.2.4 " ,
3835 "tsconfig" : " 0.0.0"
3936 },
4037 "engines" : {
Original file line number Diff line number Diff line change 33293329 }
33303330 },
33313331 "node_modules/agent-base": {
3332- "version": "7.1.1 ",
3333- "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.1 .tgz",
3334- "integrity": "sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA ==",
3332+ "version": "7.1.3 ",
3333+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-7.1.3 .tgz",
3334+ "integrity": "sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw ==",
33353335 "inBundle": true,
33363336 "license": "MIT",
3337- "dependencies": {
3338- "debug": "^4.3.4"
3339- },
33403337 "engines": {
33413338 "node": ">= 14"
33423339 }
You can’t perform that action at this time.
0 commit comments