mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(package) files-io v3.0.0
This commit is contained in:
parent
96009cecd9
commit
9450e3468b
2 changed files with 2 additions and 5 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue