Skip to content

Commit

Permalink
Rebuild lodash and docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
jdalton committed Sep 12, 2018
1 parent eaa9f36 commit 3ac4b26
Show file tree
Hide file tree
Showing 12 changed files with 491 additions and 514 deletions.
2 changes: 1 addition & 1 deletion dist/lodash.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
var undefined;

/** Used as the semantic version number. */
var VERSION = '4.17.10';
var VERSION = '4.17.11';

/** Error message constants. */
var FUNC_ERROR_TEXT = 'Expected a function';
Expand Down
2 changes: 1 addition & 1 deletion dist/lodash.core.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 10 additions & 24 deletions dist/lodash.fp.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,7 @@ return /******/ (function(modules) { // webpackBootstrap
* @returns {Function|Object} Returns the converted function or object.
*/
function baseConvert(util, name, func, options) {
var setPlaceholder,
isLib = typeof name == 'function',
var isLib = typeof name == 'function',
isObj = name === Object(name);

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

var forceCurry = ('curry' in options) && options.curry,
var defaultHolder = isLib ? func : fallbackHolder,
forceCurry = ('curry' in options) && options.curry,
forceFixed = ('fixed' in options) && options.fixed,
forceRearg = ('rearg' in options) && options.rearg,
placeholder = isLib ? func : fallbackHolder,
pristine = isLib ? func.runInContext() : undefined;

var helpers = isLib ? func : {
Expand Down Expand Up @@ -546,7 +545,7 @@ return /******/ (function(modules) { // webpackBootstrap
* @param {Function} func The function to wrap.
* @returns {Function} Returns the converted function.
*/
function wrap(name, func) {
function wrap(name, func, placeholder) {
var result,
realName = mapping.aliasToReal[name] || name,
wrapped = func,
Expand Down Expand Up @@ -591,17 +590,15 @@ return /******/ (function(modules) { // webpackBootstrap
};
}
result.convert = createConverter(realName, func);
if (mapping.placeholder[realName]) {
setPlaceholder = true;
result.placeholder = func.placeholder = placeholder;
}
result.placeholder = func.placeholder = placeholder;

return result;
}

/*--------------------------------------------------------------------------*/

if (!isObj) {
return wrap(name, func);
return wrap(name, func, defaultHolder);
}
var _ = func;

Expand All @@ -611,7 +608,7 @@ return /******/ (function(modules) { // webpackBootstrap
each(mapping.aryMethod[aryKey], function(key) {
var func = _[mapping.remap[key] || key];
if (func) {
pairs.push([key, wrap(key, func)]);
pairs.push([key, wrap(key, func, _)]);
}
});
});
Expand All @@ -637,9 +634,8 @@ return /******/ (function(modules) { // webpackBootstrap
});

_.convert = convertLib;
if (setPlaceholder) {
_.placeholder = placeholder;
}
_.placeholder = _;

// Assign aliases.
each(keys(_), function(key) {
each(mapping.realToAlias[key] || [], function(alias) {
Expand Down Expand Up @@ -920,16 +916,6 @@ return /******/ (function(modules) { // webpackBootstrap
}
};

/** Used to track methods with placeholder support */
exports.placeholder = {
'bind': true,
'bindKey': true,
'curry': true,
'curryRight': true,
'partial': true,
'partialRight': true
};

/** Used to map real names to their aliases. */
exports.realToAlias = (function() {
var hasOwnProperty = Object.prototype.hasOwnProperty,
Expand Down
Loading

0 comments on commit 3ac4b26

Please sign in to comment.