detect-file-type
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -21,2 +21,4 @@ 'use strict'; | ||
var noopCallback = function noopCallback() {}; | ||
exports.default = { | ||
@@ -37,3 +39,3 @@ fromFile: function fromFile(filePath, bufferLength, callback) { | ||
var file = _fs2.default.open(filePath, 'r', function (err, fd) { | ||
_fs2.default.open(filePath, 'r', function (err, fd) { | ||
@@ -57,2 +59,4 @@ if (err) { | ||
_fs2.default.close(fd, noopCallback); | ||
if (err) { | ||
@@ -59,0 +63,0 @@ return callback(err); |
{ | ||
"name": "detect-file-type", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Detect file type by signature", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
30556
859