mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
feat: documentation.js now requires node v6 or newer. (#1034)
BREAKING CHANGE: documentation.js requires node v6 or newer.
This commit is contained in:
parent
6d5972ecf9
commit
ccce516b49
2
.babelrc
2
.babelrc
@ -2,7 +2,7 @@
|
||||
"presets": [
|
||||
["env", {
|
||||
"targets": {
|
||||
"node": 4
|
||||
"node": 6
|
||||
},
|
||||
"include": ["transform-regenerator"]
|
||||
}],
|
||||
|
||||
@ -56,7 +56,7 @@ test('inferKind', function() {
|
||||
foo();
|
||||
})
|
||||
).kind
|
||||
).toBe('function');
|
||||
).toBe('constant');
|
||||
|
||||
expect(
|
||||
inferKind(toComment('/** Exported interface */' + 'interface myinter {}'))
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user