File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = false
Original file line number Diff line number Diff line change
1
+ module . exports = true
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
3
var isEmpty = require ( 'is-empty' )
4
-
5
- // Detect color support.
6
- var color = true
7
-
8
- try {
9
- color = 'inspect' in require ( 'util' )
10
- } catch ( _ ) {
11
- /* istanbul ignore next - browser */
12
- color = false
13
- }
4
+ var color = require ( './color' )
14
5
15
6
module . exports = color ? inspect : /* istanbul ignore next */ noColor
16
7
Original file line number Diff line number Diff line change 25
25
],
26
26
"files" : [
27
27
" index.js" ,
28
+ " color.js" ,
29
+ " color-browser.js" ,
28
30
" types/index.d.ts"
29
31
],
32
+ "browser" : {
33
+ "./color.js" : " ./color-browser.js"
34
+ },
35
+ "react-native" : {
36
+ "./color.js" : " ./color-browser.js"
37
+ },
30
38
"types" : " types/index.d.ts" ,
31
39
"dependencies" : {
32
40
"is-empty" : " ^1.0.0"
48
56
},
49
57
"scripts" : {
50
58
"format" : " remark . -qfo && prettier --write \" **/*.{js,ts}\" && xo --fix" ,
51
- "build-bundle" : " browserify . --bare - s unistUtilInspect > unist-util-inspect.js" ,
52
- "build-mangle" : " browserify . --bare - s unistUtilInspect -p tinyify > unist-util-inspect.min.js" ,
59
+ "build-bundle" : " browserify . -s unistUtilInspect > unist-util-inspect.js" ,
60
+ "build-mangle" : " browserify . -s unistUtilInspect -p tinyify > unist-util-inspect.min.js" ,
53
61
"build" : " npm run build-bundle && npm run build-mangle" ,
54
62
"test-api" : " node test" ,
55
63
"test-coverage" : " nyc --reporter lcov tape test.js" ,
You can’t perform that action at this time.
0 commit comments