mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-02 12:42:12 +00:00
feature(package) checkup v1.1.0
This commit is contained in:
parent
3fd5ad8682
commit
e761f4c8c8
2 changed files with 19 additions and 4 deletions
|
|
@ -51,7 +51,12 @@
|
|||
response : response
|
||||
};
|
||||
|
||||
check(arguments, ['request', 'response', 'next']);
|
||||
check
|
||||
.type('next', next, 'function')
|
||||
.check({
|
||||
request: request,
|
||||
response: response
|
||||
}).
|
||||
|
||||
apiURL = CloudFunc.apiURL;
|
||||
name = ponse.getPathName(request);
|
||||
|
|
@ -170,7 +175,12 @@
|
|||
function onPUT(name, body, callback) {
|
||||
var cmd, files, data, from, to, msg;
|
||||
|
||||
check(arguments, ['name', 'body', 'callback']);
|
||||
check
|
||||
.type('callback', callback, 'function')
|
||||
.check({
|
||||
name: name,
|
||||
body: body
|
||||
});
|
||||
|
||||
if (name[0] === '/')
|
||||
cmd = name.replace('/', '');
|
||||
|
|
@ -326,7 +336,12 @@
|
|||
});
|
||||
};
|
||||
|
||||
check(arguments, ['files', 'processFunc', 'callback']);
|
||||
check
|
||||
.type('callback', callback, 'function')
|
||||
.type('processFunc', processFunc, 'function')
|
||||
.check({
|
||||
files: files
|
||||
});
|
||||
|
||||
copy();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@
|
|||
},
|
||||
"subdomain": "cloudcmd",
|
||||
"dependencies": {
|
||||
"checkup": "~1.0.3",
|
||||
"checkup": "~1.1.0",
|
||||
"console-io": "~2.2.0",
|
||||
"copymitter": "~1.8.0",
|
||||
"dword": "~1.5.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue