File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 34
34
"lodash" : " ^4.17.4" ,
35
35
"mdast-util-inject" : " ^1.1.0" ,
36
36
"micromatch" : " ^3.1.5" ,
37
- "mime" : " ^2.2.0 " ,
37
+ "mime" : " ^1.4.1 " ,
38
38
"module-deps-sortable" : " 4.0.6" ,
39
39
"parse-filepath" : " ^1.0.2" ,
40
40
"pify" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ class Server extends EventEmitter {
75
75
const file = this . _files [ i ] ;
76
76
const filePath = file . relative . split ( sep ) . join ( '/' ) ;
77
77
if ( filePath === path ) {
78
- response . writeHead ( 200 , { 'Content-Type' : mime . getType ( path ) } ) ;
78
+ response . writeHead ( 200 , { 'Content-Type' : mime . lookup ( path ) } ) ;
79
79
response . end ( file . contents ) ;
80
80
return ;
81
81
}
Original file line number Diff line number Diff line change @@ -4395,9 +4395,9 @@ mime-types@~2.1.17:
4395
4395
dependencies :
4396
4396
mime-db "~1.30.0"
4397
4397
4398
- mime@^2.2.0 :
4399
- version "2.2 .0"
4400
- resolved "https://registry.yarnpkg.com/mime/-/mime-2.2 .0.tgz#161e541965551d3b549fa1114391e3a3d55b923b "
4398
+ mime@^1.4.1 :
4399
+ version "1.6 .0"
4400
+ resolved "https://registry.yarnpkg.com/mime/-/mime-1.6 .0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1 "
4401
4401
4402
4402
mimic-fn@^1.0.0 :
4403
4403
version "1.1.0"
You can’t perform that action at this time.
0 commit comments