Comparing version 4.2.0 to 4.2.1
@@ -47,3 +47,5 @@ var createWrapper = require('./_createWrapper'), | ||
if (partials.length) { | ||
var holders = replaceHolders(partials, bind.placeholder); | ||
var placeholder = bind.placeholder, | ||
holders = replaceHolders(partials, placeholder); | ||
bitmask |= PARTIAL_FLAG; | ||
@@ -50,0 +52,0 @@ } |
@@ -57,3 +57,5 @@ var createWrapper = require('./_createWrapper'), | ||
if (partials.length) { | ||
var holders = replaceHolders(partials, bindKey.placeholder); | ||
var placeholder = bindKey.placeholder, | ||
holders = replaceHolders(partials, placeholder); | ||
bitmask |= PARTIAL_FLAG; | ||
@@ -60,0 +62,0 @@ } |
@@ -22,3 +22,3 @@ var isObject = require('./isObject'), | ||
* **Note:** If `leading` and `trailing` options are `true`, `func` is invoked | ||
* on the trailing edge of the timeout only if the the debounced function is | ||
* on the trailing edge of the timeout only if the debounced function is | ||
* invoked more than once during the `wait` timeout. | ||
@@ -25,0 +25,0 @@ * |
@@ -33,3 +33,3 @@ var mapping = require('./_mapping'), | ||
'rearg': util.rearg, | ||
'rest': util.rest | ||
'spread': util.spread | ||
}; | ||
@@ -160,10 +160,11 @@ | ||
} | ||
var wrapped = func; | ||
if (mutateMap.array[name]) { | ||
func = immutWrap(func, cloneArray); | ||
wrapped = immutWrap(func, cloneArray); | ||
} | ||
else if (mutateMap.object[name]) { | ||
func = immutWrap(func, createCloner(func)); | ||
wrapped = immutWrap(func, createCloner(func)); | ||
} | ||
else if (mutateMap.set[name]) { | ||
func = immutWrap(func, cloneDeep); | ||
wrapped = immutWrap(func, cloneDeep); | ||
} | ||
@@ -179,4 +180,4 @@ var result; | ||
result = spreadStart === undefined | ||
? ary(func, cap) | ||
: spread(func, spreadStart); | ||
? ary(wrapped, cap) | ||
: spread(wrapped, spreadStart); | ||
@@ -202,3 +203,3 @@ if (cap > 1 && !mapping.skipRearg[name]) { | ||
if (mapping.placeholder[name]) { | ||
result.placeholder = placeholder; | ||
func.placeholder = result.placeholder = placeholder; | ||
} | ||
@@ -211,4 +212,4 @@ return result; | ||
} | ||
// Add placeholder alias. | ||
_.__ = placeholder; | ||
// Add placeholder. | ||
_.placeholder = placeholder; | ||
@@ -215,0 +216,0 @@ // Iterate over methods for the current ary cap. |
/** Used to map aliases to their real names. */ | ||
exports.aliasToReal = { | ||
'__': 'placeholder', | ||
'all': 'some', | ||
@@ -63,5 +64,5 @@ 'allPass': 'overEvery', | ||
'split', 'startsWith', 'subtract', 'sumBy', 'take', 'takeRight', 'takeRightWhile', | ||
'takeWhile', 'tap', 'throttle', 'thru', 'times', 'truncate', 'union', 'uniqBy', | ||
'uniqWith', 'unset', 'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject', | ||
'zipObjectDeep' | ||
'takeWhile', 'tap', 'throttle', 'thru', 'times', 'trimChars', 'trimCharsEnd', | ||
'trimCharsStart', 'truncate', 'union', 'uniqBy', 'uniqWith', 'unset', | ||
'unzipWith', 'without', 'wrap', 'xor', 'zip', 'zipObject', 'zipObjectDeep' | ||
], | ||
@@ -216,3 +217,6 @@ 3: [ | ||
'curryRightN': 'curryRight', | ||
'getOr': 'get' | ||
'getOr': 'get', | ||
'trimChars': 'trim', | ||
'trimCharsEnd': 'trimEnd', | ||
'trimCharsStart': 'trimStart' | ||
}; | ||
@@ -222,2 +226,3 @@ | ||
exports.skipRearg = { | ||
'add': true, | ||
'assign': true, | ||
@@ -234,4 +239,5 @@ 'assignIn': true, | ||
'rangeRight': true, | ||
'subtract': true, | ||
'zip': true, | ||
'zipObject': true | ||
}; |
{ | ||
"name": "lodash", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "Lodash modular utilities.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -41,3 +41,5 @@ var createWrapper = require('./_createWrapper'), | ||
var partial = rest(function(func, partials) { | ||
var holders = replaceHolders(partials, partial.placeholder); | ||
var placeholder = partial.placeholder, | ||
holders = replaceHolders(partials, placeholder); | ||
return createWrapper(func, PARTIAL_FLAG, undefined, partials, holders); | ||
@@ -44,0 +46,0 @@ }); |
@@ -40,3 +40,5 @@ var createWrapper = require('./_createWrapper'), | ||
var partialRight = rest(function(func, partials) { | ||
var holders = replaceHolders(partials, partialRight.placeholder); | ||
var placeholder = partialRight.placeholder, | ||
holders = replaceHolders(partials, placeholder); | ||
return createWrapper(func, PARTIAL_RIGHT_FLAG, undefined, partials, holders); | ||
@@ -43,0 +45,0 @@ }); |
@@ -6,3 +6,3 @@ var baseIteratee = require('./_baseIteratee'), | ||
* This method is like `_.pullAll` except that it accepts `iteratee` which is | ||
* invoked for each element of `array` and `values` to to generate the criterion | ||
* invoked for each element of `array` and `values` to generate the criterion | ||
* by which uniqueness is computed. The iteratee is invoked with one argument: (value). | ||
@@ -9,0 +9,0 @@ * |
@@ -1,2 +0,2 @@ | ||
# lodash v4.2.0 | ||
# lodash v4.2.1 | ||
@@ -31,3 +31,3 @@ The [lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules. | ||
See the [package source](https://github.com/lodash/lodash/tree/4.2.0-npm) for more details. | ||
See the [package source](https://github.com/lodash/lodash/tree/4.2.1-npm) for more details. | ||
@@ -34,0 +34,0 @@ **Note:**<br> |
@@ -18,3 +18,3 @@ var debounce = require('./debounce'), | ||
* **Note:** If `leading` and `trailing` options are `true`, `func` is invoked | ||
* on the trailing edge of the timeout only if the the throttled function is | ||
* on the trailing edge of the timeout only if the throttled function is | ||
* invoked more than once during the `wait` timeout. | ||
@@ -21,0 +21,0 @@ * |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1104610
866
33629