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

detect-file-type

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-file-type - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

4

index.js

@@ -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",

@@ -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

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