File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 22
33module . exports = toHast
44
5- var xtend = require ( 'xtend' )
65var u = require ( 'unist-builder' )
76var visit = require ( 'unist-util-visit' )
87var position = require ( 'unist-util-position' )
@@ -25,7 +24,7 @@ function factory(tree, options) {
2524 h . footnoteById = footnoteById
2625 h . footnoteOrder = [ ]
2726 h . augment = augment
28- h . handlers = xtend ( handlers , settings . handlers || { } )
27+ h . handlers = Object . assign ( { } , handlers , settings . handlers )
2928
3029 visit ( tree , 'footnoteDefinition' , onfootnotedefinition )
3130
@@ -45,7 +44,7 @@ function factory(tree, options) {
4544 }
4645
4746 if ( right . type === 'element' && data . hProperties ) {
48- right . properties = xtend ( right . properties , data . hProperties )
47+ right . properties = Object . assign ( { } , right . properties , data . hProperties )
4948 }
5049
5150 if ( right . children && data . hChildren ) {
Original file line number Diff line number Diff line change 3131 "unist-builder" : " ^1.0.1" ,
3232 "unist-util-generated" : " ^1.1.0" ,
3333 "unist-util-position" : " ^3.0.0" ,
34- "unist-util-visit" : " ^1.1.0" ,
35- "xtend" : " ^4.0.1"
34+ "unist-util-visit" : " ^1.1.0"
3635 },
3736 "devDependencies" : {
3837 "browserify" : " ^16.0.0" ,
You can’t perform that action at this time.
0 commit comments