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

typal

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typal - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

11

build/lib/Type.js

@@ -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

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