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

mdast-zone

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast-zone - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

6

history.md

@@ -8,2 +8,8 @@ ---

0.2.3 / 2015-07-12
==================
* Refactor to externalise utilities ([acd041a](https://github.com/wooorm/mdast-zone/commit/acd041a))
* Remove peer-dependencies ([5c2ff2c](https://github.com/wooorm/mdast-zone/commit/5c2ff2c))
0.2.2 / 2015-06-14

@@ -10,0 +16,0 @@ ==================

36

index.js
'use strict';
/*
* Dependencies.
*/
var visit = require('mdast-util-visit');
/*
* Methods.

@@ -87,28 +93,2 @@ */

/**
* Visit.
*
* @param {Node} tree
* @param {function(node, parent)} callback
*/
function visit(tree, callback) {
/**
* Visit one node.
*
* @param {Node} node
* @param {number} index
*/
function one(node, index) {
var parent = this || null;
callback(node, parent, index);
if (node.children) {
node.children.forEach(one, node);
}
}
one(tree);
}
/**
* Parse `value` into an object.

@@ -270,6 +250,6 @@ *

* @param {Node} node
* @param {number} index
* @param {Node} parent
* @param {number} index
*/
function gather(node, parent, index) {
function gather(node, index, parent) {
var result = test(node);

@@ -276,0 +256,0 @@ var type = result && result.type;

{
"name": "mdast-zone",
"version": "0.2.2",
"version": "0.2.3",
"description": "HTML comments as ranges or markers in mdast",

@@ -15,2 +15,5 @@ "license": "MIT",

],
"dependencies": {
"mdast-util-visit": "^0.1.1"
},
"repository": {

@@ -24,8 +27,5 @@ "type": "git",

],
"peerDependencies": {
"mdast": ">=0.22.0"
},
"devDependencies": {
"browserify": "^10.0.0",
"eslint": "^0.22.0",
"eslint": "^0.24.0",
"esmangle": "^1.0.0",

@@ -35,6 +35,6 @@ "istanbul": "^0.3.0",

"jscs-jsdoc": "^1.0.0",
"mdast": "^0.22.0",
"mdast": "^0.26.0",
"mdast-github": "^0.3.0",
"mdast-lint": "^0.2.0",
"mdast-toc": "^0.4.1",
"mdast-lint": "^0.4.0",
"mdast-toc": "^0.5.1",
"mdast-usage": "^0.3.0",

@@ -57,5 +57,4 @@ "mdast-yaml-config": "^0.2.0",

"build-md": "mdast . --output --quiet",
"build": "npm run build-md && npm run bundle",
"prepublish": "npm run build"
"build": "npm run build-md && npm run bundle"
}
}
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