Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dox

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dox - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

5

History.md
0.4.4 / 2013-07-28
==================
* add support for variable names containing "$". fix #102
0.4.3 / 2013-03-18

@@ -3,0 +8,0 @@ ==================

18

lib/dox.js

@@ -191,2 +191,6 @@ /*!

break;
case 'throws':
tag.types = exports.parseTagTypes(parts.shift());
tag.description = parts.join(' ');
break;
default:

@@ -238,3 +242,3 @@ tag.string = parts.join(' ');

// function statement
if (/^function (\w+) *\(/.exec(str)) {
if (/^function ([\w$]+) *\(/.exec(str)) {
return {

@@ -246,3 +250,3 @@ type: 'function'

// function expression
} else if (/^var *(\w+)[ \t]*=[ \t]*function/.exec(str)) {
} else if (/^var *([\w$]+)[ \t]*=[ \t]*function/.exec(str)) {
return {

@@ -254,3 +258,3 @@ type: 'function'

// prototype method
} else if (/^(\w+)\.prototype\.(\w+)[ \t]*=[ \t]*function/.exec(str)) {
} else if (/^([\w$]+)\.prototype\.([\w$]+)[ \t]*=[ \t]*function/.exec(str)) {
return {

@@ -264,3 +268,3 @@ type: 'method'

// prototype property
} else if (/^(\w+)\.prototype\.(\w+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) {
} else if (/^([\w$]+)\.prototype\.([\w$]+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) {
return {

@@ -275,3 +279,3 @@ type: 'property'

// method
} else if (/^([\w.]+)\.(\w+)[ \t]*=[ \t]*function/.exec(str)) {
} else if (/^([\w$.]+)\.([\w$]+)[ \t]*=[ \t]*function/.exec(str)) {
return {

@@ -284,3 +288,3 @@ type: 'method'

// property
} else if (/^(\w+)\.(\w+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) {
} else if (/^([\w$]+)\.([\w$]+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) {
return {

@@ -294,3 +298,3 @@ type: 'property'

// declaration
} else if (/^var +(\w+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) {
} else if (/^var +([\w$]+)[ \t]*=[ \t]*([^\n;]+)/.exec(str)) {
return {

@@ -297,0 +301,0 @@ type: 'declaration'

{ "name": "dox"
, "description": "Markdown / JSdoc documentation generator"
, "version": "0.4.3"
, "version": "0.4.4"
, "author": "TJ Holowaychuk <tj@vision-media.ca>"

@@ -5,0 +5,0 @@ , "repository": { "type": "git", "url": "git://github.com/visionmedia/dox.git" }

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