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.2.1 to 1.2.2

4

build/lib/Property.js

@@ -37,5 +37,5 @@ const { getPropType, getNameWithDefault } = require('.');

}
toParam(parentParam) {
toParam(parentParam, ws = '') {
const s = this.toJSDoc(parentParam)
const p = ` * @param ${s}`
const p = `${ws} * @param ${s}`
return p

@@ -42,0 +42,0 @@ }

@@ -48,9 +48,9 @@ let extractTags = require('rexml'); if (extractTags && extractTags.__esModule) extractTags = extractTags.default;

}
toParam(paramName, optional) {
toParam(paramName, optional, ws = '') {
const d = this.description ? ` ${this.description}` : ''
const nn = this.spread ? getSpread(this.properties) : this.name
const pn = optional ? `[${paramName}]` : paramName
const s = ` * @param {${nn}} ${pn}${d}`
const s = `${ws} * @param {${nn}} ${pn}${d}`
const p = this.properties && !this.noExpand ? this.properties.map((pr) => {
const sp = pr.toParam(paramName)
const sp = pr.toParam(paramName, ws)
return sp

@@ -57,0 +57,0 @@ }) : []

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

## 28 March 2019
### [1.2.2](https://github.com/artdecocode/typal/compare/v1.2.1...v1.2.2)
- [fix] Implement the `whitespace` argument, e.g., when used inside of classes.
## 12 March 2019

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

{
"name": "typal",
"version": "1.2.1",
"version": "1.2.2",
"description": "Keeps JSDoc types in XML files and converts them to JavaScript and Markdown.",

@@ -41,7 +41,7 @@ "main": "build/index.js",

"devDependencies": {
"alamode": "1.8.4",
"alamode": "1.8.6",
"documentary": "1.22.0",
"eslint-config-artdeco": "1.0.1",
"yarn-s": "1.1.0",
"zoroaster": "3.8.2"
"zoroaster": "3.11.1"
},

@@ -48,0 +48,0 @@ "dependencies": {

@@ -37,7 +37,7 @@ import { getPropType, getNameWithDefault } from '.'

}
toParam(parentParam) {
toParam(parentParam, ws = '') {
const s = this.toJSDoc(parentParam)
const p = ` * @param ${s}`
const p = `${ws} * @param ${s}`
return p
}
}

@@ -48,9 +48,9 @@ import extractTags from 'rexml'

}
toParam(paramName, optional) {
toParam(paramName, optional, ws = '') {
const d = this.description ? ` ${this.description}` : ''
const nn = this.spread ? getSpread(this.properties) : this.name
const pn = optional ? `[${paramName}]` : paramName
const s = ` * @param {${nn}} ${pn}${d}`
const s = `${ws} * @param {${nn}} ${pn}${d}`
const p = this.properties && !this.noExpand ? this.properties.map((pr) => {
const sp = pr.toParam(paramName)
const sp = pr.toParam(paramName, ws)
return sp

@@ -57,0 +57,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