Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 4099279

Browse files
committed
fix(doc-gen): use the correct lodash method in dgeni processor (indexBy --> keyBy)
The `indexBy()` method was renamed to `keyBy()` in lodash v4 (see lodash/lodash@b1d52cc). This commit updates all usages of `indexBy()` to `keyBy()`.
1 parent 01ed44e commit 4099279

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/config/processors/keywords.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ module.exports = function generateKeywordsProcessor(log, readFilesProcessor) {
4747

4848
}
4949

50-
areasToSearch = _.indexBy(this.areasToSearch);
51-
propertiesToIgnore = _.indexBy(this.propertiesToIgnore);
50+
areasToSearch = _.keyBy(this.areasToSearch);
51+
propertiesToIgnore = _.keyBy(this.propertiesToIgnore);
5252
log.debug('Properties to ignore', propertiesToIgnore);
53-
docTypesToIgnore = _.indexBy(this.docTypesToIgnore);
53+
docTypesToIgnore = _.keyBy(this.docTypesToIgnore);
5454
log.debug('Doc types to ignore', docTypesToIgnore);
5555

56-
var ignoreWordsMap = _.indexBy(wordsToIgnore);
56+
var ignoreWordsMap = _.keyBy(wordsToIgnore);
5757

5858
// If the title contains a name starting with ng, e.g. "ngController", then add the module name
5959
// without the ng to the title text, e.g. "controller".

docs/config/processors/pages-data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ module.exports = function generatePagesDataProcessor(log) {
224224
.map(function(doc) {
225225
return _.pick(doc, ['name', 'area', 'path']);
226226
})
227-
.indexBy('path')
227+
.keyBy('path')
228228
.value();
229229

230230
docs.push({

0 commit comments

Comments
 (0)