Comparing version 7.0.0-3 to 7.0.0
@@ -6,3 +6,2 @@ const arrayify = require('array-back') | ||
const objectGet = require('object-get') | ||
const where = require('test-value').where | ||
const state = require('../lib/state') | ||
@@ -404,3 +403,3 @@ | ||
function isClassMember (options) { | ||
const parent = arrayify(options.data.root).find(where({ id: this.memberof })) | ||
const parent = arrayify(options.data.root).find(i => i.id === this.memberof) | ||
if (parent) { | ||
@@ -467,11 +466,11 @@ return parent.kind === 'class' | ||
for (const prop in options.hash) { | ||
if (/^-/.test(prop)) { | ||
query[prop.replace(/^-/, '!')] = options.hash[prop] | ||
} else if (/^_/.test(prop)) { | ||
query[prop.replace(/^_/, '')] = new RegExp(options.hash[prop]) | ||
} else { | ||
query[prop] = options.hash[prop] | ||
} | ||
query[prop] = options.hash[prop] | ||
} | ||
return arrayify(options.data.root).filter(where(query)).filter(function (doclet) { | ||
return arrayify(options.data.root) | ||
.filter(doclet => { | ||
return Object.keys(query).every(prop => { | ||
return doclet[prop] === query[prop] | ||
}) | ||
}) | ||
.filter(function (doclet) { | ||
return !doclet.ignore && (state.options.private ? true : doclet.access !== 'private') | ||
@@ -546,3 +545,3 @@ }) | ||
function exported (options) { | ||
const exp = arrayify(options.data.root).find(where({ '!kind': 'module', id: this.id })) | ||
const exp = arrayify(options.data.root).find(d => d.kind !== 'module' && d.id === this.id) | ||
return exp || this | ||
@@ -564,3 +563,3 @@ } | ||
function parentObject (options) { | ||
return arrayify(options.data.root).find(where({ id: this.memberof })) | ||
return arrayify(options.data.root).find(d => d.id === this.memberof) | ||
} | ||
@@ -730,3 +729,3 @@ | ||
if (this.memberof && this.kind !== 'constructor') { | ||
const parent = arrayify(options.data.root).find(where({ id: this.memberof })) | ||
const parent = arrayify(options.data.root).find(d => d.id === this.memberof) | ||
if (parent) { | ||
@@ -733,0 +732,0 @@ if (this.scope === 'instance') { |
{ | ||
"name": "dmd", | ||
"author": "Lloyd Brookes <75pound@gmail.com>", | ||
"version": "7.0.0-3", | ||
"version": "7.0.0", | ||
"description": "The default output template for jsdoc-to-markdown", | ||
@@ -38,3 +38,2 @@ "license": "MIT", | ||
"reduce-unique": "^2.0.1", | ||
"test-value": "^3.0.0", | ||
"walk-back": "^5.1.1" | ||
@@ -41,0 +40,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10
1
82265
2093
- Removedtest-value@^3.0.0
- Removedarray-back@2.0.0(transitive)
- Removedtest-value@3.0.0(transitive)
- Removedtypical@2.6.1(transitive)