Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdast-util-visit

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-util-visit - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

6

history.md

@@ -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
==================

6

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc