File tree Expand file tree Collapse file tree 3 files changed +1
-20
lines changed Expand file tree Collapse file tree 3 files changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,7 @@ function formatArgs() {
7070 + this . namespace
7171 + ( useColors ? ' %c' : ' ' )
7272 + args [ 0 ]
73- + ( useColors ? '%c ' : ' ' )
74- + '+' + exports . humanize ( this . diff ) ;
73+ + ( useColors ? '%c ' : ' ' ) ;
7574
7675 if ( ! useColors ) return args ;
7776
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ exports.coerce = coerce;
1111exports . disable = disable ;
1212exports . enable = enable ;
1313exports . enabled = enabled ;
14- exports . humanize = require ( 'ms' ) ;
1514
1615/**
1716 * The currently active debug mode names, and names to skip.
@@ -34,12 +33,6 @@ exports.formatters = {};
3433
3534var prevColor = 0 ;
3635
37- /**
38- * Previous log timestamp.
39- */
40-
41- var prevTime ;
42-
4336/**
4437 * Select a color.
4538 *
@@ -71,14 +64,6 @@ function debug(namespace) {
7164
7265 var self = enabled ;
7366
74- // set `diff` timestamp
75- var curr = + new Date ( ) ;
76- var ms = curr - ( prevTime || curr ) ;
77- self . diff = ms ;
78- self . prev = prevTime ;
79- self . curr = curr ;
80- prevTime = curr ;
81-
8267 // add the `color` if not set
8368 if ( null == self . useColors ) self . useColors = exports . useColors ( ) ;
8469 if ( null == self . color && self . useColors ) self . color = selectColor ( ) ;
Original file line number Diff line number Diff line change 1616 " Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)"
1717 ],
1818 "license" : " MIT" ,
19- "dependencies" : {
20- "ms" : " 0.7.1"
21- },
2219 "devDependencies" : {
2320 "browserify" : " 9.0.3" ,
2421 "mocha" : " *"
You can’t perform that action at this time.
0 commit comments