mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 15:57:48 +00:00
Add templateSettings to the Chaining category and cleanup _.difference use.
Former-commit-id: acccb5d3868cf6e38b9f6f87b6107cf4c7b1ec30
This commit is contained in:
12
build.js
12
build.js
@@ -251,7 +251,7 @@
|
||||
'template': ['reInterpolate'],
|
||||
};
|
||||
|
||||
/** Used to track the category of functions */
|
||||
/** Used to track the category of identifiers */
|
||||
var categoryMap = {
|
||||
'Arrays': [
|
||||
'compact',
|
||||
@@ -367,6 +367,7 @@
|
||||
'result',
|
||||
'runInContext',
|
||||
'template',
|
||||
'templateSettings',
|
||||
'times',
|
||||
'unescape',
|
||||
'uniqueId'
|
||||
@@ -450,7 +451,6 @@
|
||||
'nonEnumProps',
|
||||
'shadowedProps',
|
||||
'support',
|
||||
'templateSettings',
|
||||
'whitespace'
|
||||
];
|
||||
|
||||
@@ -523,10 +523,10 @@
|
||||
var allFuncs = _.keys(funcDependencyMap);
|
||||
|
||||
/** List of Lo-Dash functions */
|
||||
var lodashFuncs = _.difference(allFuncs, privateFuncs.concat('findWhere'));
|
||||
var lodashFuncs = _.difference(allFuncs, privateFuncs, 'findWhere');
|
||||
|
||||
/** List of Underscore functions */
|
||||
var underscoreFuncs = _.difference(allFuncs, lodashOnlyFuncs.concat(privateFuncs));
|
||||
var underscoreFuncs = _.difference(allFuncs, lodashOnlyFuncs, privateFuncs);
|
||||
|
||||
/** List of all property dependencies */
|
||||
var propDependencies = _.uniq(_.transform(propDependencyMap, function(result, propNames) {
|
||||
@@ -2374,7 +2374,7 @@
|
||||
},
|
||||
'exports': {
|
||||
'entries': exportsOptions,
|
||||
'validEntries': ['amd', 'commonjs', 'global', 'node', 'none']
|
||||
'validEntries': allExports
|
||||
},
|
||||
'include': {
|
||||
'entries': includeFuncs,
|
||||
@@ -2389,7 +2389,7 @@
|
||||
'validEntries': allFuncs
|
||||
}
|
||||
}, function(data, commandName) {
|
||||
invalidArgs = _.difference(data.entries, data.validEntries.concat('none'));
|
||||
invalidArgs = _.difference(data.entries, data.validEntries, 'none');
|
||||
if (invalidArgs.length) {
|
||||
warnings.push('Invalid `' + commandName + '` entr' + (invalidArgs.length > 1 ? 'ies' : 'y') + ' passed: ' + invalidArgs.join(', '));
|
||||
}
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
'zipObject': ['object']
|
||||
};
|
||||
|
||||
/** Used to track the category of functions */
|
||||
/** Used to track the category of identifiers */
|
||||
var categoryMap = {
|
||||
'Arrays': [
|
||||
'compact',
|
||||
@@ -205,6 +205,7 @@
|
||||
'result',
|
||||
'runInContext',
|
||||
'template',
|
||||
'templateSettings',
|
||||
'times',
|
||||
'unescape',
|
||||
'uniqueId'
|
||||
|
||||
Reference in New Issue
Block a user