documentary
Advanced tools
Comparing version 1.21.1 to 1.21.2
@@ -16,3 +16,3 @@ const { Transform } = require('stream'); | ||
const { typedefMdRe } = require('./rules/typedef-md'); | ||
const { macroRule, useMacroRule } = require('./rules/macros');; | ||
const { macroRule, useMacroRule } = require('./rules/macros'); | ||
@@ -19,0 +19,0 @@ const re = /(?:^|\n) *(#+) +(.+)/g |
@@ -38,3 +38,4 @@ const { debuglog } = require('util'); | ||
async replacement(match, location, typeName) { | ||
if (location in this.locations) return | ||
if (this.hasCache(location, typeName)) return | ||
this.addCache(location,typeName) | ||
try { | ||
@@ -89,3 +90,10 @@ const xml = await read(location) | ||
}) | ||
this.cache = {} | ||
} | ||
addCache(location, typename = '') { | ||
this.cache[`${location}::${typename}`] = 1 | ||
} | ||
hasCache(location, typename = '') { | ||
return this.cache[`${location}::${typename}`] | ||
} | ||
} | ||
@@ -92,0 +100,0 @@ |
@@ -0,1 +1,7 @@ | ||
## 11 February 2019 | ||
### 1.21.2 | ||
- [fix] Fix the bug in `typedef` caching when the type name is specified. | ||
## 26 January 2019 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "documentary", | ||
"version": "1.21.1", | ||
"version": "1.21.2", | ||
"description": "A Documentation Pre-processor To Generate The Table Of Contents, Embed Examples With Their Output, Make Markdown Tables, Maintain Typedefs For JavaScript And README, Watch Changes To Push, Use Macros And Prettify API Titles.", | ||
@@ -5,0 +5,0 @@ "main": "build", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
151179
1797