Skip to content

Commit ccce516

Browse files
authored
feat: documentation.js now requires node v6 or newer. (#1034)
BREAKING CHANGE: documentation.js requires node v6 or newer.
1 parent 6d5972e commit ccce516

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"presets": [
33
["env", {
44
"targets": {
5-
"node": 4
5+
"node": 6
66
},
77
"include": ["transform-regenerator"]
88
}],

__tests__/lib/infer/kind.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ test('inferKind', function() {
5656
foo();
5757
})
5858
).kind
59-
).toBe('function');
59+
).toBe('constant');
6060

6161
expect(
6262
inferKind(toComment('/** Exported interface */' + 'interface myinter {}'))

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": "^1.4.1",
37+
"mime": "^2.2.0",
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
const file = this._files[i];
7676
const 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
@@ -4395,9 +4395,9 @@ mime-types@~2.1.17:
43954395
dependencies:
43964396
mime-db "~1.30.0"
43974397

4398-
mime@^1.4.1:
4399-
version "1.6.0"
4400-
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
4398+
mime@^2.2.0:
4399+
version "2.2.0"
4400+
resolved "https://registry.yarnpkg.com/mime/-/mime-2.2.0.tgz#161e541965551d3b549fa1114391e3a3d55b923b"
44014401

44024402
mimic-fn@^1.0.0:
44034403
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