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

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.0 to 1.1.1

11

index.js
var through = require('through3')
, LineStream = require('stream-lines')
, EachStream = through.transform(each)
, Walk = require('./lib/walk')

@@ -21,2 +20,5 @@ , Serialize = require('./lib/serialize')

var EachStream = through.transform(each);
/**

@@ -48,2 +50,3 @@ * Deserialize line-delimited JSON to commonmark AST.

}
return deserializer;

@@ -66,5 +69,5 @@ }

var ast = new Walk()
, serialize = new Serialize();
, serializer = new Serialize();
ast.pipe(serialize);
ast.pipe(serializer);

@@ -82,3 +85,3 @@ if(cb) {

return serialize;
return serializer;
}

@@ -85,0 +88,0 @@

@@ -16,3 +16,2 @@ var through = require('through3')

while(next) {
//console.dir(next);
n.appendChild(attach(next));

@@ -59,4 +58,4 @@ next = next._next;

if(res && res._type === 'Document') {
this.doc = new Node('Document', res._sourcepos);
if(res && res._type === 'document') {
this.doc = new Node('document', res._sourcepos);
}else if(this.doc && res._type !== 'EOF') {

@@ -63,0 +62,0 @@ this.doc.appendChild(attach(res));

@@ -22,3 +22,3 @@ var through = require('through3');

var nodes = [];
if(ast && ast.type === 'Document' && ast.firstChild) {
if(ast && ast.type === 'document' && ast.firstChild) {

@@ -25,0 +25,0 @@ // push direct descendants

{
"name": "mkast",
"version": "1.1.0",
"version": "1.1.1",
"description": "Commonmark AST transformer",

@@ -23,3 +23,3 @@ "main": "index.js",

"dependencies": {
"commonmark": "~0.24.0",
"commonmark": "tmpfs/commonmark.js",
"stream-lines": "~1.1.7",

@@ -26,0 +26,0 @@ "through3": "~1.1.5"

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