diff --git a/lib/index.js b/lib/index.js index f3901d4..12b83a1 100644 --- a/lib/index.js +++ b/lib/index.js @@ -6,6 +6,7 @@ var xtend = require('xtend'); var u = require('unist-builder'); var visit = require('unist-util-visit'); var position = require('unist-util-position'); +var generated = require('unist-util-generated'); var definitions = require('mdast-util-definitions'); var one = require('./one'); var footer = require('./footer'); @@ -48,7 +49,7 @@ function factory(tree, options) { ctx = left && left.position ? left : {position: left}; - if (!position.generated(ctx)) { + if (!generated(ctx)) { right.position = { start: position.start(ctx), end: position.end(ctx) diff --git a/package.json b/package.json index c236d10..1947a09 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "trim": "0.0.1", "trim-lines": "^1.0.0", "unist-builder": "^1.0.1", - "unist-util-position": "^2.0.1", + "unist-util-generated": "^1.1.0", + "unist-util-position": "^3.0.0", "unist-util-visit": "^1.1.0", "xtend": "^4.0.1" },