Skip to content

Commit 2d95c24

Browse files
committed
Update dev-dependencies
1 parent 3236b1e commit 2d95c24

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,6 @@ import {one} from './traverse.js'
9999
import {footer} from './footer.js'
100100
import {handlers} from './handlers/index.js'
101101

102-
export {handlers as defaultHandlers}
103-
104102
const own = {}.hasOwnProperty
105103

106104
/**
@@ -233,3 +231,5 @@ export function toHast(tree, options) {
233231

234232
return Array.isArray(node) ? {type: 'root', children: node} : node
235233
}
234+
235+
export {handlers as defaultHandlers} from './handlers/index.js'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"tape": "^5.0.0",
6161
"type-coverage": "^2.0.0",
6262
"typescript": "^4.0.0",
63-
"xo": "^0.45.0"
63+
"xo": "^0.47.0"
6464
},
6565
"scripts": {
6666
"prepack": "npm run build && npm run format",

readme.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ Which when running with `node example` yields:
5454

5555
## API
5656

57-
This package exports the following identifiers: `toHast`, `defaultHandlers`, `all`, `one`
57+
This package exports the following identifiers: `toHast`, `defaultHandlers`,
58+
`all`, `one`
5859
There is no default export.
5960

6061
### `toHast(node[, options])`
@@ -247,7 +248,7 @@ Yields, in [hast][] (**note**: the `pre` and `language-js` class are normal
247248
### `defaultHandlers`
248249

249250
Object mapping mdast node types to functions that can handle them.
250-
See [`lib/handlers/index.js`](./lib/handlers/index.js)
251+
See [`lib/handlers/index.js`][handlers-index].
251252

252253
### `all(h, parent)`
253254

@@ -473,6 +474,8 @@ abide by its terms.
473474

474475
[handlers]: lib/handlers
475476

477+
[handlers-index]: lib/handlers/index.js
478+
476479
[hname]: #hname
477480

478481
[hproperties]: #hproperties

0 commit comments

Comments
 (0)