feat: documentation.js now requires node v6 or newer. (#1034)

BREAKING CHANGE: documentation.js requires node v6 or newer.
This commit is contained in:
Tom MacWright 2018-03-01 22:19:53 -08:00 committed by GitHub
parent 6d5972ecf9
commit ccce516b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@
"presets": [
["env", {
"targets": {
"node": 4
"node": 6
},
"include": ["transform-regenerator"]
}],

View File

@ -56,7 +56,7 @@ test('inferKind', function() {
foo();
})
).kind
).toBe('function');
).toBe('constant');
expect(
inferKind(toComment('/** Exported interface */' + 'interface myinter {}'))

View File

@ -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",

View File

@ -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;
}

View File

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