feature(package) files-io v3.0.0

This commit is contained in:
coderaiser 2018-10-24 14:47:51 +03:00
parent 96009cecd9
commit 9450e3468b
2 changed files with 2 additions and 5 deletions

View file

@ -125,7 +125,7 @@
"edward": "^8.0.0",
"execon": "^1.2.0",
"express": "^4.13.0",
"files-io": "^2.0.0",
"files-io": "^3.0.0",
"flop": "^6.0.0",
"for-each-key": "^1.0.1",
"format-io": "^1.0.0",

View file

@ -10,10 +10,7 @@ module.exports = currify((plugins, req, res, next) => {
if (!plugins || !plugins.length)
return res.send('');
files.readPipe(plugins, res, (e) => {
if (!e)
return;
files.readPipe(plugins, res).catch((e) => {
res.end(e.message);
});
});