8000 Update dev-dependencies · syntax-tree/unist-util-map@a29381b · GitHub
[go: up one dir, main page]

Skip to content

Commit a29381b

Browse files
committed
Update dev-dependencies
1 parent 2ef0a68 commit a29381b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@
4747
"tape": "^5.0.0",
4848
"type-coverage": "^2.0.0",
4949
"typescript": "^4.0.0",
50-
"unist-builder": "^2.0.0",
51-
"unist-util-is": "^4.0.0",
52-
"xo": "^0.38.0"
50+
"unist-builder": "^3.0.0",
51+
"xo": "^0.42.0"
5352
},
5453
"scripts": {
5554
"prepack": "npm run build && npm run format",

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ npm install unist-util-map
2525
## Use
2626

2727
```js
28-
import u from 'unist-builder'
28+
import {u} from 'unist-builder'
2929
import {map} from 'unist-util-map'
3030

3131
var tree = u('tree', [

test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55
import test from 'tape'
6-
import u from 'unist-builder'
6+
import {u} from 'unist-builder'
77
import {map} from './index.js'
88

99
test('unist-util-map', function (t) {
@@ -15,6 +15,7 @@ test('unist-util-map', function (t) {
1515

1616
t.deepEqual(
1717
map(u(< 518C span class=pl-s>'root', [u('node', [u('leaf', '1')]), u('leaf', '2')]), nullLeaf),
18+
// @ts-expect-error: not valid but tested anyway.
1819
u('root', [u('node', [{}]), {}]),
1920
'should work when retuning an empty object'
2021
)

0 commit comments

Comments
 (0)
0