Comparing version 1.1.17 to 1.1.18
@@ -84,5 +84,3 @@ var through = require('through3') | ||
}else if(!isMeta) { | ||
console.error('dropped node %s', chunk._type); | ||
console.error(chunk); | ||
throw new Error('node without parent document'); | ||
return cb(new Error('node without parent document: ' + chunk._type)); | ||
} | ||
@@ -89,0 +87,0 @@ |
@@ -6,3 +6,3 @@ var Node = require('./node'); | ||
while(child) { | ||
cb(child); | ||
cb(child, node); | ||
walk(child, cb); | ||
@@ -9,0 +9,0 @@ child = child._next; |
@@ -33,3 +33,2 @@ var Node = require('commonmark/lib/node'); | ||
AstNode.DOCUMENT = 'document'; | ||
AstNode.REF = 'ref'; // link reference - not yet merged! | ||
AstNode.SOFTBREAK = 'softbreak'; | ||
@@ -99,3 +98,2 @@ AstNode.LINEBREAK = 'linebreak'; | ||
AstNode.DOCUMENT, | ||
AstNode.REF, | ||
AstNode.SOFTBREAK, | ||
@@ -122,2 +120,6 @@ AstNode.LINEBREAK, | ||
AstNode.extensions = [ | ||
AstNode.EOF | ||
]; | ||
module.exports = AstNode; |
@@ -26,9 +26,8 @@ var through = require('through3') | ||
var nodes = []; | ||
// exapand child nodes of documents, this creates a pseudo stream | ||
// expand child nodes of documents, this creates a pseudo stream | ||
// from the input document | ||
if(chunk._type === Node.DOCUMENT && chunk._firstChild) { | ||
//if(chunk._type === Node.DOCUMENT) { | ||
if(chunk._type === Node.DOCUMENT) { | ||
var nodes = [] | ||
// push direct descendants | ||
@@ -35,0 +34,0 @@ var next = chunk._firstChild; |
{ | ||
"name": "mkast", | ||
"version": "1.1.17", | ||
"version": "1.1.18", | ||
"description": "Abstract syntax tree transformer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
25849
708