detect-file-type
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -101,3 +101,2 @@ 'use strict'; | ||
isDetected = slicedHex === rule.bytes; | ||
console.log(buffer.slice(rule.start || 0, rule.end || buffer.length).toString()); | ||
return _this3.isReturnFalse(isDetected, type); | ||
@@ -289,2 +288,3 @@ } | ||
} | ||
}; | ||
}; | ||
module.exports = exports['default']; |
{ | ||
"name": "detect-file-type", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Detect file type by signature", | ||
@@ -32,2 +32,3 @@ "main": "index.js", | ||
"babel-core": "^6.11.4", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-preset-es2015": "^6.9.0", | ||
@@ -34,0 +35,0 @@ "chai": "^3.5.0", |
11
test.js
@@ -661,13 +661,2 @@ 'use strict'; | ||
}); | ||
it('should detect doc', function (done) { | ||
_index2.default.fromFile('./files/fixture.doc', function (err, result) { | ||
_chai.assert.equal(err, null); | ||
_chai.assert.deepEqual(result, { | ||
ext: 'doc', | ||
mime: 'application/msword' | ||
}); | ||
done(); | ||
}); | ||
}); | ||
}); |
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
11596037
6
2228