Skip to content

Commit ca7897b

Browse files
authored
Merge pull request #36 from openlayers/dependabot/npm_and_yarn/jsdoc-4.0.2
Bump jsdoc from 3.6.11 to 4.0.2
2 parents c0488d4 + 883db9c commit ca7897b

3 files changed

Lines changed: 43 additions & 32 deletions

File tree

package-lock.json

Lines changed: 38 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"eslint": "^8.23.1",
3131
"eslint-config-openlayers": "^17.0.0",
3232
"fs-extra": "^11.1.0",
33-
"jsdoc": "^3.6.11"
33+
"jsdoc": "^4.0.2"
3434
},
3535
"eslintConfig": {
3636
"extends": "openlayers"

test/template/publish.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ function sanitizeObject(obj) {
2222

2323
/**
2424
* Publish hook for the JSDoc template. Writes to JSON stdout.
25-
* @param {Function} data The root of the Taffy DB containing doclet records.
25+
* @param {Function} data The root of the Salty DB containing doclet records.
2626
* @param {Object} opts Options.
2727
* @return {Promise} A promise that resolves when writing is complete.
2828
*/
2929
exports.publish = function (data, opts) {
30-
const docs = data({kind: {'!is': 'package'}}).get();
30+
const docs = data(function () {
31+
return this.kind !== 'package';
32+
}).get();
3133

3234
const sanitized = docs.map((doclet) => {
3335
const obj = JSON.parse(JSON.stringify(doclet));

0 commit comments

Comments
 (0)