Skip to content

Commit

Permalink
Update unist-util-position
Browse files Browse the repository at this point in the history
Closes GH-6.
  • Loading branch information
greenkeeperio-bot authored and wooorm committed Nov 20, 2016
1 parent f842ea6 commit eb43b98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit eb43b98

Please sign in to comment.