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

has-binary2

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

has-binary2 - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

9

History.md
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": {

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