Comparing version 6.0.0 to 6.0.1
15
index.js
@@ -16,8 +16,3 @@ var toString = Object.prototype.toString; | ||
if (Array.isArray) { | ||
if (Array.isArray(val)) return 'array'; | ||
} else if (val instanceof Array) { | ||
return 'array'; | ||
} | ||
if (isArray(val)) return 'array'; | ||
if (isBuffer(val)) return 'buffer'; | ||
@@ -78,5 +73,9 @@ if (isArguments(val)) return 'arguments'; | ||
function isArray(val) { | ||
if (Array.isArray) return Array.isArray(val); | ||
return val instanceof Array; | ||
} | ||
function isError(val) { | ||
return typeof val.message === 'string' && val.constructor | ||
&& typeof val.constructor.stackTraceLimit === 'number'; | ||
return val instanceof Error || (typeof val.message === 'string' && val.constructor && typeof val.constructor.stackTraceLimit === 'number'); | ||
} | ||
@@ -83,0 +82,0 @@ |
{ | ||
"name": "kind-of", | ||
"description": "Get the native type of a value.", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"homepage": "https://github.com/jonschlinkert/kind-of", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -337,3 +337,3 @@ # kind-of [![NPM version](https://img.shields.io/npm/v/kind-of.svg?style=flat)](https://www.npmjs.com/package/kind-of) [![NPM monthly downloads](https://img.shields.io/npm/dm/kind-of.svg?style=flat)](https://npmjs.org/package/kind-of) [![NPM total downloads](https://img.shields.io/npm/dt/kind-of.svg?style=flat)](https://npmjs.org/package/kind-of) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/kind-of.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/kind-of) | ||
| --- | --- | | ||
| 84 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 94 | [jonschlinkert](https://github.com/jonschlinkert) | | ||
| 3 | [aretecode](https://github.com/aretecode) | | ||
@@ -345,3 +345,3 @@ | 2 | [miguelmota](https://github.com/miguelmota) | | ||
| 1 | [laggingreflex](https://github.com/laggingreflex) | | ||
| 1 | [charlike](https://github.com/charlike) | | ||
| 1 | [charlike-old](https://github.com/charlike-old) | | ||
@@ -362,2 +362,2 @@ ### Author | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on October 13, 2017._ | ||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on November 18, 2017._ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
22333
0
108