Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash.mergewith

Package Overview
Dependencies
Maintainers
3
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.mergewith - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

25

index.js
/**
* lodash 4.0.2 (Custom Build) <https://lodash.com/>
* lodash 4.0.3 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`

@@ -440,3 +440,3 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>

srcValue = source[key],
stacked = stack.get(srcValue) || stack.get(objValue);
stacked = stack.get(srcValue);

@@ -460,2 +460,3 @@ if (stacked) {

else {
isCommon = false;
newValue = baseClone(srcValue);

@@ -469,2 +470,3 @@ }

else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) {
isCommon = false;
newValue = baseClone(srcValue);

@@ -776,2 +778,5 @@ }

function initCloneObject(object) {
if (isPrototype(object)) {
return {};
}
var Ctor = object.constructor;

@@ -849,2 +854,16 @@ return baseCreate(isFunction(Ctor) ? Ctor.prototype : undefined);

/**
* Checks if `value` is likely a prototype object.
*
* @private
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
*/
function isPrototype(value) {
var Ctor = value && value.constructor,
proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;
return value === proto;
}
/**
* Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero)

@@ -1064,4 +1083,2 @@ * comparison between two values to determine if they are equivalent.

function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;

@@ -1068,0 +1085,0 @@ return !!value && (type == 'object' || type == 'function');

4

package.json
{
"name": "lodash.mergewith",
"version": "4.0.2",
"version": "4.0.3",
"description": "The lodash method `_.mergeWith` exported as a module.",

@@ -8,3 +8,3 @@ "homepage": "https://lodash.com/",

"license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util, mergewith",
"keywords": "lodash-modularized, mergewith",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",

@@ -11,0 +11,0 @@ "contributors": [

@@ -1,2 +0,2 @@

# lodash.mergewith v4.0.2
# lodash.mergewith v4.0.3

@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.mergeWith` exported as a [Node.js](https://nodejs.org/) module.

See the [documentation](https://lodash.com/docs#mergeWith) or [package source](https://github.com/lodash/lodash/blob/4.0.2-npm-packages/lodash.mergewith) for more details.
See the [documentation](https://lodash.com/docs#mergeWith) or [package source](https://github.com/lodash/lodash/blob/4.0.3-npm-packages/lodash.mergewith) for more details.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc