Comparing version 1.24.17 to 1.24.18
@@ -0,1 +1,7 @@ | ||
## 21 December 2019 | ||
### [1.24.18](https://github.com/artdecocode/typal/compare/v1.24.17...v1.24.18) | ||
- [fix] Fix the order when flattening. | ||
## 20 December 2019 | ||
@@ -2,0 +8,0 @@ |
@@ -1138,4 +1138,4 @@ #!/usr/bin/env node | ||
let {link:k, type:{description:l}} = d; | ||
k = g(d); | ||
e && ((b = b.find(({fullName:h}) => h == a)) && b.link && (k = b.link), !l && b.description && (l = b.description), "function" == typeof e && e(a)); | ||
d.link == k && (k = g(d)); | ||
b = f ? f(c) : c; | ||
@@ -1142,0 +1142,0 @@ return l ? `<a href="${k}" title="${l.replace(/"/g, """)}">${b}</a>` : `[${b}](${k})`; |
@@ -515,4 +515,4 @@ #!/usr/bin/env node | ||
let {link:l, type:{description:h}} = d; | ||
l = f(d); | ||
e && ((b = b.find(({fullName:m}) => m == a)) && b.link && (l = b.link), !h && b.description && (h = b.description), "function" == typeof e && e(a)); | ||
d.link == l && (l = f(d)); | ||
b = g ? g(c) : c; | ||
@@ -519,0 +519,0 @@ return h ? `<a href="${l}" title="${h.replace(/"/g, """)}">${b}</a>` : `[${b}](${l})`; |
{ | ||
"name": "typal", | ||
"version": "1.24.17", | ||
"version": "1.24.18", | ||
"description": "Organises TypeDefs By Placing Them Into Types.Xml File To Be Embedded Into Source Code Compatible With VSCode And Google Closure Compiler, Generates Externs And Allows To Place Documentation In README Markdown.", | ||
@@ -5,0 +5,0 @@ "main": "compile/index.js", |
@@ -115,3 +115,4 @@ import parse from '@typedefs/parser' | ||
let { link, type: { description } } = l | ||
link = linkFn(l) | ||
// flatten should just become default now | ||
if (flatten) { | ||
@@ -125,2 +126,4 @@ const found = allTypes.find(({ fullName }) => fullName == type) | ||
} | ||
if (l.link == link) link = linkFn(l) // not flattened | ||
const nn = nameProcess ? nameProcess(n) : n | ||
@@ -127,0 +130,0 @@ if (!description) return `[${nn}](${link})` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
480208
6059