diff options
Diffstat (limited to 'node_modules/is-data-descriptor')
-rw-r--r-- | node_modules/is-data-descriptor/LICENSE | 2 | ||||
-rw-r--r-- | node_modules/is-data-descriptor/README.md | 67 | ||||
-rw-r--r-- | node_modules/is-data-descriptor/index.js | 26 | ||||
-rw-r--r-- | node_modules/is-data-descriptor/package.json | 26 |
4 files changed, 80 insertions, 41 deletions
diff --git a/node_modules/is-data-descriptor/LICENSE b/node_modules/is-data-descriptor/LICENSE index 65f90aca8..e33d14b75 100644 --- a/node_modules/is-data-descriptor/LICENSE +++ b/node_modules/is-data-descriptor/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015, Jon Schlinkert. +Copyright (c) 2015-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 diff --git a/node_modules/is-data-descriptor/README.md b/node_modules/is-data-descriptor/README.md index 41e1643f1..42b071446 100644 --- a/node_modules/is-data-descriptor/README.md +++ b/node_modules/is-data-descriptor/README.md @@ -1,13 +1,15 @@ -# is-data-descriptor [](https://www.npmjs.com/package/is-data-descriptor) [](https://travis-ci.org/jonschlinkert/is-data-descriptor) +# is-data-descriptor [](https://www.npmjs.com/package/is-data-descriptor) [](https://npmjs.org/package/is-data-descriptor) [](https://npmjs.org/package/is-data-descriptor) [](https://travis-ci.org/jonschlinkert/is-data-descriptor) > Returns true if a value has the characteristics of a valid JavaScript data descriptor. +Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support. + ## Install Install with [npm](https://www.npmjs.com/): ```sh -$ npm i is-data-descriptor --save +$ npm install --save is-data-descriptor ``` ## Usage @@ -93,36 +95,67 @@ console.log(foo.bar); //=> 'baz' ``` -## Related projects +## About + +<details> +<summary><strong>Contributing</strong></summary> + +Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). + +</details> + +<details> +<summary><strong>Running Tests</strong></summary> + +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 && npm test +``` + +</details> -* [is-accessor-descriptor](https://www.npmjs.com/package/is-accessor-descriptor): Returns true if a value has the characteristics of a valid JavaScript accessor descriptor. | [homepage](https://github.com/jonschlinkert/is-accessor-descriptor) -* [is-descriptor](https://www.npmjs.com/package/is-descriptor): Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… [more](https://www.npmjs.com/package/is-descriptor) | [homepage](https://github.com/jonschlinkert/is-descriptor) -* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject) +<details> +<summary><strong>Building docs</strong></summary> -## Running tests +_(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.)_ -Install dev dependencies: +To generate the readme, run the following command: ```sh -$ npm i -d && npm test +$ npm install -g verbose/verb#dev verb-generate-readme && verb ``` -## Contributing +</details> + +### Related projects + +You might also be interested in these projects: + +* [is-accessor-descriptor](https://www.npmjs.com/package/is-accessor-descriptor): Returns true if a value has the characteristics of a valid JavaScript accessor descriptor. | [homepage](https://github.com/jonschlinkert/is-accessor-descriptor "Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.") +* [is-data-descriptor](https://www.npmjs.com/package/is-data-descriptor): Returns true if a value has the characteristics of a valid JavaScript data descriptor. | [homepage](https://github.com/jonschlinkert/is-data-descriptor "Returns true if a value has the characteristics of a valid JavaScript data descriptor.") +* [is-descriptor](https://www.npmjs.com/package/is-descriptor): Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… [more](https://github.com/jonschlinkert/is-descriptor) | [homepage](https://github.com/jonschlinkert/is-descriptor "Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for data descriptors and accessor descriptors.") +* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.") + +### Contributors -Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-data-descriptor/issues/new). +| **Commits** | **Contributor** | +| --- | --- | +| 21 | [jonschlinkert](https://github.com/jonschlinkert) | +| 2 | [realityking](https://github.com/realityking) | -## 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 © 2015 [Jon Schlinkert](https://github.com/jonschlinkert) -Released under the MIT 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) on December 28, 2015._
\ 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 November 01, 2017._
\ No newline at end of file diff --git a/node_modules/is-data-descriptor/index.js b/node_modules/is-data-descriptor/index.js index d4d09c92a..cfeae3619 100644 --- a/node_modules/is-data-descriptor/index.js +++ b/node_modules/is-data-descriptor/index.js @@ -1,22 +1,22 @@ /*! * is-data-descriptor <https://github.com/jonschlinkert/is-data-descriptor> * - * Copyright (c) 2015, Jon Schlinkert. - * Licensed under the MIT License. + * Copyright (c) 2015-2017, Jon Schlinkert. + * Released under the MIT License. */ 'use strict'; var typeOf = require('kind-of'); -// data descriptor properties -var data = { - configurable: 'boolean', - enumerable: 'boolean', - writable: 'boolean' -}; +module.exports = function isDataDescriptor(obj, prop) { + // data descriptor properties + var data = { + configurable: 'boolean', + enumerable: 'boolean', + writable: 'boolean' + }; -function isDataDescriptor(obj, prop) { if (typeOf(obj) !== 'object') { return false; } @@ -46,10 +46,4 @@ function isDataDescriptor(obj, prop) { } } return true; -} - -/** - * Expose `isDataDescriptor` - */ - -module.exports = isDataDescriptor; +}; diff --git a/node_modules/is-data-descriptor/package.json b/node_modules/is-data-descriptor/package.json index 5fb294b7e..0b0938384 100644 --- a/node_modules/is-data-descriptor/package.json +++ b/node_modules/is-data-descriptor/package.json @@ -1,9 +1,13 @@ { "name": "is-data-descriptor", "description": "Returns true if a value has the characteristics of a valid JavaScript data descriptor.", - "version": "0.1.4", + "version": "1.0.0", "homepage": "https://github.com/jonschlinkert/is-data-descriptor", "author": "Jon Schlinkert (https://github.com/jonschlinkert)", + "contributors": [ + "Jon Schlinkert (http://twitter.com/jonschlinkert)", + "Rouven Weßling (www.rouvenwessling.de)" + ], "repository": "jonschlinkert/is-data-descriptor", "bugs": { "url": "https://github.com/jonschlinkert/is-data-descriptor/issues" @@ -20,11 +24,11 @@ "test": "mocha" }, "dependencies": { - "kind-of": "^3.0.2" + "kind-of": "^6.0.0" }, "devDependencies": { - "mocha": "*", - "should": "*" + "gulp-format-md": "^1.0.0", + "mocha": "^3.5.3" }, "keywords": [ "accessor", @@ -45,6 +49,14 @@ "value" ], "verb": { + "toc": false, + "layout": "default", + "tasks": [ + "readme" + ], + "plugins": [ + "gulp-format-md" + ], "related": { "list": [ "is-accessor-descriptor", @@ -53,8 +65,8 @@ "isobject" ] }, - "plugins": [ - "gulp-format-md" - ] + "lint": { + "reflinks": true + } } } |