Socket
Socket
Sign inDemoInstall

lodash.keys

Package Overview
Dependencies
Maintainers
5
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.keys - npm Package Compare versions

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 @@ *

5

package.json
{
"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.
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