extract-comments
Advanced tools
Comparing version 0.5.1 to 0.6.0
@@ -12,2 +12,3 @@ /*! | ||
var mapFiles = require('map-files'); | ||
var isWhitespace = require('is-whitespace'); | ||
@@ -79,2 +80,5 @@ /** | ||
if (!isComment && o.end && i > o.end && afterCount < 2) { | ||
if (!isWhitespace(line)) { | ||
o.codeStart = i; | ||
} | ||
o.after += line + '\n'; | ||
@@ -81,0 +85,0 @@ afterCount++; |
{ | ||
"name": "extract-comments", | ||
"description": "Extract code comments from string or from a glob of files.", | ||
"version": "0.5.1", | ||
"version": "0.6.0", | ||
"homepage": "https://github.com/jonschlinkert/extract-comments", | ||
@@ -40,2 +40,3 @@ "author": { | ||
"dependencies": { | ||
"is-whitespace": "^0.2.0", | ||
"map-files": "^0.3.0" | ||
@@ -42,0 +43,0 @@ }, |
@@ -15,3 +15,3 @@ # extract-comments [![NPM version](https://badge.fury.io/js/extract-comments.svg)](http://badge.fury.io/js/extract-comments) | ||
### [extract](index.js#L40) | ||
### [extract](index.js#L41) | ||
@@ -36,3 +36,3 @@ Extract code comments from the given `string`. | ||
### [.fromFiles](index.js#L112) | ||
### [.fromFiles](index.js#L116) | ||
@@ -39,0 +39,0 @@ Extract code comments from a file or glob of files. You may also pass a custom `rename` function on the options to change the key of each object returned. |
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
6538
109
2
+ Addedis-whitespace@^0.2.0
+ Addedis-whitespace@0.2.0(transitive)