Skip to content

Commit

Permalink
feat: documentation.js now requires node v6 or newer. (#1034)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: documentation.js requires node v6 or newer.
  • Loading branch information
tmcw committed Mar 2, 2018
1 parent 6d5972e commit ccce516
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .babelrc
Expand Up @@ -2,7 +2,7 @@
"presets": [
["env", {
"targets": {
"node": 4
"node": 6
},
"include": ["transform-regenerator"]
}],
Expand Down
2 changes: 1 addition & 1 deletion __tests__/lib/infer/kind.js
Expand Up @@ -56,7 +56,7 @@ test('inferKind', function() {
foo();
})
).kind
).toBe('function');
).toBe('constant');

expect(
inferKind(toComment('/** Exported interface */' + 'interface myinter {}'))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -34,7 +34,7 @@
"lodash": "^4.17.4",
"mdast-util-inject": "^1.1.0",
"micromatch": "^3.1.5",
"mime": "^1.4.1",
"mime": "^2.2.0",
"module-deps-sortable": "4.0.6",
"parse-filepath": "^1.0.2",
"pify": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/serve/server.js
Expand Up @@ -75,7 +75,7 @@ class Server extends EventEmitter {
const file = this._files[i];
const 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 @@ -4395,9 +4395,9 @@ mime-types@~2.1.17:
dependencies:
mime-db "~1.30.0"

mime@^1.4.1:
version "1.6.0"
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
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 ccce516

Please sign in to comment.