New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

commentjs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commentjs - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

23

lib/scanner.js

@@ -67,5 +67,5 @@ /*!

Scanner.prototype.parsepath = function (dir, recurse) {
return function (filename) {
var filepath = path.normalize(path.resolve(dir, filename));
Scanner.prototype.parsefilepath = function (dir, filename) {
return function (filepath) {
filepath = path.normalize(path.resolve(dir, filepath));

@@ -77,7 +77,2 @@ // Exclude dot files and others

if (!fs.existsSync(filepath)) {
utils.log.warn('The path', filepath, 'doesn\'t exists');
return;
}
if (utils.file.isDir(filepath) && recurse) {

@@ -92,2 +87,14 @@ this.parsedir(filepath);

Scanner.prototype.parsepath = function (dir, recurse) {
return function (filename) {
var files = utils.file.expand(filename);
var filepath = path.normalize(path.resolve(dir, filename));
if (files && files.length) {
files.forEach(this.parsefilepath(dir, filename), this);
} else {
utils.log.warn('The path', filepath, 'doesn\'t exists');
}
};
};
Scanner.prototype.isValidExt = function (filepath) {

@@ -94,0 +101,0 @@ var isValid = true;

{
"name": "commentjs",
"description": "Simple API Documentation Generator",
"version": "0.0.2",
"version": "0.0.3",
"author": "Denis Ciccale (@tdecs)",

@@ -6,0 +6,0 @@ "homepage": "http://github.com/dciccale/comment.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