Comparing version 1.0.0 to 1.1.0
@@ -92,12 +92,12 @@ let extractTags = require('rexml'); if (extractTags && extractTags.__esModule) extractTags = extractTags.default; | ||
const getLinks = (allTypes, type) => { | ||
const getLinks = (allTypes, type) => { | ||
const m = mismatch( | ||
/(?:(.+)\.<(.+?)>)|([^|]+)/g, | ||
/(?:(.+)\.<(string, *)?(.+?)>)|([^|]+)/g, | ||
type, | ||
['gen', 'generic', 't'], | ||
['gen', 'string', 'generic', 't'], | ||
) | ||
const types = m.map(({ gen, generic, t }) => { | ||
const types = m.map(({ gen, generic, string = '', t }) => { | ||
if (gen) { | ||
const pp = getLinks(allTypes, generic) | ||
return `${gen}.<${pp}>` | ||
return `${gen}.<${string}${pp}>` | ||
} | ||
@@ -149,2 +149,3 @@ const link = getLinkToType(allTypes, t) | ||
module.exports = Type | ||
module.exports.getLinks = getLinks | ||
//# sourceMappingURL=Type.js.map |
@@ -0,1 +1,7 @@ | ||
## 25 September 2018 | ||
### 1.1.0 | ||
- [feature] Parse types inside of the `Object.<string, Type>` construct. | ||
## 24 September 2018 | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "typal", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Keeps JSDoc types in XML files and converts them to JavaScript and Markdown.", | ||
@@ -5,0 +5,0 @@ "main": "build", |
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
31622
231