mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
feature(package) @cloudcmd/fileop v4.0.0
This commit is contained in:
parent
44d82a6c54
commit
4dd28a27d3
2 changed files with 4 additions and 5 deletions
|
|
@ -91,12 +91,11 @@ const onConnect = currify((fn, operator) => {
|
|||
fn();
|
||||
});
|
||||
|
||||
function initOperations(prefix, socketPrefix, fn) {
|
||||
async function initOperations(prefix, socketPrefix, fn) {
|
||||
socketPrefix = `${socketPrefix}/fileop`;
|
||||
|
||||
fileop({prefix, socketPrefix}, (e, operator) => {
|
||||
operator.on('connect', authCheck(operator, onConnect(fn)));
|
||||
});
|
||||
const operator = await fileop({prefix, socketPrefix});
|
||||
operator.on('connect', authCheck(operator, onConnect(fn)));
|
||||
}
|
||||
|
||||
function setOperations(operator) {
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@
|
|||
"subdomain": "cloudcmd",
|
||||
"dependencies": {
|
||||
"@cloudcmd/dropbox": "^4.0.1",
|
||||
"@cloudcmd/fileop": "^3.0.0",
|
||||
"@cloudcmd/fileop": "^4.0.0",
|
||||
"@cloudcmd/move-files": "^3.0.0",
|
||||
"@cloudcmd/read-files-sync": "^2.0.0",
|
||||
"apart": "^2.0.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue