lodash._baseset
Advanced tools
Comparing version 4.0.1 to 4.0.2
51
index.js
/** | ||
* lodash 4.0.1 (Custom Build) <https://lodash.com/> | ||
* lodash 4.0.2 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -28,3 +28,46 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
/** 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')(); | ||
/** | ||
* 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 valid array-like index. | ||
@@ -44,3 +87,3 @@ * | ||
/** Used for built-in method references. */ | ||
var objectProto = global.Object.prototype; | ||
var objectProto = Object.prototype; | ||
@@ -57,3 +100,3 @@ /** Used to check objects for own properties. */ | ||
/** Built-in value references. */ | ||
var Symbol = global.Symbol; | ||
var Symbol = root.Symbol; | ||
@@ -246,4 +289,2 @@ /** Used to convert symbols to primitives and strings. */ | ||
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; | ||
@@ -250,0 +291,0 @@ return !!value && (type == 'object' || type == 'function'); |
{ | ||
"name": "lodash._baseset", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "The internal lodash function `baseSet` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._baseset v4.0.1 | ||
# lodash._baseset v4.0.2 | ||
@@ -18,2 +18,2 @@ The internal [lodash](https://lodash.com/) function `baseSet` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.0.1-npm-packages/lodash._baseset) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.0.2-npm-packages/lodash._baseset) 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
12639
339