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.15.1 to 1.15.2

30

build/lib/Type.js

@@ -261,5 +261,7 @@ const extractTags = require('rexml');

const twl = typeWithLink ? `${typeWithLink} ` : ''
let line = `${twl}__${nn}`
let LINE = twl// `${twl}<strong>${nn}`
let useTag = /_/.test(nn)
if (this.extends) {
let e = this.extends
useTag = useTag || /_/.test(this.extends)
let e = `\`${this.extends}\``
const foundExt = allTypes.find(({ fullName }) => {

@@ -269,11 +271,25 @@ return fullName == this.extends

if (foundExt && foundExt.link) {
useTag = useTag || /_/.test(foundExt.link)
e = '<a '
if (foundExt.description) e += `title="${foundExt.description}" `
e += `href="${foundExt.link}">${this.extends}</a>`
if (foundExt.description) {
e += `title="${foundExt.description}" `
useTag = useTag || /_/.test(foundExt.description)
}
e += `href="${foundExt.link}">\`${this.extends}\`</a>`
}
line += ` extends ${e}`
const extendS = ` extends ${e}`
if (useTag) LINE += '<strong>'
else LINE += '__'
LINE += nn + extendS
if (typeof flatten == 'function') flatten(this.extends)
} else {
if (useTag) LINE += '<strong>'
else LINE += '__'
LINE += nn
}
line += `__${d}`
if (useTag) LINE += '</strong>'
else LINE += '__'
LINE += d
const table = makePropsTable(this.properties, allTypes, { narrow, flatten })
const r = `${line}${table}`
const r = `${LINE}${table}`
return r

@@ -280,0 +296,0 @@ }

@@ -0,1 +1,7 @@

## 22 July 2019
### [1.15.2](https://github.com/artdecocode/typal/compare/v1.15.1...v1.15.2)
- [fix] Use the `<strong>` tag in props.
## 21 July 2019

@@ -2,0 +8,0 @@

{
"name": "typal",
"version": "1.15.1",
"version": "1.15.2",
"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": "build/index.js",

@@ -261,5 +261,7 @@ import extractTags from 'rexml'

const twl = typeWithLink ? `${typeWithLink} ` : ''
let line = `${twl}__${nn}`
let LINE = twl// `${twl}<strong>${nn}`
let useTag = /_/.test(nn)
if (this.extends) {
let e = this.extends
useTag = useTag || /_/.test(this.extends)
let e = `\`${this.extends}\``
const foundExt = allTypes.find(({ fullName }) => {

@@ -269,11 +271,25 @@ return fullName == this.extends

if (foundExt && foundExt.link) {
useTag = useTag || /_/.test(foundExt.link)
e = '<a '
if (foundExt.description) e += `title="${foundExt.description}" `
e += `href="${foundExt.link}">${this.extends}</a>`
if (foundExt.description) {
e += `title="${foundExt.description}" `
useTag = useTag || /_/.test(foundExt.description)
}
e += `href="${foundExt.link}">\`${this.extends}\`</a>`
}
line += ` extends ${e}`
const extendS = ` extends ${e}`
if (useTag) LINE += '<strong>'
else LINE += '__'
LINE += nn + extendS
if (typeof flatten == 'function') flatten(this.extends)
} else {
if (useTag) LINE += '<strong>'
else LINE += '__'
LINE += nn
}
line += `__${d}`
if (useTag) LINE += '</strong>'
else LINE += '__'
LINE += d
const table = makePropsTable(this.properties, allTypes, { narrow, flatten })
const r = `${line}${table}`
const r = `${LINE}${table}`
return r

@@ -280,0 +296,0 @@ }

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