Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5067ee0

Browse files
authored
fix: Make documentation.js compatible with node 4.x for one more version (#1033)
After a release containing this commit is rolled, documentation.js willgo to 6.x and will require Node > 6.x
1 parentd2006d1 commit5067ee0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"lodash":"^4.17.4",
3535
"mdast-util-inject":"^1.1.0",
3636
"micromatch":"^3.1.5",
37-
"mime":"^2.2.0",
37+
"mime":"^1.4.1",
3838
"module-deps-sortable":"4.0.6",
3939
"parse-filepath":"^1.0.2",
4040
"pify":"^3.0.0",

‎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
constfile=this._files[i];
7676
constfilePath=file.relative.split(sep).join('/');
7777
if(filePath===path){
78-
response.writeHead(200,{'Content-Type':mime.getType(path)});
78+
response.writeHead(200,{'Content-Type':mime.lookup(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
@@ -4395,9 +4395,9 @@ mime-types@~2.1.17:
43954395
dependencies:
43964396
mime-db "~1.30.0"
43974397

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"
44014401

44024402
mimic-fn@^1.0.0:
44034403
version "1.1.0"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp