is-descriptor
Advanced tools
Comparing version 0.1.4 to 0.1.5
/*! | ||
* is-descriptor <https://github.com/jonschlinkert/is-descriptor> | ||
* | ||
* Copyright (c) 2015, Jon Schlinkert. | ||
* Licensed under the MIT License. | ||
* Copyright (c) 2015, 2017, Jon Schlinkert. | ||
* Released under the MIT License. | ||
*/ | ||
@@ -7,0 +7,0 @@ |
{ | ||
"name": "is-descriptor", | ||
"description": "Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for data descriptors and accessor descriptors.", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"homepage": "https://github.com/jonschlinkert/is-descriptor", | ||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"contributors": [ | ||
"<wtgtybhertgeghgtwtg@gmail.com> (https://github.com/wtgtybhertgeghgtwtg)", | ||
"Brian Woodward <brian.woodward@gmail.com> (https://github.com/doowb)", | ||
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)" | ||
], | ||
"repository": "jonschlinkert/is-descriptor", | ||
@@ -27,5 +32,6 @@ "bugs": { | ||
"kind-of": "^3.0.2", | ||
"lazy-cache": "^1.0.3" | ||
"lazy-cache": "^2.0.2" | ||
}, | ||
"devDependencies": { | ||
"gulp-format-md": "^0.1.11", | ||
"mocha": "*" | ||
@@ -62,4 +68,12 @@ }, | ||
"gulp-format-md" | ||
] | ||
], | ||
"toc": false, | ||
"layout": "default", | ||
"tasks": [ | ||
"readme" | ||
], | ||
"lint": { | ||
"reflinks": true | ||
} | ||
} | ||
} |
105
README.md
@@ -1,2 +0,2 @@ | ||
# is-descriptor [![NPM version](https://img.shields.io/npm/v/is-descriptor.svg)](https://www.npmjs.com/package/is-descriptor) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-descriptor.svg)](https://travis-ci.org/jonschlinkert/is-descriptor) | ||
# is-descriptor [![NPM version](https://img.shields.io/npm/v/is-descriptor.svg?style=flat)](https://www.npmjs.com/package/is-descriptor) [![NPM monthly downloads](https://img.shields.io/npm/dm/is-descriptor.svg?style=flat)](https://npmjs.org/package/is-descriptor) [![NPM total downloads](https://img.shields.io/npm/dt/is-descriptor.svg?style=flat)](https://npmjs.org/package/is-descriptor) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/is-descriptor.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/is-descriptor) | ||
@@ -10,3 +10,3 @@ > Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for data descriptors and accessor descriptors. | ||
```sh | ||
$ npm i is-descriptor --save | ||
$ npm install --save is-descriptor | ||
``` | ||
@@ -50,7 +50,7 @@ | ||
```js | ||
isDescriptor('a')) | ||
isDescriptor('a'); | ||
//=> false | ||
isDescriptor(null)) | ||
isDescriptor(null); | ||
//=> false | ||
isDescriptor([])) | ||
isDescriptor([]); | ||
//=> false | ||
@@ -64,5 +64,5 @@ ``` | ||
```js | ||
isDescriptor({value: 'foo'})) | ||
isDescriptor({value: 'foo'}); | ||
//=> true | ||
isDescriptor({value: noop})) | ||
isDescriptor({value: noop}); | ||
//=> true | ||
@@ -74,9 +74,9 @@ ``` | ||
```js | ||
isDescriptor({value: 'foo', bar: 'baz'})) | ||
isDescriptor({value: 'foo', bar: 'baz'}); | ||
//=> false | ||
isDescriptor({value: 'foo', bar: 'baz'})) | ||
isDescriptor({value: 'foo', bar: 'baz'}); | ||
//=> false | ||
isDescriptor({value: 'foo', get: noop})) | ||
isDescriptor({value: 'foo', get: noop}); | ||
//=> false | ||
isDescriptor({get: noop, value: noop})) | ||
isDescriptor({get: noop, value: noop}); | ||
//=> false | ||
@@ -88,7 +88,7 @@ ``` | ||
```js | ||
isDescriptor({value: 'foo', enumerable: 'foo'})) | ||
isDescriptor({value: 'foo', enumerable: 'foo'}); | ||
//=> false | ||
isDescriptor({value: 'foo', configurable: 'foo'})) | ||
isDescriptor({value: 'foo', configurable: 'foo'}); | ||
//=> false | ||
isDescriptor({value: 'foo', writable: 'foo'})) | ||
isDescriptor({value: 'foo', writable: 'foo'}); | ||
//=> false | ||
@@ -102,7 +102,7 @@ ``` | ||
```js | ||
isDescriptor({get: noop, set: noop})) | ||
isDescriptor({get: noop, set: noop}); | ||
//=> true | ||
isDescriptor({get: noop})) | ||
isDescriptor({get: noop}); | ||
//=> true | ||
isDescriptor({set: noop})) | ||
isDescriptor({set: noop}); | ||
//=> true | ||
@@ -114,7 +114,7 @@ ``` | ||
```js | ||
isDescriptor({get: noop, set: noop, bar: 'baz'})) | ||
isDescriptor({get: noop, set: noop, bar: 'baz'}); | ||
//=> false | ||
isDescriptor({get: noop, writable: true})) | ||
isDescriptor({get: noop, writable: true}); | ||
//=> false | ||
isDescriptor({get: noop, value: true})) | ||
isDescriptor({get: noop, value: true}); | ||
//=> false | ||
@@ -126,9 +126,9 @@ ``` | ||
```js | ||
isDescriptor({get: noop, set: 'baz'})) | ||
isDescriptor({get: noop, set: 'baz'}); | ||
//=> false | ||
isDescriptor({get: 'foo', set: noop})) | ||
isDescriptor({get: 'foo', set: noop}); | ||
//=> false | ||
isDescriptor({get: 'foo', bar: 'baz'})) | ||
isDescriptor({get: 'foo', bar: 'baz'}); | ||
//=> false | ||
isDescriptor({get: 'foo', set: 'baz'})) | ||
isDescriptor({get: 'foo', set: 'baz'}); | ||
//=> false | ||
@@ -140,42 +140,63 @@ ``` | ||
```js | ||
isDescriptor({get: noop, set: noop, enumerable: 'foo'})) | ||
isDescriptor({get: noop, set: noop, enumerable: 'foo'}); | ||
//=> false | ||
isDescriptor({set: noop, configurable: 'foo'})) | ||
isDescriptor({set: noop, configurable: 'foo'}); | ||
//=> false | ||
isDescriptor({get: noop, configurable: 'foo'})) | ||
isDescriptor({get: noop, configurable: 'foo'}); | ||
//=> false | ||
``` | ||
## Related projects | ||
## About | ||
* [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-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) | ||
* [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) | ||
### Related projects | ||
## Running tests | ||
* [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.") | ||
Install dev dependencies: | ||
### Contributing | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new). | ||
### Contributors | ||
| **Commits** | **Contributor** | | ||
| --- | --- | | ||
| 20 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 1 | [doowb](https://github.com/doowb) | | ||
| 1 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) | | ||
### Building 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.)_ | ||
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 | ||
### Running tests | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-descriptor/issues/new). | ||
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: | ||
## Author | ||
```sh | ||
$ npm install && npm test | ||
``` | ||
### 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._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 25, 2017._ |
Sorry, the diff of this file is not supported yet
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
9413
193
2
+ Addedlazy-cache@2.0.2(transitive)
+ Addedset-getter@0.1.1(transitive)
+ Addedto-object-path@0.3.0(transitive)
- Removedlazy-cache@1.0.4(transitive)
Updatedlazy-cache@^2.0.2