Skip to content

Commit e77d681

Browse files
committed
Rebuild lodash and docs.
1 parent 629d186 commit e77d681

File tree

8 files changed

+468
-463
lines changed

8 files changed

+468
-463
lines changed

dist/lodash.core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @license
33
* Lodash (Custom Build) <https://lodash.com/>
44
* Build: `lodash core -o ./dist/lodash.core.js`
5-
* Copyright JS Foundation and other contributors <https://js.foundation/>
5+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
66
* Released under MIT license <https://lodash.com/license>
77
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
88
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
@@ -13,7 +13,7 @@
1313
var undefined;
1414

1515
/** Used as the semantic version number. */
16-
var VERSION = '4.17.11';
16+
var VERSION = '4.17.12';
1717

1818
/** Error message constants. */
1919
var FUNC_ERROR_TEXT = 'Expected a function';

dist/lodash.core.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/lodash.js

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @license
33
* Lodash <https://lodash.com/>
4-
* Copyright JS Foundation and other contributors <https://js.foundation/>
4+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
55
* Released under MIT license <https://lodash.com/license>
66
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
77
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
@@ -12,7 +12,7 @@
1212
var undefined;
1313

1414
/** Used as the semantic version number. */
15-
var VERSION = '4.17.11';
15+
var VERSION = '4.17.12';
1616

1717
/** Used as the size to enable large array optimizations. */
1818
var LARGE_ARRAY_SIZE = 200;
@@ -2671,16 +2671,10 @@
26712671
value.forEach(function(subValue) {
26722672
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
26732673
});
2674-
2675-
return result;
2676-
}
2677-
2678-
if (isMap(value)) {
2674+
} else if (isMap(value)) {
26792675
value.forEach(function(subValue, key) {
26802676
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
26812677
});
2682-
2683-
return result;
26842678
}
26852679

26862680
var keysFunc = isFull
@@ -3604,8 +3598,8 @@
36043598
return;
36053599
}
36063600
baseFor(source, function(srcValue, key) {
3601+
stack || (stack = new Stack);
36073602
if (isObject(srcValue)) {
3608-
stack || (stack = new Stack);
36093603
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
36103604
}
36113605
else {
@@ -5422,7 +5416,7 @@
54225416
return function(number, precision) {
54235417
number = toNumber(number);
54245418
precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);
5425-
if (precision) {
5419+
if (precision && nativeIsFinite(number)) {
54265420
// Shift with exponential notation to avoid floating-point issues.
54275421
// See [MDN](https://mdn.io/round#Examples) for more details.
54285422
var pair = (toString(number) + 'e').split('e'),
@@ -6605,14 +6599,18 @@
66056599
}
66066600

66076601
/**
6608-
* Gets the value at `key`, unless `key` is "__proto__".
6602+
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
66096603
*
66106604
* @private
66116605
* @param {Object} object The object to query.
66126606
* @param {string} key The key of the property to get.
66136607
* @returns {*} Returns the property value.
66146608
*/
66156609
function safeGet(object, key) {
6610+
if (key === 'constructor' && typeof object[key] === 'function') {
6611+
return;
6612+
}
6613+
66166614
if (key == '__proto__') {
66176615
return;
66186616
}
@@ -10413,6 +10411,7 @@
1041310411
}
1041410412
if (maxing) {
1041510413
// Handle invocations in a tight loop.
10414+
clearTimeout(timerId);
1041610415
timerId = setTimeout(timerExpired, wait);
1041710416
return invokeFunc(lastCallTime);
1041810417
}
@@ -14799,9 +14798,12 @@
1479914798
, 'g');
1480014799

1480114800
// Use a sourceURL for easier debugging.
14801+
// The sourceURL gets injected into the source that's eval-ed, so be careful
14802+
// with lookup (in case of e.g. prototype pollution), and strip newlines if any.
14803+
// A newline wouldn't be a valid sourceURL anyway, and it'd enable code injection.
1480214804
var sourceURL = '//# sourceURL=' +
14803-
('sourceURL' in options
14804-
? options.sourceURL
14805+
(hasOwnProperty.call(options, 'sourceURL')
14806+
? (options.sourceURL + '').replace(/[\r\n]/g, ' ')
1480514807
: ('lodash.templateSources[' + (++templateCounter) + ']')
1480614808
) + '\n';
1480714809

@@ -14834,7 +14836,9 @@
1483414836

1483514837
// If `variable` is not specified wrap a with-statement around the generated
1483614838
// code to add the data object to the top of the scope chain.
14837-
var variable = options.variable;
14839+
// Like with sourceURL, we take care to not check the option's prototype,
14840+
// as this configuration is a code injection vector.
14841+
var variable = hasOwnProperty.call(options, 'variable') && options.variable;
1483814842
if (!variable) {
1483914843
source = 'with (obj) {\n' + source + '\n}\n';
1484014844
}
@@ -17039,10 +17043,11 @@
1703917043
baseForOwn(LazyWrapper.prototype, function(func, methodName) {
1704017044
var lodashFunc = lodash[methodName];
1704117045
if (lodashFunc) {
17042-
var key = (lodashFunc.name + ''),
17043-
names = realNames[key] || (realNames[key] = []);
17044-
17045-
names.push({ 'name': methodName, 'func': lodashFunc });
17046+
var key = lodashFunc.name + '';
17047+
if (!hasOwnProperty.call(realNames, key)) {
17048+
realNames[key] = [];
17049+
}
17050+
realNames[key].push({ 'name': methodName, 'func': lodashFunc });
1704617051
}
1704717052
});
1704817053

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy