mdast-util-visit
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -8,3 +8,9 @@ --- | ||
0.1.1 / 2015-07-05 | ||
================== | ||
* Fix incorrect `index` passed to callback on first node ([52fe1e4](https://github.com/wooorm/mdast-util-visit/commit/52fe1e4)) | ||
* Fix failure on removed nodes ([8e7ccf2](https://github.com/wooorm/mdast-util-visit/commit/8e7ccf2)) | ||
0.1.0 / 2015-07-02 | ||
================== |
@@ -83,3 +83,3 @@ /** | ||
return iterate(children, function (child, index) { | ||
return one(child, index, parent); | ||
return child && one(child, index, parent); | ||
}); | ||
@@ -94,4 +94,6 @@ }; | ||
index = index || (parent ? 0 : null); | ||
if (!type || node.type === type) { | ||
result = callback(node, index || null, parent || null); | ||
result = callback(node, index, parent || null); | ||
} | ||
@@ -98,0 +100,0 @@ |
{ | ||
"name": "mdast-util-visit", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Utility to recursively walk over mdast nodes", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
7784
94
1