diff options
Diffstat (limited to 'node_modules/isobject')
-rw-r--r-- | node_modules/isobject/LICENSE | 4 | ||||
-rw-r--r-- | node_modules/isobject/README.md | 68 | ||||
-rw-r--r-- | node_modules/isobject/index.d.ts | 5 | ||||
-rw-r--r-- | node_modules/isobject/index.js | 8 | ||||
-rw-r--r-- | node_modules/isobject/package.json | 19 |
5 files changed, 62 insertions, 42 deletions
diff --git a/node_modules/isobject/LICENSE b/node_modules/isobject/LICENSE index 39245ac1c..943e71d05 100644 --- a/node_modules/isobject/LICENSE +++ b/node_modules/isobject/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2014-2016, Jon Schlinkert. +Copyright (c) 2014-2017, Jon Schlinkert. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +THE SOFTWARE.
\ No newline at end of file diff --git a/node_modules/isobject/README.md b/node_modules/isobject/README.md index 9dd897aa0..d01feaa40 100644 --- a/node_modules/isobject/README.md +++ b/node_modules/isobject/README.md @@ -1,13 +1,19 @@ -# isobject [](https://www.npmjs.com/package/isobject) [](https://npmjs.org/package/isobject) [](https://travis-ci.org/jonschlinkert/isobject) +# isobject [](https://www.npmjs.com/package/isobject) [](https://npmjs.org/package/isobject) [](https://npmjs.org/package/isobject) [](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. ## Install Install with [npm](https://www.npmjs.com/): ```sh -$ npm install isobject --save +$ npm install --save isobject +``` + +Install with [yarn](https://yarnpkg.com): + +```sh +$ yarn add isobject ``` Use [is-plain-object](https://github.com/jonschlinkert/is-plain-object) if you want only objects that are created by the `Object` constructor. @@ -19,8 +25,7 @@ Install with [npm](https://www.npmjs.com/): ```sh $ npm install isobject ``` - -Install with [bower](http://bower.io/) +Install with [bower](https://bower.io/) ```sh $ bower install isobject @@ -59,54 +64,59 @@ isObject(undefined); isObject(null); ``` -## 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) | +| 4 | [doowb](https://github.com/doowb) | +| 1 | [magnudae](https://github.com/magnudae) | +| 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 project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_ -Or, if [verb](https://github.com/verbose/verb) is installed globally: +To generate the readme, run the following command: ```sh -$ verb +$ npm install -g verbose/verb#dev verb-generate-readme && verb ``` -## Running tests +### Running tests -Install dev dependencies: +Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command: ```sh -$ npm install -d && npm test +$ npm install && npm test ``` -## Author +### Author **Jon Schlinkert** * [github/jonschlinkert](https://github.com/jonschlinkert) -* [twitter/jonschlinkert](http://twitter.com/jonschlinkert) +* [twitter/jonschlinkert](https://twitter.com/jonschlinkert) -## License +### License -Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert). -Released under the [MIT license](https://github.com/jonschlinkert/isobject/blob/master/LICENSE). +Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert). +Released under the [MIT License](LICENSE). *** -_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 25, 2016._
\ No newline at end of file +_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on June 30, 2017._
\ No newline at end of file diff --git a/node_modules/isobject/index.d.ts b/node_modules/isobject/index.d.ts new file mode 100644 index 000000000..55f81c275 --- /dev/null +++ b/node_modules/isobject/index.d.ts @@ -0,0 +1,5 @@ +export = isObject; + +declare function isObject(val: any): boolean; + +declare namespace isObject {} diff --git a/node_modules/isobject/index.js b/node_modules/isobject/index.js index aa0dce0bb..2d59958bf 100644 --- a/node_modules/isobject/index.js +++ b/node_modules/isobject/index.js @@ -1,14 +1,12 @@ /*! * isobject <https://github.com/jonschlinkert/isobject> * - * Copyright (c) 2014-2015, Jon Schlinkert. - * Licensed under the MIT License. + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. */ 'use strict'; -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; }; diff --git a/node_modules/isobject/package.json b/node_modules/isobject/package.json index 954f4113f..62aa8c1b2 100644 --- a/node_modules/isobject/package.json +++ b/node_modules/isobject/package.json @@ -1,15 +1,23 @@ { "name": "isobject", "description": "Returns true if the value is an object and not an array or null.", - "version": "2.1.0", + "version": "3.0.1", "homepage": "https://github.com/jonschlinkert/isobject", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "(https://github.com/LeSuisse)", + "Brian Woodward (https://twitter.com/doowb)", + "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Magnús Dæhlen (https://github.com/magnudae)", + "Tom MacWright (https://macwright.org)" + ], "repository": "jonschlinkert/isobject", "bugs": { "url": "https://github.com/jonschlinkert/isobject/issues" }, "license": "MIT", "files": [ + "index.d.ts", "index.js" ], "main": "index.js", @@ -19,9 +27,7 @@ "scripts": { "test": "mocha" }, - "dependencies": { - "isarray": "1.0.0" - }, + "dependencies": {}, "devDependencies": { "gulp-format-md": "^0.1.9", "mocha": "^2.4.5" @@ -40,13 +46,14 @@ "typeof", "value" ], + "types": "index.d.ts", "verb": { "related": { "list": [ - "merge-deep", "extend-shallow", "is-plain-object", - "kind-of" + "kind-of", + "merge-deep" ] }, "toc": false, |