Skip to content

Commit 883db9c

Browse files
committed
Changes for taffydb removal
1 parent 4b6ec49 commit 883db9c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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)