Skip to content

Commit

Permalink
chore: update mime package to next major version
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-redFox committed Jan 24, 2018
1 parent 21c585a commit debf471
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -34,7 +34,7 @@
"lodash": "^4.11.1",
"mdast-util-inject": "^1.1.0",
"micromatch": "^3.0.0",
"mime": "^1.4.1",
"mime": "^2.2.0",
"module-deps-sortable": "4.0.6",
"parse-filepath": "^1.0.1",
"pify": "^3.0.0",
Expand Down Expand Up @@ -137,8 +137,7 @@
},
"greenkeeper": {
"ignore": [
"remote-origin-url",
"mime"
"remote-origin-url"
]
}
}
2 changes: 1 addition & 1 deletion src/serve/server.js
Expand Up @@ -75,7 +75,7 @@ class Server extends EventEmitter {
var file = this._files[i];
var filePath = file.relative.split(sep).join('/');
if (filePath === path) {
response.writeHead(200, { 'Content-Type': mime.lookup(path) });
response.writeHead(200, { 'Content-Type': mime.getType(path) });
response.end(file.contents);
return;
}
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Expand Up @@ -4102,9 +4102,9 @@ mime-types@~2.1.17:
dependencies:
mime-db "~1.30.0"

mime@^1.4.1:
version "1.4.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.4.1.tgz#121f9ebc49e3766f311a76e1fa1c8003c4b03aa6"
mime@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-2.2.0.tgz#161e541965551d3b549fa1114391e3a3d55b923b"

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

0 comments on commit debf471

Please sign in to comment.