Skip to content

Commit

Permalink
Switch mime-types package
Browse files Browse the repository at this point in the history
  • Loading branch information
oligriffiths authored and krisselden committed Jul 27, 2018
1 parent ab8496c commit 818b3c1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const fs = require('fs');

const handlebars = require('handlebars');
const url = require('url');
const mime = require('mime');
const mime = require('mime-types');

const errorTemplate = handlebars.compile(
fs.readFileSync(path.resolve(__dirname, 'templates/error.html')).toString()
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"handlebars": "^4.0.11",
"heimdalljs": "^0.2.5",
"heimdalljs-logger": "^0.1.9",
"mime": "^2.3.1",
"mime-types": "^2.1.19",
"promise.prototype.finally": "^3.1.0",
"rimraf": "^2.6.2",
"sane": "^2.2.0",
Expand Down
12 changes: 9 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1372,9 +1372,15 @@ micromatch@^3.0.4, micromatch@^3.1.4:
snapdragon "^0.8.1"
to-regex "^3.0.2"

mime@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-2.3.1.tgz#b1621c54d63b97c47d3cfe7f7215f7d64517c369"
mime-db@~1.35.0:
version "1.35.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.35.0.tgz#0569d657466491283709663ad379a99b90d9ab47"

mime-types@^2.1.19:
version "2.1.19"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.19.tgz#71e464537a7ef81c15f2db9d97e913fc0ff606f0"
dependencies:
mime-db "~1.35.0"

mimic-fn@^1.0.0:
version "1.2.0"
Expand Down

0 comments on commit 818b3c1

Please sign in to comment.