Socket
Socket
Sign inDemoInstall

mkast

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mkast - npm Package Compare versions

Comparing version 1.1.17 to 1.1.18

4

lib/deserialize.js

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

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