Skip to content

Commit 1afb3f9

Browse files
committed
Update dev-dependencies
1 parent 4f7f70b commit 1afb3f9

File tree

4 files changed

+46
-44
lines changed

4 files changed

+46
-44
lines changed

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,20 @@
3434
"devDependencies": {
3535
"@types/unist": "^2.0.3",
3636
"browserify": "^16.0.0",
37-
"chalk": "^3.0.0",
37+
"chalk": "^4.0.0",
3838
"dtslint": "^3.0.0",
3939
"nyc": "^15.0.0",
40-
"prettier": "^1.0.0",
41-
"remark-cli": "^7.0.0",
42-
"remark-preset-wooorm": "^6.0.0",
40+
"prettier": "^2.0.0",
41+
"remark-cli": "^8.0.0",
42+
"remark-preset-wooorm": "^7.0.0",
4343
"retext": "^7.0.0",
4444
"strip-ansi": "^6.0.0",
45-
"tape": "^4.0.0",
45+
"tape": "^5.0.0",
4646
"tinyify": "^2.0.0",
47-
"xo": "^0.26.0"
47+
"xo": "^0.29.0"
4848
},
4949
"scripts": {
50-
"format": "remark . -qfo && prettier --write \"**/*.js\" && xo --fix",
50+
"format": "remark . -qfo && prettier --write \"**/*.{js,ts}\" && xo --fix",
5151
"build-bundle": "browserify . --bare -s unistUtilInspect > unist-util-inspect.js",
5252
"build-mangle": "browserify . --bare -s unistUtilInspect -p tinyify > unist-util-inspect.min.js",
5353
"build": "npm run build-bundle && npm run build-mangle",
@@ -68,10 +68,12 @@
6868
"prettier": true,
6969
"esnext": false,
7070
"rules": {
71+
"unicorn/prefer-number-properties": "off",
7172
"guard-for-in": "off",
7273
"unicorn/prefer-includes": "off"
7374
},
7475
"ignore": [
76+
"types",
7577
"unist-util-inspect.js"
7678
]
7779
},

test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ var inspect = require('.')
88

99
var paragraph = 'Some simple text. Other “sentence”.'
1010

11-
test('inspect', function(t) {
11+
test('inspect', function (t) {
1212
t.equal(typeof inspect, 'function', 'should be a `function`')
1313

14-
t.test('should have `color` and `noColor` properties', function(st) {
14+
t.test('should have `color` and `noColor` properties', function (st) {
1515
st.equal(typeof inspect.color, 'function')
1616
st.equal(typeof inspect.noColor, 'function')
1717

@@ -24,7 +24,7 @@ test('inspect', function(t) {
2424
t.end()
2525
})
2626

27-
test('inspect()', function(t) {
27+
test('inspect()', function (t) {
2828
t.equal(
2929
strip(inspect(retext().parse(paragraph))),
3030
[
@@ -85,7 +85,7 @@ test('inspect()', function(t) {
8585
'should work with a list of nodes'
8686
)
8787

88-
t.test('should work on non-nodes', function(st) {
88+
t.test('should work on non-nodes', function (st) {
8989
st.equal(strip(inspect('foo')), 'foo')
9090
st.equal(strip(inspect('null')), 'null')
9191
st.equal(strip(inspect(NaN)), 'NaN')
@@ -226,7 +226,7 @@ test('inspect()', function(t) {
226226
t.end()
227227
})
228228

229-
test('inspect.noColor()', function(t) {
229+
test('inspect.noColor()', function (t) {
230230
t.equal(
231231
inspect.noColor(retext().parse(paragraph).children[0].children[0]),
232232
[
@@ -247,7 +247,7 @@ test('inspect.noColor()', function(t) {
247247
t.end()
248248
})
249249

250-
test('inspect.color()', function(t) {
250+
test('inspect.color()', function (t) {
251251
t.equal(
252252
inspect.color(retext().parse(paragraph).children[0].children[0]),
253253
[

types/index.d.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
// TypeScript Version: 3.0
2-
import { Node } from 'unist';
2+
import {Node} from 'unist'
33

4-
export = inpect;
4+
export = inpect
55

66
/*
77
* Unist utility to inspect the details of a Unist Node
88
*
99
* @param node Node to inspect
1010
*/
11-
declare function inpect(node: Node): string;
11+
declare function inpect(node: Node): string
1212

1313
declare namespace inpect {
1414
/**
1515
* Inspect the given Node and include colors from the results
1616
*
1717
* @param node Node to inspect
1818
*/
19-
function color(node: Node): string;
19+
function color(node: Node): string
2020

2121
/**
2222
* Inspect the given Node and exclude colors from the results
2323
*
2424
* @param node Node to inspect
2525
*/
26-
function noColor(node: Node): string;
26+
function noColor(node: Node): string
2727
}

types/unist-util-inspect-tests.ts

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
import * as inspect from 'unist-util-inspect';
1+
import * as inspect from 'unist-util-inspect'
22

33
const node = {
4-
type: 'node',
5-
data: {
6-
string: 'string',
7-
number: 1,
8-
object: {
9-
key: 'value'
10-
},
11-
array: [],
12-
boolean: true,
13-
null: null
4+
type: 'node',
5+
data: {
6+
string: 'string',
7+
number: 1,
8+
object: {
9+
key: 'value'
1410
},
15-
position: {
16-
start: {
17-
line: 1,
18-
column: 1,
19-
offset: 0
20-
},
21-
end: {
22-
line: 1,
23-
column: 4,
24-
offset: 0
25-
},
26-
indent: [1]
27-
}
28-
};
11+
array: [],
12+
boolean: true,
13+
null: null
14+
},
15+
position: {
16+
start: {
17+
line: 1,
18+
column: 1,
19+
offset: 0
20+
},
21+
end: {
22+
line: 1,
23+
column: 4,
24+
offset: 0
25+
},
26+
indent: [1]
27+
}
28+
}
2929

30-
const result: string = inspect(node);
30+
const result: string = inspect(node)

0 commit comments

Comments
 (0)