Skip to content

Commit

Permalink
fixes #139, updating libraries with identified vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
dbashford committed Mar 21, 2018
1 parent 0d0e16d commit f6811e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function fromFileWithPath( filePath, options, cb ) {
var type;
if ( typeof filePath === 'string' &&
( typeof options === 'function' || typeof cb === 'function' ) ) {
type = ( options && options.typeOverride ) || mime.lookup( filePath );
type = ( options && options.typeOverride ) || mime.getType( filePath );
fromFileWithMimeAndPath( type, filePath, options, cb );
} else {
_returnArgsError( arguments );
Expand All @@ -108,7 +108,7 @@ function fromBufferWithMime( type, bufferContent, options, cb, withPath ) {
function fromBufferWithName( filePath, bufferContent, options, cb ) {
var type;
if ( typeof filePath === 'string' ) {
type = mime.lookup( filePath );
type = mime.getType( filePath );
fromBufferWithMime( type, bufferContent, options, cb, true );
} else {
_returnArgsError( arguments );
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@
"otg"
],
"dependencies": {
"mime": "1.3.4",
"mime": "2.2.0",
"pdf-text-extract": "1.3.1",
"xpath": "0.0.23",
"xmldom": "0.1.27",
"j": "0.4.3",
"cheerio": "0.22.0",
"marked": "0.3.6",
"marked": "0.3.17",
"meow": "3.7.0",
"got": "5.7.1",
"html-entities": "1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion test/buffer_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var test = function(_testFunction, withMime) {
var textBuff = fs.readFileSync(docPath);

testFunction(
(withMime) ? mime.lookup( docPath ) : docPath,
(withMime) ? mime.getType( docPath ) : docPath,
textBuff, function( error, text ) {

expect(error).to.be.null;
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1027,9 +1027,9 @@ map-obj@^1.0.0, map-obj@^1.0.1:
version "1.0.1"
resolved "https://registry.npmjs.org/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d"

[email protected].6:
version "0.3.6"
resolved "https://registry.npmjs.org/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7"
[email protected].17:
version "0.3.17"
resolved "https://registry.npmjs.org/marked/-/marked-0.3.17.tgz#607f06668b3c6b1246b28f13da76116ac1aa2d2b"

[email protected]:
version "3.7.0"
Expand All @@ -1046,9 +1046,9 @@ [email protected]:
redent "^1.0.0"
trim-newlines "^1.0.0"

mime@1.3.4:
version "1.3.4"
resolved "https://registry.npmjs.org/mime/-/mime-1.3.4.tgz#115f9e3b6b3daf2959983cb38f149a2d40eb5d53"
mime@2.2.0:
version "2.2.0"
resolved "https://registry.npmjs.org/mime/-/mime-2.2.0.tgz#161e541965551d3b549fa1114391e3a3d55b923b"

minimatch@^3.0.3, minimatch@^3.0.4:
version "3.0.4"
Expand Down

0 comments on commit f6811e2

Please sign in to comment.