Launch Week Day 3: Introducing Organization Notifications in Socket.Learn More
Socket
Book a DemoSign in
Socket

apidoc-core

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apidoc-core - npm Package Compare versions

Comparing version
0.8.0
to
0.8.1
+10
-5
lib/utils/find_files.js

@@ -1,3 +0,4 @@

var fs = require('fs-extra');
var os = require('os');
var fs = require('fs-extra');
var klawSync = require('klaw-sync');
var os = require('os');

@@ -62,3 +63,5 @@ var FileError = require('../errors/file_error');

try {
files = fs.walkSync(self.path);
files = klawSync(self.path).map( function(entry) {
return entry.path;
});

@@ -139,8 +142,10 @@ // create RegExp Include Filter List

files = files.map( function(filename) {
return filename.substr(self.path.length);
if (filename.startsWith(self.path)) {
return filename.substr(self.path.length + 1); // + 1 / at the end
}
return filename;
});
}
}
return files;
};
{
"name": "apidoc-core",
"version": "0.8.0",
"version": "0.8.1",
"description": "Core parser library to generate apidoc result following the apidoc-spec",

@@ -33,5 +33,6 @@ "author": "Peter Rottmann <rottmann@inveris.de>",

"dependencies": {
"fs-extra": "^1.0.0",
"fs-extra": "^2.0.0",
"glob": "^7.1.1",
"iconv-lite": "^0.4.15",
"klaw-sync": "^1.0.2",
"lodash": "~4.17.4",

@@ -38,0 +39,0 @@ "semver": "~5.3.0"