lodash._baseisequal
Advanced tools
Comparing version 4.0.3 to 4.1.0
48
index.js
/** | ||
* lodash 4.0.3 (Custom Build) <https://lodash.com/> | ||
* lodash 4.1.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -10,3 +10,4 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
var Stack = require('lodash._stack'), | ||
keys = require('lodash.keys'); | ||
keys = require('lodash.keys'), | ||
root = require('lodash._root'); | ||
@@ -69,35 +70,3 @@ /** Used to compose bitmasks for comparison styles. */ | ||
/** Used to determine if values are of the language type `Object`. */ | ||
var objectTypes = { | ||
'function': true, | ||
'object': true | ||
}; | ||
/** Detect free variable `exports`. */ | ||
var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null; | ||
/** Detect free variable `module`. */ | ||
var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null; | ||
/** Detect free variable `global` from Node.js. */ | ||
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global); | ||
/** Detect free variable `self`. */ | ||
var freeSelf = checkGlobal(objectTypes[typeof self] && self); | ||
/** Detect free variable `window`. */ | ||
var freeWindow = checkGlobal(objectTypes[typeof window] && window); | ||
/** Detect `this` as the global object. */ | ||
var thisGlobal = checkGlobal(objectTypes[typeof this] && this); | ||
/** | ||
* Used as a reference to the global object. | ||
* | ||
* The `this` value is used if it's the global object to avoid Greasemonkey's | ||
* restricted `window` object, otherwise the `window` object is used. | ||
*/ | ||
var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')(); | ||
/** | ||
* A specialized version of `_.some` for arrays without support for iteratee | ||
@@ -124,13 +93,2 @@ * shorthands. | ||
/** | ||
* Checks if `value` is a global object. | ||
* | ||
* @private | ||
* @param {*} value The value to check. | ||
* @returns {null|Object} Returns `value` if it's a global object, else `null`. | ||
*/ | ||
function checkGlobal(value) { | ||
return (value && value.Object === Object) ? value : null; | ||
} | ||
/** | ||
* Checks if `value` is a host object in IE < 9. | ||
@@ -137,0 +95,0 @@ * |
{ | ||
"name": "lodash._baseisequal", | ||
"version": "4.0.3", | ||
"version": "4.1.0", | ||
"description": "The internal lodash function `baseIsEqual` exported as a module.", | ||
@@ -17,2 +17,3 @@ "homepage": "https://lodash.com/", | ||
"dependencies": { | ||
"lodash._root": "^3.0.0", | ||
"lodash._stack": "^4.0.0", | ||
@@ -19,0 +20,0 @@ "lodash.keys": "^4.0.0" |
@@ -1,2 +0,2 @@ | ||
# lodash._baseisequal v4.0.3 | ||
# lodash._baseisequal v4.1.0 | ||
@@ -18,2 +18,2 @@ The internal [lodash](https://lodash.com/) function `baseIsEqual` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.0.3-npm-packages/lodash._baseisequal) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.1.0-npm-packages/lodash._baseisequal) 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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
0
24065
3
645
+ Addedlodash._root@^3.0.0
+ Addedlodash._root@3.0.1(transitive)