file-is-binary
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -16,2 +16,7 @@ 'use strict'; | ||
if (isObject(file.contents) && typeof file.pipe === 'function') { | ||
file._isBinary = false; | ||
return false; | ||
} | ||
if (isNull(file) || isDirectory(file)) { | ||
@@ -18,0 +23,0 @@ file._isBinary = false; |
{ | ||
"name": "file-is-binary", | ||
"description": "Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"homepage": "https://github.com/jonschlinkert/file-is-binary", | ||
@@ -13,5 +13,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"files": [ | ||
"index.js", | ||
"LICENSE", | ||
"README.md" | ||
"index.js" | ||
], | ||
@@ -26,10 +24,10 @@ "main": "index.js", | ||
"dependencies": { | ||
"file-stat": "^0.2.3", | ||
"isbinaryfile": "^3.0.1", | ||
"isobject": "^2.1.0" | ||
"file-stat": "^1.0.0", | ||
"isbinaryfile": "^3.0.2", | ||
"isobject": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"gulp-format-md": "^0.1.10", | ||
"mocha": "^3.0.2", | ||
"vinyl": "^1.2.0" | ||
"gulp-format-md": "^0.1.11", | ||
"mocha": "^3.2.0", | ||
"vinyl": "^2.0.1" | ||
}, | ||
@@ -52,5 +50,5 @@ "keywords": [ | ||
"list": [ | ||
"gulp-is-binary", | ||
"file-contents", | ||
"file-stat" | ||
"file-stat", | ||
"gulp-is-binary" | ||
] | ||
@@ -57,0 +55,0 @@ }, |
Sorry, the diff of this file is not supported yet
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
6889
40
+ Addedfile-stat@1.0.0(transitive)
+ Addedisobject@3.0.1(transitive)
- Removedfile-stat@0.2.3(transitive)
- Removedisobject@2.1.0(transitive)
Updatedfile-stat@^1.0.0
Updatedisbinaryfile@^3.0.2
Updatedisobject@^3.0.0