Skip to content

Commit

Permalink
Remove xtend dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Nov 10, 2019
1 parent e623ab2 commit 75475f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

module.exports = toHast

var xtend = require('xtend')
var u = require('unist-builder')
var visit = require('unist-util-visit')
var position = require('unist-util-position')
Expand All @@ -25,7 +24,7 @@ function factory(tree, options) {
h.footnoteById = footnoteById
h.footnoteOrder = []
h.augment = augment
h.handlers = xtend(handlers, settings.handlers || {})
h.handlers = Object.assign({}, handlers, settings.handlers)

visit(tree, 'footnoteDefinition', onfootnotedefinition)

Expand All @@ -45,7 +44,7 @@ function factory(tree, options) {
}

if (right.type === 'element' && data.hProperties) {
right.properties = xtend(right.properties, data.hProperties)
right.properties = Object.assign({}, right.properties, data.hProperties)
}

if (right.children && data.hChildren) {
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"unist-builder": "^1.0.1",
"unist-util-generated": "^1.1.0",
"unist-util-position": "^3.0.0",
"unist-util-visit": "^1.1.0",
"xtend": "^4.0.1"
"unist-util-visit": "^1.1.0"
},
"devDependencies": {
"browserify": "^16.0.0",
Expand Down

0 comments on commit 75475f4

Please sign in to comment.