Comparing version 4.6.0 to 4.6.1
@@ -69,2 +69,3 @@ import Stack from './_Stack'; | ||
* @param {boolean} [isDeep] Specify a deep clone. | ||
* @param {boolean} [isFull] Specify a clone including symbols. | ||
* @param {Function} [customizer] The function to customize cloning. | ||
@@ -76,3 +77,3 @@ * @param {string} [key] The key of `value`. | ||
*/ | ||
function baseClone(value, isDeep, customizer, key, object, stack) { | ||
function baseClone(value, isDeep, isFull, customizer, key, object, stack) { | ||
var result; | ||
@@ -107,3 +108,4 @@ if (customizer) { | ||
if (!isDeep) { | ||
return copySymbols(value, baseAssign(result, value)); | ||
result = baseAssign(result, value); | ||
return isFull ? copySymbols(value, result) : result; | ||
} | ||
@@ -127,7 +129,7 @@ } else { | ||
(isArr ? arrayEach : baseForOwn)(value, function(subValue, key) { | ||
assignValue(result, key, baseClone(subValue, isDeep, customizer, key, value, stack)); | ||
assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); | ||
}); | ||
return isArr ? result : copySymbols(value, result); | ||
return (isFull && !isArr) ? copySymbols(value, result) : result; | ||
} | ||
export default baseClone; |
@@ -14,4 +14,7 @@ import assignValue from './_assignValue'; | ||
/** Built-in value references. */ | ||
var propertyIsEnumerable = objectProto.propertyIsEnumerable; | ||
/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */ | ||
var nonEnumShadows = !({ 'valueOf': 1 }).propertyIsEnumerable('valueOf'); | ||
var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf'); | ||
@@ -18,0 +21,0 @@ /** |
@@ -8,4 +8,10 @@ import assignValue from './_assignValue'; | ||
/** Used for built-in method references. */ | ||
var objectProto = Object.prototype; | ||
/** Built-in value references. */ | ||
var propertyIsEnumerable = objectProto.propertyIsEnumerable; | ||
/** Detect if properties shadowing those on `Object.prototype` are non-enumerable. */ | ||
var nonEnumShadows = !({ 'valueOf': 1 }).propertyIsEnumerable('valueOf'); | ||
var nonEnumShadows = !propertyIsEnumerable.call({ 'valueOf': 1 }, 'valueOf'); | ||
@@ -12,0 +18,0 @@ /** |
@@ -28,5 +28,5 @@ import baseClone from './_baseClone'; | ||
function clone(value) { | ||
return baseClone(value); | ||
return baseClone(value, false, true); | ||
} | ||
export default clone; |
@@ -20,5 +20,5 @@ import baseClone from './_baseClone'; | ||
function cloneDeep(value) { | ||
return baseClone(value, true); | ||
return baseClone(value, true, true); | ||
} | ||
export default cloneDeep; |
@@ -30,5 +30,5 @@ import baseClone from './_baseClone'; | ||
function cloneDeepWith(value, customizer) { | ||
return baseClone(value, true, customizer); | ||
return baseClone(value, true, true, customizer); | ||
} | ||
export default cloneDeepWith; |
@@ -33,5 +33,5 @@ import baseClone from './_baseClone'; | ||
function cloneWith(value, customizer) { | ||
return baseClone(value, false, customizer); | ||
return baseClone(value, false, true, customizer); | ||
} | ||
export default cloneWith; |
/** | ||
* @license | ||
* lodash 4.6.0 (Custom Build) <https://lodash.com/> | ||
* lodash 4.6.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="es" -o ./` | ||
@@ -47,3 +47,3 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
/** Used as the semantic version number. */ | ||
var VERSION = '4.6.0'; | ||
var VERSION = '4.6.1'; | ||
@@ -50,0 +50,0 @@ /** Used to compose bitmasks for wrapper metadata. */ |
/** | ||
* @license | ||
* lodash 4.6.0 (Custom Build) <https://lodash.com/> | ||
* lodash 4.6.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="es" -o ./` | ||
@@ -5,0 +5,0 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> |
{ | ||
"name": "lodash-es", | ||
"version": "4.6.0", | ||
"version": "4.6.1", | ||
"description": "Lodash exported as ES modules.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/custom-builds", |
@@ -1,2 +0,2 @@ | ||
# lodash-es v4.6.0 | ||
# lodash-es v4.6.1 | ||
@@ -10,2 +10,2 @@ The [lodash](https://lodash.com/) library exported as [ES](http://www.ecma-international.org/ecma-262/6.0/) modules. | ||
See the [package source](https://github.com/lodash/lodash/tree/4.6.0-es) for more details. | ||
See the [package source](https://github.com/lodash/lodash/tree/4.6.1-es) for more details. |
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
551822
17247