mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: updates lodash to 4.17.13 (#7883)
This commit is contained in:
parent
c584a4569b
commit
afe922c30b
32
vendor/assets/javascripts/lodash.js
vendored
32
vendor/assets/javascripts/lodash.js
vendored
@ -1,8 +1,8 @@
|
|||||||
/**
|
/**
|
||||||
* @license
|
* @license
|
||||||
* Lodash (Custom Build) <https://lodash.com/>
|
* Lodash (Custom Build) <https://lodash.com/>
|
||||||
* Build: `lodash include="each,filter,map,range,first,isEmpty,chain,extend,every,omit,merge,union,sortBy,uniq,intersection,reject,compact,reduce,debounce,throttle,values,pick,keys,flatten,min,max,isArray,delay,isString,isEqual,without,invoke,clone,findIndex,find,groupBy" minus="template" -d`
|
* Build: `lodash include="each,filter,map,range,first,isEmpty,chain,extend,every,omit,merge,union,sortBy,uniq,intersection,reject,compact,reduce,debounce,throttle,values,pick,keys,flatten,min,max,isArray,delay,isString,isEqual,without,invoke,clone,findIndex,find,groupBy" minus="template" -d -o node_modules/lodash.js`
|
||||||
* Copyright JS Foundation and other contributors <https://js.foundation/>
|
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||||||
* Released under MIT license <https://lodash.com/license>
|
* Released under MIT license <https://lodash.com/license>
|
||||||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||||||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||||||
@ -13,7 +13,7 @@
|
|||||||
var undefined;
|
var undefined;
|
||||||
|
|
||||||
/** Used as the semantic version number. */
|
/** Used as the semantic version number. */
|
||||||
var VERSION = '4.17.11';
|
var VERSION = '4.17.13';
|
||||||
|
|
||||||
/** Used as the size to enable large array optimizations. */
|
/** Used as the size to enable large array optimizations. */
|
||||||
var LARGE_ARRAY_SIZE = 200;
|
var LARGE_ARRAY_SIZE = 200;
|
||||||
@ -1971,16 +1971,10 @@
|
|||||||
value.forEach(function(subValue) {
|
value.forEach(function(subValue) {
|
||||||
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
||||||
});
|
});
|
||||||
|
} else if (isMap(value)) {
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isMap(value)) {
|
|
||||||
value.forEach(function(subValue, key) {
|
value.forEach(function(subValue, key) {
|
||||||
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
||||||
});
|
});
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var keysFunc = isFull
|
var keysFunc = isFull
|
||||||
@ -2726,8 +2720,8 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
baseFor(source, function(srcValue, key) {
|
baseFor(source, function(srcValue, key) {
|
||||||
if (isObject(srcValue)) {
|
|
||||||
stack || (stack = new Stack);
|
stack || (stack = new Stack);
|
||||||
|
if (isObject(srcValue)) {
|
||||||
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -4733,7 +4727,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the value at `key`, unless `key` is "__proto__".
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to query.
|
* @param {Object} object The object to query.
|
||||||
@ -4741,6 +4735,10 @@
|
|||||||
* @returns {*} Returns the property value.
|
* @returns {*} Returns the property value.
|
||||||
*/
|
*/
|
||||||
function safeGet(object, key) {
|
function safeGet(object, key) {
|
||||||
|
if (key === 'constructor' && typeof object[key] === 'function') {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (key == '__proto__') {
|
if (key == '__proto__') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -6068,6 +6066,7 @@
|
|||||||
}
|
}
|
||||||
if (maxing) {
|
if (maxing) {
|
||||||
// Handle invocations in a tight loop.
|
// Handle invocations in a tight loop.
|
||||||
|
clearTimeout(timerId);
|
||||||
timerId = setTimeout(timerExpired, wait);
|
timerId = setTimeout(timerExpired, wait);
|
||||||
return invokeFunc(lastCallTime);
|
return invokeFunc(lastCallTime);
|
||||||
}
|
}
|
||||||
@ -7948,10 +7947,11 @@
|
|||||||
baseForOwn(LazyWrapper.prototype, function(func, methodName) {
|
baseForOwn(LazyWrapper.prototype, function(func, methodName) {
|
||||||
var lodashFunc = lodash[methodName];
|
var lodashFunc = lodash[methodName];
|
||||||
if (lodashFunc) {
|
if (lodashFunc) {
|
||||||
var key = (lodashFunc.name + ''),
|
var key = lodashFunc.name + '';
|
||||||
names = realNames[key] || (realNames[key] = []);
|
if (!hasOwnProperty.call(realNames, key)) {
|
||||||
|
realNames[key] = [];
|
||||||
names.push({ 'name': methodName, 'func': lodashFunc });
|
}
|
||||||
|
realNames[key].push({ 'name': methodName, 'func': lodashFunc });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user