Comparing version
{ | ||
"name": "yocto-doc", | ||
"description": "Generate documention for javascript source from JsDoc", | ||
"version": "2.3.4", | ||
"version": "2.3.5", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "ROBERT Mathieu", |
@@ -9,2 +9,3 @@ 'use strict'; | ||
var comment = require('comment-regex'); | ||
var fs = require('fs'); | ||
@@ -63,3 +64,16 @@ /** | ||
var realpath = path.normalize([ __dirname, '..' ].join('/')); | ||
// default template path | ||
var templatePath = path.resolve([ ".", 'node_modules', 'jsdoc-template' ].join('/')); | ||
// test if crrent template exits first | ||
try { | ||
// default template path exists ? | ||
if (fs.statSync(templatePath)) { | ||
// nothing to do | ||
} | ||
} catch(e) { | ||
// change the path | ||
templatePath = path.resolve([ process.cwd(), 'node_modules', | ||
appPackage.name, 'node_modules', 'jsdoc-template' ].join('/')); | ||
} | ||
// Default config option to use on build process | ||
@@ -72,7 +86,3 @@ var defaultOptions = { | ||
configure : configPath, | ||
template : path.resolve([ | ||
".", | ||
'node_modules', | ||
'jsdoc-template' | ||
].join('/')), | ||
template : templatePath, | ||
readme : [ process.cwd(), 'README-JSDOC.md' ].join('/'), | ||
@@ -79,0 +89,0 @@ extraFiles : [], |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
1524719
0.02%8314
0.12%8
14.29%