File tree 8 files changed +14
-237
lines changed
8 files changed +14
-237
lines changed Original file line number Diff line number Diff line change 87
87
! /cross-spawn /node_modules /which
88
88
! /cssesc
89
89
! /debug
90
- ! /debug /node_modules /
91
- /debug /node_modules /*
92
- ! /debug /node_modules /ms
93
90
! /defaults
94
91
! /delegates
95
92
! /diff
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " debug" ,
3
- "version" : " 4.3.4 " ,
3
+ "version" : " 4.3.7 " ,
4
4
"repository" : {
5
5
"type" : " git" ,
6
6
"url" : " git://github.com/debug-js/debug.git"
16
16
" LICENSE" ,
17
17
" README.md"
18
18
],
19
- "author" : " Josh Junon <josh.junon@protonmail. com> " ,
19
+ "author" : " Josh Junon (https://github. com/qix-) " ,
20
20
"contributors" : [
21
21
" TJ Holowaychuk <tj@vision-media.ca>" ,
22
22
" Nathan Rajlich <nathan@tootallnate.net> (http://n8.io)" ,
26
26
"scripts" : {
27
27
"lint" : " xo" ,
28
28
"test" : " npm run test:node && npm run test:browser && npm run lint" ,
29
- "test:node" : " istanbul cover _mocha -- test.js" ,
29
+ "test:node" : " istanbul cover _mocha -- test.js test.node.js " ,
30
30
"test:browser" : " karma start --single-run" ,
31
31
"test:coverage" : " cat ./coverage/lcov.info | coveralls"
32
32
},
33
33
"dependencies" : {
34
- "ms" : " 2.1.2 "
34
+ "ms" : " ^ 2.1.3 "
35
35
},
36
36
"devDependencies" : {
37
37
"brfs" : " ^2.0.1" ,
44
44
"karma-mocha" : " ^1.3.0" ,
45
45
"mocha" : " ^5.2.0" ,
46
46
"mocha-lcov-reporter" : " ^1.2.0" ,
47
+ "sinon" : " ^14.0.0" ,
47
48
"xo" : " ^0.23.0"
48
49
},
49
50
"peerDependenciesMeta" : {
Original file line number Diff line number Diff line change @@ -125,14 +125,16 @@ function useColors() {
125
125
return false ;
126
126
}
127
127
128
+ let m ;
129
+
128
130
// Is webkit? http://stackoverflow.com/a/16459606/376773
129
131
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
130
132
return ( typeof document !== 'undefined' && document . documentElement && document . documentElement . style && document . documentElement . style . WebkitAppearance ) ||
131
133
// Is firebug? http://stackoverflow.com/a/398120/376773
132
134
( typeof window !== 'undefined' && window . console && ( window . console . firebug || ( window . console . exception && window . console . table ) ) ) ||
133
135
// Is firefox >= v31?
134
136
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
135
- ( typeof navigator !== 'undefined' && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / f i r e f o x \/ ( \d + ) / ) && parseInt ( RegExp . $1 , 10 ) >= 31 ) ||
137
+ ( typeof navigator !== 'undefined' && navigator . userAgent && ( m = navigator . userAgent . toLowerCase ( ) . match ( / f i r e f o x \/ ( \d + ) / ) ) && parseInt ( m [ 1 ] , 10 ) >= 31 ) ||
136
138
// Double check webkit in userAgent just in case we are in a worker
137
139
( typeof navigator !== 'undefined' && navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / a p p l e w e b k i t \/ ( \d + ) / ) ) ;
138
140
}
Original file line number Diff line number Diff line change @@ -187,11 +187,11 @@ function getDate() {
187
187
}
188
188
189
189
/**
190
- * Invokes `util.format ()` with the specified arguments and writes to stderr.
190
+ * Invokes `util.formatWithOptions ()` with the specified arguments and writes to stderr.
191
191
*/
192
192
193
193
function log ( ...args ) {
194
- return process . stderr . write ( util . format ( ...args ) + '\n' ) ;
194
+ return process . stderr . write ( util . formatWithOptions ( exports . inspectOpts , ...args ) + '\n' ) ;
195
195
}
196
196
197
197
/**
Original file line number Diff line number Diff line change 4504
4504
}
4505
4505
},
4506
4506
"node_modules/debug": {
4507
- "version": "4.3.4",
4507
+ "version": "4.3.7",
4508
+ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
4509
+ "integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
4508
4510
"inBundle": true,
4509
4511
"license": "MIT",
4510
4512
"dependencies": {
4511
- "ms": "2.1.2 "
4513
+ "ms": "^ 2.1.3 "
4512
4514
},
4513
4515
"engines": {
4514
4516
"node": ">=6.0"
4519
4521
}
4520
4522
}
4521
4523
},
4522
- "node_modules/debug/node_modules/ms": {
4523
- "version": "2.1.2",
4524
- "inBundle": true,
4525
- "license": "MIT"
4526
- },
4527
4524
"node_modules/decamelize": {
4528
4525
"version": "1.2.0",
4529
4526
"resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz",
You can’t perform that action at this time.
0 commit comments