Comparing version 1.2.1 to 1.2.2
@@ -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 @@ }) : [] |
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
19858