mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-28 10:14:13 +00:00
minor changes
This commit is contained in:
parent
6ae1e6cf78
commit
a3fc78ae38
2 changed files with 75 additions and 64 deletions
|
|
@ -53,6 +53,7 @@
|
|||
exports.librequire = librequire,
|
||||
exports.srvrequire = srvrequire,
|
||||
exports.rootrequire = rootrequire,
|
||||
exports.quietrequire = quietrequire,
|
||||
|
||||
exports.generateHeaders = generateHeaders,
|
||||
exports.getQuery = getQuery,
|
||||
|
|
@ -125,6 +126,16 @@
|
|||
return lModule;
|
||||
}
|
||||
|
||||
function quietrequire(pSrc){
|
||||
var lModule;
|
||||
|
||||
Util.tryCatch(function(){
|
||||
lModule = require(pSrc);
|
||||
});
|
||||
|
||||
return lModule;
|
||||
}
|
||||
|
||||
function rootrequire(pSrc){ return mrequire(DIR + pSrc); }
|
||||
|
||||
function librequire(pSrc){ return mrequire(LIBDIR + pSrc); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue