Skip to content

Commit eba5a02

Browse files
committed
Update dev-dependencies
1 parent 0516af5 commit eba5a02

File tree

2 files changed

+11
-17
lines changed

2 files changed

+11
-17
lines changed

index.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,8 @@ function vanilla(key, value) {
105105
// Tries `JSON.stringify()`, and if that fails uses `String()` instead.
106106
function view(value) {
107107
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)
116110
} catch (_) {
117111
/* istanbul ignore next - Cyclical. */
118112
return String(value)

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,20 @@
3232
],
3333
"types": "types/index.d.ts",
3434
"devDependencies": {
35-
"browserify": "^16.0.0",
36-
"dtslint": "^3.0.0",
35+
"browserify": "^17.0.0",
36+
"dtslint": "^4.0.0",
3737
"nyc": "^15.0.0",
3838
"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",
4141
"tape": "^5.0.0",
42-
"tinyify": "^2.0.0",
43-
"xo": "^0.32.0"
42+
"tinyify": "^3.0.0",
43+
"xo": "^0.34.0"
4444
},
4545
"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",
4949
"build": "npm run build-bundle && npm run build-mangle",
5050
"test-api": "node test",
5151
"test-coverage": "nyc --reporter lcov tape test",

0 commit comments

Comments
 (0)