has-binary2
Advanced tools
Comparing version 1.0.1 to 1.0.2
1.0.1 / 2017-05-05 | ||
1.0.2 / 2017-04-27 | ||
================== | ||
* fix(*): Fix Blob detection for iOS 8/9 | ||
1.0.1 / 2017-04-05 | ||
================== | ||
* chore(*): restrict files included in npm package | ||
1.0.0 / 2017-05-05 | ||
1.0.0 / 2017-04-05 | ||
================== | ||
@@ -9,0 +14,0 @@ |
@@ -9,2 +9,6 @@ /* global Blob File */ | ||
var toString = Object.prototype.toString; | ||
var withNativeBlob = typeof global.Blob === 'function' || toString.call(global.Blob) === '[object BlobConstructor]'; | ||
var withNativeFile = typeof global.File === 'function' || toString.call(global.File) === '[object FileConstructor]'; | ||
/** | ||
@@ -41,4 +45,4 @@ * Module exports. | ||
(typeof global.ArrayBuffer === 'function' && obj instanceof ArrayBuffer) || | ||
(typeof global.Blob === 'function' && obj instanceof Blob) || | ||
(typeof global.File === 'function' && obj instanceof File) | ||
(withNativeBlob && obj instanceof Blob) || | ||
(withNativeFile && obj instanceof File) | ||
) { | ||
@@ -45,0 +49,0 @@ return true; |
{ | ||
"name": "has-binary2", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "A function that takes anything in javascript and returns true if its argument contains binary data.", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
4129
50