Socket
Socket
Sign inDemoInstall

dox

Package Overview
Dependencies
Maintainers
3
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.8.0 to 0.8.1

7

History.md

@@ -0,1 +1,8 @@

0.8.1 / 2016-03-29
==================
* Fix: Dox will no longer falsely enter or exit string blocks when encountering an escaped quote or double-quote
* Deps: commander@2.9.0
* Deps: marked@0.3.5
0.8.0 / 2015-05-27

@@ -2,0 +9,0 @@ ==================

18

lib/dox.js

@@ -67,6 +67,10 @@ /*!

, lineNumStarting = 1
, parentContext;
, parentContext
, withinEscapeChar
, currentStringQuoteChar;
for (var i = 0, len = js.length; i < len; ++i) {
withinEscapeChar = withinString && !withinEscapeChar && js[i - 1] == '\\';
// start comment

@@ -128,4 +132,12 @@ if (!withinMultiline && !withinSingle && !withinString &&

buf += js[i];
} else if (!withinSingle && !withinMultiline && ('\'' == js[i] || '"' == js[i])) {
withinString = !withinString;
} else if (!withinSingle && !withinMultiline && !withinEscapeChar && ('\'' == js[i] || '"' == js[i])) {
if(withinString) {
if(js[i] == currentStringQuoteChar) {
withinString = false;
}
} else {
withinString = true;
currentStringQuoteChar = js[i];
}
buf += js[i];

@@ -132,0 +144,0 @@ } else {

9

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

@@ -31,10 +31,11 @@ "contributors": [

"dependencies": {
"commander": "~2.8.1",
"commander": "~2.9.0",
"jsdoctypeparser": "^1.2.0",
"marked": ">=0.3.1"
"marked": "~0.3.5"
},
"devDependencies": {
"mocha": "~2.2.5",
"mocha": "~2.4.5",
"should": "~6.0.3"
},
"license": "MIT",
"scripts": {

@@ -41,0 +42,0 @@ "test": "make test"

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