Skip to content

Commit debf471

Browse files
chore: update mime package to next major version
1 parent 21c585a commit debf471

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lodash": "^4.11.1",
3535
"mdast-util-inject": "^1.1.0",
3636
"micromatch": "^3.0.0",
37-
"mime": "^1.4.1",
37+
"mime": "^2.2.0",
3838
"module-deps-sortable": "4.0.6",
3939
"parse-filepath": "^1.0.1",
4040
"pify": "^3.0.0",
@@ -137,8 +137,7 @@
137137
},
138138
"greenkeeper": {
139139
"ignore": [
140-
"remote-origin-url",
141-
"mime"
140+
"remote-origin-url"
142141
]
143142
}
144143
}

src/serve/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Server extends EventEmitter {
7575
var file = this._files[i];
7676
var filePath = file.relative.split(sep).join('/');
7777
if (filePath === path) {
78-
response.writeHead(200, { 'Content-Type': mime.lookup(path) });
78+
response.writeHead(200, { 'Content-Type': mime.getType(path) });
7979
response.end(file.contents);
8080
return;
8181
}

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4102,9 +4102,9 @@ mime-types@~2.1.17:
41024102
dependencies:
41034103
mime-db "~1.30.0"
41044104

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

41094109
mimic-fn@^1.0.0:
41104110
version "1.1.0"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy