Socket
Socket
Sign inDemoInstall

kind-of

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kind-of - npm Package Compare versions

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._
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc