Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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 2.0.0 to 2.0.1

9

index.js

@@ -0,1 +1,2 @@

var isBuffer = require('is-buffer');
var toString = Object.prototype.toString;

@@ -22,6 +23,6 @@

if (typeof val === 'string' || val instanceof String) {
return 'string'
return 'string';
}
if (typeof val === 'number' || val instanceof Number) {
return 'number'
return 'number';
}

@@ -31,3 +32,3 @@

if (typeof val === 'function' || val instanceof Function) {
return 'function'
return 'function';
}

@@ -62,3 +63,3 @@

// buffer
if (typeof Buffer !== 'undefined' && Buffer.isBuffer(val)) {
if (typeof Buffer !== 'undefined' && isBuffer(val)) {
return 'buffer';

@@ -65,0 +66,0 @@ }

{
"name": "kind-of",
"description": "Get the native type of a value.",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://github.com/jonschlinkert/kind-of",

@@ -20,3 +20,4 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"scripts": {
"test": "mocha"
"test": "mocha",
"prepublish": "browserify -o browser.js -e index.js -s index --bare"
},

@@ -53,3 +54,6 @@ "devDependencies": {

"types"
]
],
"dependencies": {
"is-buffer": "^1.0.2"
}
}
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