You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

yocto-doc

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yocto-doc - npm Package Compare versions

Comparing version

to
2.3.5

2

package.json
{
"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 : [],