mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-24 03:05:41 +00:00
feature(main) rm crypto, zlib, url
This commit is contained in:
parent
6dbcac0752
commit
8efdcf379c
2 changed files with 4 additions and 9 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
SLASH,
|
||||
ext,
|
||||
path, zlib, url, CloudFunc, diffPatch,
|
||||
zlib, CloudFunc, diffPatch, path,
|
||||
|
||||
Config = {
|
||||
server : true,
|
||||
|
|
@ -18,14 +18,11 @@
|
|||
port : 80
|
||||
};
|
||||
|
||||
/* Native Modules*/
|
||||
exports.child_process = require('child_process'),
|
||||
exports.path = path = require('path'),
|
||||
exports.url = url = require('url'),
|
||||
path = require('path'),
|
||||
|
||||
/* Constants */
|
||||
exports.SLASH = SLASH = '/',
|
||||
|
||||
|
||||
exports.SRVDIR = SRVDIR = __dirname + SLASH,
|
||||
exports.LIBDIR = LIBDIR = path.normalize(SRVDIR + '../'),
|
||||
exports.DIR = DIR = path.normalize(LIBDIR + '../'),
|
||||
|
|
@ -42,8 +39,6 @@
|
|||
/* we can not use librequare here */
|
||||
exports.util = Util = require(LIBDIR + UTIL),
|
||||
|
||||
exports.zlib = zlib = mrequire('zlib'),
|
||||
|
||||
/* Main Information */
|
||||
exports.modules = jsonrequire('modules');
|
||||
exports.ext = ext = jsonrequire('ext');
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
var main = global.cloudcmd.main,
|
||||
fs = require('fs'),
|
||||
path = main.path,
|
||||
path = require('path'),
|
||||
crypto = require('crypto'),
|
||||
Util = main.util,
|
||||
CloudFunc = main.cloudfunc,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue