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

ndoc

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

ndoc - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

.jshintignore

6

HISTORY.md

@@ -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 @@ ------------------

36

lib/index.js
'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

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