Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 18, 2021
1 parent 6c49fb2 commit a122332
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import convert from 'unist-util-is/convert.js'
import position from 'unist-util-position'
import modifyChildren from 'unist-util-modify-children'
import toString from 'nlcst-to-string'
import {convert} from 'unist-util-is'
import {pointStart, pointEnd} from 'unist-util-position'
import {modifyChildren} from 'unist-util-modify-children'
import {toString} from 'nlcst-to-string'

var word = convert('WordNode')
var punctuationOrSymbol = convert(['PunctuationNode', 'SymbolNode'])
Expand Down Expand Up @@ -94,8 +94,8 @@ function mergeLinks(child, index, parent) {
}

child = {type: 'SourceNode', value: toString(nodes)}
initial = position.start(nodes[0])
final = position.end(nodes[nodes.length - 1])
initial = pointStart(nodes[0])
final = pointEnd(nodes[nodes.length - 1])

if (initial.line && final.line) {
child.position = {start: initial, end: final}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"index.js"
],
"dependencies": {
"nlcst-to-string": "^2.0.0",
"unist-util-is": "^4.0.0",
"unist-util-modify-children": "^1.1.1",
"unist-util-position": "^3.0.0"
"nlcst-to-string": "^3.0.0",
"unist-util-is": "^5.0.0",
"unist-util-modify-children": "^3.0.0",
"unist-util-position": "^4.0.0"
},
"devDependencies": {
"browserify": "^17.0.0",
Expand Down

0 comments on commit a122332

Please sign in to comment.