Comparing version 0.12.3 to 0.13.0
@@ -0,0 +0,0 @@ 'use strict' |
@@ -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
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
0
52783
8
378
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-walk@8.3.4(transitive)
- Removedacorn@7.4.1(transitive)
- Removedacorn-walk@7.2.0(transitive)
Updatedacorn@^8.4.1
Updatedacorn-walk@^8.1.1
Updatedcommonmark@^0.29.3
Updatedminimist@^1.2.5
Updatedmkdirp@^1.0.4