Comparing version 1.0.6 to 1.0.7
@@ -0,1 +1,7 @@ | ||
1.0.7 / 2012-02-09 | ||
------------------ | ||
* Improve error reporting. | ||
* Partial code cleanup. | ||
1.0.6 / 2012-02-05 | ||
@@ -2,0 +8,0 @@ ------------------ |
'use strict'; | ||
var Util = require('./util'); | ||
// | ||
// create and load parser | ||
// | ||
var parser; | ||
try { | ||
parser = require('./parser'); | ||
} catch (err) { | ||
(function () { | ||
var Jison = require('jison'), | ||
grammar = require('jison/lib/jison/bnf').parse(Util.read(Util.join(__dirname, 'parser.y'))); | ||
Util.write(Util.join(__dirname, 'parser.js'), (new Jison.Parser(grammar)).generate()); | ||
}()); | ||
parser = require('./parser'); | ||
} | ||
// stdlib | ||
var Fs = require('fs'); | ||
var Path = require('path'); | ||
var parser = require('./parser'); | ||
// | ||
@@ -77,3 +69,3 @@ // helpers | ||
try { | ||
text = Util.read(file); | ||
text = Fs.readFileSync(file, 'utf8'); | ||
// TODO: consider amending failing document inplace. | ||
@@ -325,4 +317,4 @@ // Say, if it doesn't parse, insert a fake '*' line at failing `line` and retry | ||
// TODO: store it for further reuse, and get rid of jade dependency? | ||
path = Util.join(options.skin, 'templates', 'layout.jade'), | ||
str = Util.read(path), | ||
path = Path.join(options.skin, 'templates', 'layout.jade'), | ||
str = Fs.readFileSync(path, 'utf8'), | ||
fn = Jade.compile(str, { | ||
@@ -365,6 +357,6 @@ filename: path, | ||
// | ||
var r = '<a href="#' + obj.path | ||
+ '" class="' + (classes || []).join(' ') | ||
+ '" title="' + obj.id + (obj.type ? ' (' + obj.type + ')' : '') | ||
+ '" data-id="' + obj.id + '">'; | ||
var r = '<a href="#' + obj.path + | ||
'" class="' + (classes || []).join(' ') + | ||
'" title="' + obj.id + (obj.type ? ' (' + obj.type + ')' : '') + | ||
'" data-id="' + obj.id + '">'; | ||
r += typeof short === 'string' ? short : short ? obj.name : obj.id; | ||
@@ -371,0 +363,0 @@ r += '</a>'; |
{ | ||
"name" : "ndoc", | ||
"version" : "1.0.6", | ||
"version" : "1.0.7", | ||
"description" : "JavaScript API documentor with simple syntax.", | ||
@@ -27,4 +27,4 @@ "keywords" : [ | ||
"jade" : "0.18.0", | ||
"marked" : "0.1.5", | ||
"fs-tools" : "0.1.0" | ||
"marked" : "0.1.9", | ||
"fs-tools" : "0.2.1" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies" : { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
265605
48
2823
5
2
+ Addedasync@0.1.15(transitive)
+ Addedfs-tools@0.2.1(transitive)
+ Addedmarked@0.1.9(transitive)
+ Addedunderscore@1.3.1(transitive)
- Removedfs-tools@0.1.0(transitive)
- Removedmarked@0.1.5(transitive)
Updatedfs-tools@0.2.1
Updatedmarked@0.1.9