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" |
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
GitHub dependency
Supply chain riskContains a dependency which resolves to a GitHub URL. Dependencies fetched from GitHub specifiers are not immutable can be used to inject untrusted code or reduce the likelihood of a reproducible install.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
13649
273
1
1
- Removedcommonmark@0.24.0(transitive)
- Removedentities@1.1.2(transitive)
- Removedmdurl@1.0.1(transitive)
- Removedstring.prototype.repeat@0.2.0(transitive)