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.20 to 1.1.21

5

lib/deserialize.js

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

// handle documet nodes
// handle document nodes
if(isDocument) {

@@ -55,4 +55,3 @@

if(!this.doc) {
this.doc = Node.createDocument();
this.doc = Node.createDocument(chunk._sourcepos, chunk);
// append children of nested document

@@ -59,0 +58,0 @@ }else{

@@ -64,4 +64,5 @@ var Node = require('commonmark/lib/node');

*/
function createDocument(sourcepos) {
return new AstNode(AstNode.DOCUMENT, sourcepos || [[1, 1], [0, 0]]);
function createDocument(sourcepos, attrs) {
return AstNode.createNode(
AstNode.DOCUMENT, attrs, sourcepos || [[1, 1], [0, 0]]);
}

@@ -68,0 +69,0 @@

2

package.json
{
"name": "mkast",
"version": "1.1.20",
"version": "1.1.21",
"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