lodash.keys
Advanced tools
Comparing version 3.0.0 to 3.0.1
53
index.js
/** | ||
* lodash 3.0.0 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
@@ -11,4 +11,3 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
isArray = require('lodash.isarray'), | ||
isNative = require('lodash.isnative'), | ||
support = require('lodash.support'); | ||
isNative = require('lodash.isnative'); | ||
@@ -18,5 +17,11 @@ /** Used for native method references. */ | ||
/** Used to detect DOM support. */ | ||
var document = (document = global.window) && document.document; | ||
/** Used to check objects for own properties. */ | ||
var hasOwnProperty = objectProto.hasOwnProperty; | ||
/** Native method references. */ | ||
var propertyIsEnumerable = objectProto.propertyIsEnumerable; | ||
/* Native method references for those with the same name as other `lodash` methods. */ | ||
@@ -33,2 +38,44 @@ var nativeKeys = isNative(nativeKeys = Object.keys) && nativeKeys; | ||
/** | ||
* An object environment feature flags. | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @type Object | ||
*/ | ||
var support = {}; | ||
(function(x) { | ||
/** | ||
* Detect if the DOM is supported. | ||
* | ||
* @memberOf _.support | ||
* @type boolean | ||
*/ | ||
try { | ||
support.dom = document.createDocumentFragment().nodeType === 11; | ||
} catch(e) { | ||
support.dom = false; | ||
} | ||
/** | ||
* Detect if `arguments` object indexes are non-enumerable. | ||
* | ||
* In Firefox < 4, IE < 9, PhantomJS, and Safari < 5.1 `arguments` object | ||
* indexes are non-enumerable. Chrome < 25 and Node.js < 0.11.0 treat | ||
* `arguments` object indexes as non-enumerable and fail `hasOwnProperty` | ||
* checks for indexes that exceed their function's formal parameters with | ||
* associated values of `0`. | ||
* | ||
* @memberOf _.support | ||
* @type boolean | ||
*/ | ||
try { | ||
support.nonEnumArgs = !propertyIsEnumerable.call(arguments, 1); | ||
} catch(e) { | ||
support.nonEnumArgs = true; | ||
} | ||
}(0, 0)); | ||
/** | ||
* Checks if `value` is a valid array-like index. | ||
@@ -35,0 +82,0 @@ * |
{ | ||
"name": "lodash.keys", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "The modern build of lodash’s `_.keys` as a module.", | ||
@@ -22,5 +22,4 @@ "homepage": "https://lodash.com/", | ||
"lodash.isarray": "^3.0.0", | ||
"lodash.isnative": "^3.0.0", | ||
"lodash.support": "^3.0.0" | ||
"lodash.isnative": "^3.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.keys v3.0.0 | ||
# lodash.keys v3.0.1 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.keys` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.keys) for more details. | ||
See the [documentation](https://lodash.com/docs#keys) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.keys) 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
9570
3
227
0
- Removedlodash.support@^3.0.0
- Removedlodash.support@3.0.4(transitive)