File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
const OriginalAgent = require ( 'http' ) . Agent ;
4
4
const ms = require ( 'humanize-ms' ) ;
5
- const debug = require ( 'debug' ) ( 'agentkeepalive' ) ;
6
- const deprecate = require ( 'depd' ) ( 'agentkeepalive' ) ;
5
+ const debug = require ( 'util' ) . debuglog ( 'agentkeepalive' ) ;
7
6
const {
8
7
INIT_SOCKET ,
9
8
CURRENT_ID ,
@@ -27,6 +26,10 @@ if (majorVersion >= 11 && majorVersion <= 12) {
27
26
defaultTimeoutListenerCount = 3 ;
28
27
}
29
28
29
+ function deprecate ( message ) {
30
+ console . log ( '[agentkeepalive:deprecated] %s' , message ) ;
31
+ }
32
+
30
33
class Agent extends OriginalAgent {
31
34
constructor ( options ) {
32
35
options = options || { } ;
Original file line number Diff line number Diff line change 14
14
"contributor" : " git-contributor" ,
15
15
"test" : " npm run lint && egg-bin test --full-trace" ,
16
16
"test-local" : " egg-bin test --full-trace" ,
17
- "cov" : " cross-env DEBUG =agentkeepalive egg-bin cov --full-trace" ,
17
+ "cov" : " cross-env NODE_DEBUG =agentkeepalive egg-bin cov --full-trace" ,
18
18
"ci" : " npm run lint && npm run cov" ,
19
19
"lint" : " eslint lib test index.js"
20
20
},
35
35
" HttpsAgent"
36
36
],
37
37
"dependencies" : {
38
- "debug" : " ^4.1.0" ,
39
- "depd" : " ^2.0.0" ,
40
38
"humanize-ms" : " ^1.2.1"
41
39
},
42
40
"devDependencies" : {
You can’t perform that action at this time.
0 commit comments