mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Update dependencies in build.js.
Former-commit-id: 020a52bdd604b55b078637aeb59e2e53483c950d
This commit is contained in:
48
build.js
48
build.js
@@ -150,31 +150,31 @@
|
|||||||
/** Used to track function dependencies */
|
/** Used to track function dependencies */
|
||||||
var dependencyMap = {
|
var dependencyMap = {
|
||||||
'after': [],
|
'after': [],
|
||||||
'bind': [],
|
'bind': ['isFunction'],
|
||||||
'bindAll': ['bind', 'functions'],
|
'bindAll': ['bind', 'isFunction'],
|
||||||
'chain': ['mixin'],
|
'chain': ['mixin'],
|
||||||
'clone': ['extend', 'forIn', 'forOwn', 'isArguments'],
|
'clone': ['extend', 'forIn', 'forOwn', 'isArguments', 'isFunction'],
|
||||||
'compact': [],
|
'compact': [],
|
||||||
'compose': [],
|
'compose': [],
|
||||||
'contains': [],
|
'contains': [],
|
||||||
'countBy': [],
|
'countBy': [],
|
||||||
'debounce': [],
|
'debounce': [],
|
||||||
'defaults': [],
|
'defaults': ['isArguments'],
|
||||||
'defer': [],
|
'defer': [],
|
||||||
'delay': [],
|
'delay': [],
|
||||||
'difference': ['indexOf'],
|
'difference': ['indexOf'],
|
||||||
'drop': ['indexOf'],
|
'drop': ['indexOf', 'isArguments'],
|
||||||
'escape': [],
|
'escape': [],
|
||||||
'every': ['identity'],
|
'every': ['identity'],
|
||||||
'extend': [],
|
'extend': ['isArguments'],
|
||||||
'filter': ['identity'],
|
'filter': ['identity'],
|
||||||
'find': [],
|
'find': [],
|
||||||
'first': [],
|
'first': [],
|
||||||
'flatten': ['isArray'],
|
'flatten': ['isArray'],
|
||||||
'forEach': [],
|
'forEach': [],
|
||||||
'forIn': [],
|
'forIn': ['isArguments'],
|
||||||
'forOwn': [],
|
'forOwn': ['isArguments'],
|
||||||
'functions': [],
|
'functions': ['isArguments', 'isFunction'],
|
||||||
'groupBy': [],
|
'groupBy': [],
|
||||||
'has': [],
|
'has': [],
|
||||||
'identity': [],
|
'identity': [],
|
||||||
@@ -187,8 +187,8 @@
|
|||||||
'isBoolean': [],
|
'isBoolean': [],
|
||||||
'isDate': [],
|
'isDate': [],
|
||||||
'isElement': [],
|
'isElement': [],
|
||||||
'isEmpty': ['isArguments'],
|
'isEmpty': ['isArguments', 'isFunction'],
|
||||||
'isEqual': ['isArguments'],
|
'isEqual': ['isArguments', 'isFunction'],
|
||||||
'isFinite': [],
|
'isFinite': [],
|
||||||
'isFunction': [],
|
'isFunction': [],
|
||||||
'isNaN': [],
|
'isNaN': [],
|
||||||
@@ -198,13 +198,13 @@
|
|||||||
'isRegExp': [],
|
'isRegExp': [],
|
||||||
'isString': [],
|
'isString': [],
|
||||||
'isUndefined': [],
|
'isUndefined': [],
|
||||||
'keys': [],
|
'keys': ['isArguments'],
|
||||||
'last': [],
|
'last': [],
|
||||||
'lastIndexOf': [],
|
'lastIndexOf': [],
|
||||||
'map': ['identity'],
|
'map': ['identity'],
|
||||||
'max': [],
|
'max': [],
|
||||||
'memoize': [],
|
'memoize': [],
|
||||||
'merge': ['isArray', 'forIn'],
|
'merge': ['isArguments', 'isArray', 'forIn'],
|
||||||
'min': [],
|
'min': [],
|
||||||
'mixin': ['forEach', 'functions'],
|
'mixin': ['forEach', 'functions'],
|
||||||
'noConflict': [],
|
'noConflict': [],
|
||||||
@@ -217,9 +217,9 @@
|
|||||||
'reduceRight': ['keys'],
|
'reduceRight': ['keys'],
|
||||||
'reject': ['identity'],
|
'reject': ['identity'],
|
||||||
'rest': [],
|
'rest': [],
|
||||||
'result': [],
|
'result': ['isFunction'],
|
||||||
'shuffle': [],
|
'shuffle': [],
|
||||||
'size': ['isArguments', 'keys'],
|
'size': ['isArguments', 'isFunction', 'keys'],
|
||||||
'some': ['identity'],
|
'some': ['identity'],
|
||||||
'sortBy': [],
|
'sortBy': [],
|
||||||
'sortedIndex': ['bind'],
|
'sortedIndex': ['bind'],
|
||||||
@@ -227,11 +227,11 @@
|
|||||||
'template': ['escape'],
|
'template': ['escape'],
|
||||||
'throttle': [],
|
'throttle': [],
|
||||||
'times': [],
|
'times': [],
|
||||||
'toArray': ['values'],
|
'toArray': ['isFunction', 'values'],
|
||||||
'union': ['indexOf'],
|
'union': ['indexOf'],
|
||||||
'uniq': ['identity', 'indexOf'],
|
'uniq': ['identity', 'indexOf'],
|
||||||
'uniqueId': [],
|
'uniqueId': [],
|
||||||
'values': [],
|
'values': ['isArguments'],
|
||||||
'where': ['forIn'],
|
'where': ['forIn'],
|
||||||
'without': ['indexOf'],
|
'without': ['indexOf'],
|
||||||
'wrap': [],
|
'wrap': [],
|
||||||
@@ -531,6 +531,17 @@
|
|||||||
return removeFromCreateIterator(source, funcName);
|
return removeFromCreateIterator(source, funcName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Removes the `_.isFunction` fallback from `source`.
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {String} source The source to process.
|
||||||
|
* @returns {String} Returns the source with the `isFunction` fallback removed.
|
||||||
|
*/
|
||||||
|
function removeIsFunctionFallback(source) {
|
||||||
|
return source.replace(/(?:\s*\/\/.*)*\s*if *\(isFunction\(\/x\/[\s\S]+?};\s*}/, '');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes the `_.isArguments` fallback from `source`.
|
* Removes the `_.isArguments` fallback from `source`.
|
||||||
*
|
*
|
||||||
@@ -1030,6 +1041,9 @@
|
|||||||
if (isRemoved(source, 'isArray')) {
|
if (isRemoved(source, 'isArray')) {
|
||||||
source = removeVar(source, 'nativeIsArray');
|
source = removeVar(source, 'nativeIsArray');
|
||||||
}
|
}
|
||||||
|
if (isRemoved(source, 'isFunction')) {
|
||||||
|
source = removeIsFunctionFallback(source);
|
||||||
|
}
|
||||||
if (isRemoved(source, 'keys')) {
|
if (isRemoved(source, 'keys')) {
|
||||||
source = removeFunction(source, 'shimKeys');
|
source = removeFunction(source, 'shimKeys');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user