File tree 2 files changed +11
-17
lines changed 2 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -105,14 +105,8 @@ function vanilla(key, value) {
105
105
// Tries `JSON.stringify()`, and if that fails uses `String()` instead.
106
106
function view ( value ) {
107
107
try {
108
- /* eslint-disable no-else-return */
109
- /* istanbul ignore else - Browser. */
110
- if ( inspect ) {
111
- return inspect ( value , { colors : false } )
112
- } else {
113
- return JSON . stringify ( value )
114
- }
115
- /* eslint-enable no-else-return */
108
+ /* istanbul ignore next - Browser. */
109
+ return inspect ? inspect ( value , { colors : false } ) : JSON . stringify ( value )
116
110
} catch ( _ ) {
117
111
/* istanbul ignore next - Cyclical. */
118
112
return String ( value )
Original file line number Diff line number Diff line change 32
32
],
33
33
"types" : " types/index.d.ts" ,
34
34
"devDependencies" : {
35
- "browserify" : " ^16 .0.0" ,
36
- "dtslint" : " ^3 .0.0" ,
35
+ "browserify" : " ^17 .0.0" ,
36
+ "dtslint" : " ^4 .0.0" ,
37
37
"nyc" : " ^15.0.0" ,
38
38
"prettier" : " ^2.0.0" ,
39
- "remark-cli" : " ^8 .0.0" ,
40
- "remark-preset-wooorm" : " ^7 .0.0" ,
39
+ "remark-cli" : " ^9 .0.0" ,
40
+ "remark-preset-wooorm" : " ^8 .0.0" ,
41
41
"tape" : " ^5.0.0" ,
42
- "tinyify" : " ^2 .0.0" ,
43
- "xo" : " ^0.32 .0"
42
+ "tinyify" : " ^3 .0.0" ,
43
+ "xo" : " ^0.34 .0"
44
44
},
45
45
"scripts" : {
46
- "format" : " remark . -qfo && prettier . --write && xo --fix" ,
47
- "build-bundle" : " browserify . -s unistUtilAssert > unist-util-assert.js" ,
48
- "build-mangle" : " browserify . -s unistUtilAssert -p tinyify > unist-util-assert.min.js" ,
46
+ "format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
47
+ "build-bundle" : " browserify . -s unistUtilAssert -o unist-util-assert.js" ,
48
+ "build-mangle" : " browserify . -s unistUtilAssert -o unist-util-assert.min.js -p tinyify " ,
49
49
"build" : " npm run build-bundle && npm run build-mangle" ,
50
50
"test-api" : " node test" ,
51
51
"test-coverage" : " nyc --reporter lcov tape test" ,
You can’t perform that action at this time.
0 commit comments