Comparing version 2.1.0 to 3.0.0
@@ -10,6 +10,4 @@ /*! | ||
var isArray = require('isarray'); | ||
module.exports = function isObject(val) { | ||
return val != null && typeof val === 'object' && isArray(val) === false; | ||
return val != null && typeof val === 'object' && Array.isArray(val) === false; | ||
}; |
{ | ||
"name": "isobject", | ||
"description": "Returns true if the value is an object and not an array or null.", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"homepage": "https://github.com/jonschlinkert/isobject", | ||
@@ -22,5 +22,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
}, | ||
"dependencies": { | ||
"isarray": "1.0.0" | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -47,6 +45,6 @@ "gulp-format-md": "^0.1.9", | ||
"list": [ | ||
"merge-deep", | ||
"extend-shallow", | ||
"is-plain-object", | ||
"kind-of" | ||
"kind-of", | ||
"merge-deep" | ||
] | ||
@@ -68,3 +66,8 @@ }, | ||
] | ||
} | ||
}, | ||
"contributors": [ | ||
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)", | ||
"(https://github.com/LeSuisse)", | ||
"Tom MacWright <tom@macwright.org> (http://macwright.org)" | ||
] | ||
} |
@@ -1,4 +0,4 @@ | ||
# isobject [![NPM version](https://img.shields.io/npm/v/isobject.svg?style=flat)](https://www.npmjs.com/package/isobject) [![NPM downloads](https://img.shields.io/npm/dm/isobject.svg?style=flat)](https://npmjs.org/package/isobject) [![Build Status](https://img.shields.io/travis/jonschlinkert/isobject.svg?style=flat)](https://travis-ci.org/jonschlinkert/isobject) | ||
# isobject [![NPM version](https://img.shields.io/npm/v/isobject.svg?style=flat)](https://www.npmjs.com/package/isobject) [![NPM downloads](https://img.shields.io/npm/dm/isobject.svg?style=flat)](https://npmjs.org/package/isobject) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/isobject.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/isobject) | ||
Returns true if the value is an object and not an array or null. | ||
> Returns true if the value is an object and not an array or null. | ||
@@ -10,3 +10,3 @@ ## Install | ||
```sh | ||
$ npm install isobject --save | ||
$ npm install --save isobject | ||
``` | ||
@@ -63,31 +63,34 @@ | ||
## Related projects | ||
## About | ||
You might also be interested in these projects: | ||
### Related projects | ||
[merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep) | ||
* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow "Extend an object with the properties of additional objects. node.js/javascript util.") | ||
* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object "Returns true if an object was created by the `Object` constructor.") | ||
* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.") | ||
* [merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep "Recursively merge values in a javascript object.") | ||
* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow) | ||
* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object) | ||
* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of) | ||
### Contributing | ||
## Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/isobject/issues/new). | ||
### Contributors | ||
## Building docs | ||
| **Commits** | **Contributor** | | ||
| --- | --- | | ||
| 29 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 1 | [LeSuisse](https://github.com/LeSuisse) | | ||
| 1 | [tmcw](https://github.com/tmcw) | | ||
Generate readme and API documentation with [verb](https://github.com/verbose/verb): | ||
### Building docs | ||
```sh | ||
$ npm install verb && npm run docs | ||
``` | ||
_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_ | ||
Or, if [verb](https://github.com/verbose/verb) is installed globally: | ||
To generate the readme and API documentation with [verb](https://github.com/verbose/verb): | ||
```sh | ||
$ verb | ||
$ npm install -g verb verb-generate-readme && verb | ||
``` | ||
## Running tests | ||
### Running tests | ||
@@ -100,3 +103,3 @@ Install dev dependencies: | ||
## Author | ||
### Author | ||
@@ -108,9 +111,9 @@ **Jon Schlinkert** | ||
## License | ||
### License | ||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). | ||
Released under the [MIT license](https://github.com/jonschlinkert/isobject/blob/master/LICENSE). | ||
Released under the [MIT license](LICENSE). | ||
*** | ||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 25, 2016._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 01, 2016._ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
6366
0
115
10
2
- Removedisarray@1.0.0
- Removedisarray@1.0.0(transitive)