Comparing version 2.0.0 to 2.0.1
@@ -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" | ||
} | ||
} |
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
10077
74
1
+ Addedis-buffer@^1.0.2
+ Addedis-buffer@1.1.6(transitive)