rehype-autolink-headings
Advanced tools
Comparing version 2.0.1 to 2.0.2
'use strict'; | ||
var xtend = require('xtend'); | ||
var extend = require('extend'); | ||
var visit = require('unist-util-visit'); | ||
@@ -15,3 +15,4 @@ var has = require('hast-util-has-property'); | ||
tagName: 'span', | ||
properties: {className: ['icon', 'icon-link']} | ||
properties: {className: ['icon', 'icon-link']}, | ||
children: [] | ||
}; | ||
@@ -54,3 +55,3 @@ | ||
var child = icon(node); | ||
child.children = content.concat(); | ||
child.children = extend(true, content); | ||
node.children[methods[behavior]](child); | ||
@@ -63,5 +64,5 @@ } | ||
tagName: 'a', | ||
properties: xtend(props, {href: '#' + node.properties.id}) | ||
properties: extend({}, props, {href: '#' + node.properties.id}) | ||
}; | ||
} | ||
} |
{ | ||
"name": "rehype-autolink-headings", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Add links to headings in HTML", | ||
@@ -23,6 +23,6 @@ "license": "MIT", | ||
"dependencies": { | ||
"extend": "^3.0.1", | ||
"hast-util-has-property": "^1.0.0", | ||
"hast-util-is-element": "^1.0.0", | ||
"unist-util-visit": "^1.1.0", | ||
"xtend": "^4.0.1" | ||
"unist-util-visit": "^1.1.0" | ||
}, | ||
@@ -37,3 +37,3 @@ "devDependencies": { | ||
"rehype": "^5.0.0", | ||
"remark-cli": "^3.0.0", | ||
"remark-cli": "^4.0.0", | ||
"remark-preset-wooorm": "^3.0.0", | ||
@@ -40,0 +40,0 @@ "tape": "^4.0.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7275
53
+ Addedextend@^3.0.1
+ Addedextend@3.0.2(transitive)
- Removedxtend@^4.0.1
- Removedxtend@4.0.2(transitive)