8000 Rebuild lodash and docs. · lodash/lodash@3ac4b26 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ac4b26

Browse files
committed
Rebuild lodash and docs.
1 parent eaa9f36 commit 3ac4b26

12 files changed

+491
-514
lines changed

dist/lodash.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
var undefined;
1414

1515
/** Used as the semantic version number. */
16-
var VERSION = '4.17.10';
16+
var VERSION = '4.17.11';
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.fp.js

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,7 @@ return /******/ (function(modules) { // webpackBootstrap
216216
* @returns {Function|Object} Returns the converted function or object.
217217
*/
218218
function baseConvert(util, name, func, options) {
219-
var setPlaceholder,
220-
isLib = typeof name == 'function',
219+
var isLib = typeof name == 'function',
221220
isObj = name === Object(name);
222221

223222
if (isObj) {
@@ -238,10 +237,10 @@ return /******/ (function(modules) { // webpackBootstrap
238237
'rearg': 'rearg' in options ? options.rearg : true
239238
};
240239

241-
var forceCurry = ('curry' in options) && options.curry,
240+
var defaultHolder = isLib ? func : fallbackHolder,
241+
forceCurry = ('curry' in options) && options.curry,
242242
forceFixed = ('fixed' in options) && options.fixed,
243243
forceRearg = ('rearg' in options) && options.rearg,
244-
placeholder = isLib ? func : fallbackHolder,
245244
pristine = isLib ? func.runInContext() : undefined;
246245

247246
var helpers = isLib ? func : {
@@ -546,7 +545,7 @@ return /******/ (function(modules) { // webpackBootstrap
546545
* @param {Function} func The function to wrap.
547546
* @returns {Function} Returns the converted function.
548547
*/
549-
function wrap(name, func) {
548+
function wrap(name, func, placeholder) {
550549
var result,
551550
realName = mapping.aliasToReal[name] || name,
552551
wrapped = func,
@@ -591,17 +590,15 @@ return /******/ (function(modules) { // webpackBootstrap
591590
};
592591
}
593592
result.convert = createConverter(realName, func);
594-
if (mapping.placeholder[realName]) {
595-
setPlaceholder = true;
596-
result.placeholder = func.placeholder = placeholder;
597-
}
593+
result.placeholder = func.placeholder = placeholder;
594+
598595
return result;
599596
}
600597

601598
/*--------------------------------------------------------------------------*/
602599

603600
if (!isObj) {
604-
return wrap(name, func);
601+
return wrap(name, func, defaultHolder);
605602
}
606603
var _ = func;
607604

@@ -611,7 +608,7 @@ return /******/ (function(modules) { // webpackBootstrap
611608
each(mapping.aryMethod[aryKey], function(key) {
612609
var func = _[mapping.remap[key] || key];
613610
if (func) {
614-
pairs.push([key, wrap(key, func)]);
611+
pairs.push([key, wrap(key, func, _)]);
615612
}
616613
});
617614
});
@@ -637,9 +634,8 @@ return /******/ (function(modules) { // webpackBootstrap
637634
});
638635

639636
_.convert = convertLib;
640-
if (setPlaceholder) {
641-
_.placeholder = placeholder;
642-
}
637+
_.placeholder = _;
638+
643639
// Assign aliases.
644640
each(keys(_), function(key) {
645641
each(mapping.realToAlias[key] || [], function(alias) {
@@ -920,16 +916,6 @@ return /******/ (function(modules) { // webpackBootstrap
920916
}
921917
};
922918

923-
/** Used to track methods with placeholder support */
924-
exports.placeholder = {
925-
'bind': true,
926-
'bindKey': true,
927-
'curry': true,
928-
'curryRight': true,
929-
'partial': true,
930-
'partialRight': true
931-
};
932-
933919
/** Used to map real names to their aliases. */
934920
exports.realToAlias = (function() {
935921
var hasOwnProperty = Object.prototype.hasOwnProperty,

0 commit comments

Comments
 (0)
0