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

doc-tree

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doc-tree - npm Package Compare versions

Comparing version 0.12.3 to 0.13.0

0

lib/cli.js

@@ -0,0 +0,0 @@ 'use strict'

8

lib/index.js

@@ -10,3 +10,3 @@ 'use strict'

const defaultEncoding = 'utf8'
const ecmaVersion = 6
const ecmaVersion = 11
const sourceType = 'module'

@@ -21,3 +21,2 @@ const CMparser = new commonmark.Parser()

class DocTree {
/**

@@ -117,5 +116,4 @@ * Instantiate doc-tree.

})
// Filter sparse array.
.filter(comment => comment)
// Filter sparse array.
.filter(comment => comment)
}

@@ -122,0 +120,0 @@

@@ -22,5 +22,3 @@ 'use strict'

return obj
})
.map((obj, index, array) => {
}).map((obj, index, array) => {
// Remove duplicate matches.

@@ -30,4 +28,4 @@ if (obj.context) {

if (nextObj && nextObj.context &&
nextObj.context.start === obj.context.start &&
nextObj.context.end === obj.context.end)
nextObj.context.start === obj.context.start &&
nextObj.context.end === obj.context.end)
delete obj.context

@@ -34,0 +32,0 @@ else {

@@ -108,3 +108,3 @@ 'use strict'

(isPrototype || isPrototypeAssignment ?
'' : delimiter + node.left.property.name)
'' : delimiter + node.left.property.name)
}, !isPrototype ? {

@@ -111,0 +111,0 @@ static: true

{
"name": "doc-tree",
"description": "Documentation generating tool for JavaScript that matches comments to AST nodes.",
"version": "0.12.3",
"version": "0.13.0",
"license": "GPL-3.0",

@@ -17,8 +17,8 @@ "homepage": "https://github.com/sapeien/doc-tree",

"dependencies": {
"acorn": "^7.1.1",
"acorn-walk": "^7.1.1",
"commonmark": "^0.29.1",
"acorn": "^8.4.1",
"acorn-walk": "^8.1.1",
"commonmark": "^0.29.3",
"doctrine": "^3.0.0",
"minimist": "^1.2.0",
"mkdirp": "^1.0.3"
"minimist": "^1.2.5",
"mkdirp": "^1.0.4"
},

@@ -28,3 +28,3 @@ "devDependencies": {

"eslint-config-boss": "^1.0.6",
"tape": "^4.13.2"
"tape": "^4.14.0"
},

@@ -31,0 +31,0 @@ "eslintConfig": {

# doc-tree
[![Build Status](https://img.shields.io/travis/sapeien/doc-tree/master.svg?style=flat-square)](https://travis-ci.org/sapeien/doc-tree)
[![Build Status](https://img.shields.io/travis/daliwali/doc-tree/master.svg?style=flat-square)](https://travis-ci.org/daliwali/doc-tree)
[![npm Version](https://img.shields.io/npm/v/doc-tree.svg?style=flat-square)](https://www.npmjs.com/package/doc-tree)
[![License](https://img.shields.io/npm/l/doc-tree.svg?style=flat-square)](https://raw.githubusercontent.com/sapeien/doc-tree/master/LICENSE)
[![License](https://img.shields.io/npm/l/doc-tree.svg?style=flat-square)](https://raw.githubusercontent.com/daliwali/doc-tree/master/LICENSE)

@@ -78,2 +78,2 @@ `doc-tree` parses comments in JavaScript code and outputs the structure and context of the comments in any particular format, JSDoc is the default but any documentation parsing function can be supplied. It traverses the Abstract Syntax Tree (AST) to determine the context of a comment. Basically it's glue code between the AST parser [Acorn](https://github.com/marijnh/acorn), and the JSDoc parser [Doctrine](https://github.com/Constellation/doctrine), though any user-supplied parsing function may be used.

This software is licensed under the [GNU General Public License v3](https://github.com/sapeien/doc-tree/blob/master/LICENSE).
This software is licensed under the [GNU General Public License v3](https://github.com/daliwali/doc-tree/blob/master/LICENSE).

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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